Skip to content

chore(deps): upgrade k8s.io/gengo to v2 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dolmen
Copy link
Contributor

@dolmen dolmen commented Apr 22, 2025

Description

Migrate k8s.io/gengo -> k8s.io/gengo/v2

This required copying the extractCommentTags function because it has been deprecated in v2. v2 introduces a new ExtractFunctionStyleCommentTags function, but it has a different interface, so it's just simpler to import the original ExtractCommentTags code which is dependency free.

The code generated with this tool in
github.com/oauth2-proxy/oauth2-proxy/pkg/apis/options is not affected.

Motivation and Context

Dependencies upgrade

This is a follow-up to other dependencies upgrades in #6, #7, #8.

How Has This Been Tested?

go generate tested in the oauth2-proxy repo: no change in generated files.

Migrate k8s.io/gengo -> k8s.io/gengo/v2

This required copying the extractCommentTags function because it has been
deprecated in v2. v2 introduces a new ExtractFunctionStyleCommentTags
function, but it has a different interface, so it's just simpler to
import the original ExtractCommentTags code which is dependency free.

The code generated with this tool in
github.com/oauth2-proxy/oauth2-proxy/pkg/apis/options is not affected.
@dolmen
Copy link
Contributor Author

dolmen commented Apr 30, 2025

Cc: @tuunit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant