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 GO 1.22.0 #386

Merged
merged 6 commits into from
Feb 9, 2024
Merged

Upgrade GO 1.22.0 #386

merged 6 commits into from
Feb 9, 2024

Conversation

juldrixx
Copy link
Contributor

@juldrixx juldrixx commented Feb 9, 2024

Q A
Bug fix? no
New feature? no
API breaks? no
Deprecations? no
Related tickets -
License Apache 2.0

What's in this PR?

Upgrade of GOLANG to 1.22.0.

Why?

To be up to date.

Checklist

  • Implementation tested
  • Error handling code meets the guideline
  • Logging code meets the guideline
  • User guide and development docs updated (if needed)
  • Append changelog with changes

@juldrixx
Copy link
Contributor Author

juldrixx commented Feb 9, 2024

Not sure what is the issue, any idea @mh013370?

@mh013370
Copy link
Member

mh013370 commented Feb 9, 2024

Not sure what is the issue, any idea @mh013370?

Does make generate work locally? It's possible either the operator-sdk or something in the nifikop code isn't go 1.22 compatible?

@juldrixx
Copy link
Contributor Author

juldrixx commented Feb 9, 2024

Not sure what is the issue, any idea @mh013370?

Does make generate work locally? It's possible either the operator-sdk or something in the nifikop code isn't go 1.22 compatible?

With an existing bin directory from previous go version yes, but without it no.

@mh013370
Copy link
Member

mh013370 commented Feb 9, 2024

Not sure what is the issue, any idea @mh013370?

Does make generate work locally? It's possible either the operator-sdk or something in the nifikop code isn't go 1.22 compatible?

With an existing bin directory from previous go version yes, but without it no.

Looks like it's the version of controller-gen kubernetes-sigs/controller-tools#880

Updating to latest apparently fixes it. It's updated already in #366. Propose we merge that one first

@juldrixx
Copy link
Contributor Author

juldrixx commented Feb 9, 2024

The upgrade to v0.13.0 doesn't fix the issue.

@mh013370
Copy link
Member

mh013370 commented Feb 9, 2024

The upgrade to v0.13.0 doesn't fix the issue.

There was an issue that was just raised against golang about this. Linked from controller-tools#880

@juldrixx
Copy link
Contributor Author

juldrixx commented Feb 9, 2024

It seems that upgrading controller-tools to v0.14.0 fix the issue.

@mh013370
Copy link
Member

mh013370 commented Feb 9, 2024

It seems that upgrading controller-tools to v0.14.0 fix the issue.

I'm taking a look through the kubebuilder docs to see if the version matters that much. If i can't find anything, perhaps we just roll with 0.14.0

@juldrixx
Copy link
Contributor Author

juldrixx commented Feb 9, 2024

It seems that upgrading controller-tools to v0.14.0 fix the issue.

I'm taking a look through the kubebuilder docs to see if the version matters that much. If i can't find anything, perhaps we just roll with 0.14.0

The update seems to cause some 1 CRD update but make generate manifests still works.

https://github.com/konpyutaika/nifikop/pull/386/files#diff-554f0df8adba68afa95657f37bc4355a0120e04861526d7fbb0cf00ae0ecf84bR1935

@mh013370
Copy link
Member

mh013370 commented Feb 9, 2024

I don't see anything concerning in the kubebuilder docs. I say we just make sure nifikop continues to behave in real scenarios and revisit if needed.

@juldrixx juldrixx enabled auto-merge (squash) February 9, 2024 16:10
@juldrixx juldrixx merged commit 72d3a83 into master Feb 9, 2024
4 checks passed
@juldrixx juldrixx deleted the feat/upgrade_go_1.22.0 branch February 9, 2024 16:10
@mh013370
Copy link
Member

mh013370 commented Feb 9, 2024

It seems that upgrading controller-tools to v0.14.0 fix the issue.

Good find!

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.

None yet

2 participants