Skip to content

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

Merged
tuunit merged 1 commit intooauth2-proxy:mainfrom
dolmen-go:upgrade-gengo-to-v2
Jun 1, 2025
Merged

chore(deps): upgrade k8s.io/gengo to v2#9
tuunit merged 1 commit intooauth2-proxy:mainfrom
dolmen-go:upgrade-gengo-to-v2

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

@tuunit tuunit merged commit 1a8e306 into oauth2-proxy:main Jun 1, 2025
3 checks passed
@dolmen dolmen deleted the upgrade-gengo-to-v2 branch June 2, 2025 14:46
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.

2 participants