-
Notifications
You must be signed in to change notification settings - Fork 41
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
Upgrade to Go 1.22.1 #330
Upgrade to Go 1.22.1 #330
Conversation
go.mod
Outdated
@@ -1,6 +1,6 @@ | |||
module github.com/spiffe/spire-controller-manager | |||
|
|||
go 1.21 | |||
go 1.22 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably specify the full version here (allowed since go1.21).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might need rebasing against the latest in main. Marcos already made some of these changes.
Signed-off-by: Max Lambrecht <[email protected]>
Signed-off-by: Max Lambrecht <[email protected]>
I noticed that when building with the new Go version using |
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you revert status removal? there are some cases where it is required,
but controller runtime is no longer generating this... (the same comment for all cases like this)
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 | |||
kind: CustomResourceDefinition | |||
metadata: | |||
annotations: | |||
controller-gen.kubebuilder.io/version: v0.13.0 | |||
controller-gen.kubebuilder.io/version: v0.14.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you update demo with this new generated yamls? (same comment for all yaml)
@@ -1,6 +1,6 @@ | |||
module github.com/spiffe/spire-controller-manager | |||
|
|||
go 1.22 | |||
go 1.22.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why using 1.22.1? I think we must use 1.22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #330 (comment)
Signed-off-by: Max Lambrecht <[email protected]>
This PR upgrades the Go version to
1.22.1
, affecting the Dockerfile, Makefile, and GitHub Actions workflows (nightly_build.yaml
,pr_build.yaml
,release_build.yaml
). It introduces the.go-version
file to specify the Go version.