Skip to content
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

Merged
merged 3 commits into from
Apr 4, 2024
Merged

Upgrade to Go 1.22.1 #330

merged 3 commits into from
Apr 4, 2024

Conversation

maxlambrecht
Copy link
Member

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.

go.mod Outdated
@@ -1,6 +1,6 @@
module github.com/spiffe/spire-controller-manager

go 1.21
go 1.22
Copy link
Member

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).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Member

@azdagron azdagron left a 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.

@maxlambrecht
Copy link
Member Author

I noticed that when building with the new Go version using make build, some CRD YAML files undergo modifications. It appears these changes were inadvertently included in my commit. Can you confirm if this is expected behavior?

Comment on lines 232 to 237
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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

Copy link
Member Author

@maxlambrecht maxlambrecht Apr 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Max Lambrecht <[email protected]>
@MarcosDY MarcosDY merged commit 11e4988 into spiffe:main Apr 4, 2024
6 checks passed
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.

3 participants