-
Notifications
You must be signed in to change notification settings - Fork 19
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
bump operator-sdk version to v1.36.1 #47
bump operator-sdk version to v1.36.1 #47
Conversation
@bpradipt PTAL |
@lmilleri are there any golang module updates that needs to be done based on https://github.com/operator-framework/operator-sdk/blob/v1.36.1/go.mod ? |
33245be
to
9f96a17
Compare
done |
go.mod
Outdated
@@ -1,15 +1,17 @@ | |||
module github.com/confidential-containers/trustee-operator | |||
|
|||
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.
You'll need to use go 1.21 in your dev env to make this update.
The 1.36.1 sdk is still on 1.21. Although not strictly needed, but still it's good to use the same golang version as used with the sdk.
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.
ok, will revert back to go 1.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.
Not sure I should revert to go 1.21 though. When running go mod tidy
the golang version is updated automatically to go 1.22.
This is because of the following dep:
go mod tidy -go=1.21 -compat=1.21
go: github.com/google/[email protected] requires [email protected], but 1.21 is requested
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.
Hmm and do you know what is using pprof ? You will need to downgrade pprof otherwise.
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.
pprof comes as an indirect dependency. The weird thing is that all the direct deps are aligned to https://github.com/operator-framework/operator-sdk/blob/v1.36.1/go.mod
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.
Ok, one trick I use is to explicitly download a specific version of the offending dep. For example using the commit
before fa2c70bbbfe53334fe0fd4c80336583970707379 (https://github.com/google/pprof/commits/main/) should fix it imho.
But if you hit additional issues, then we'll have to stick to 1.22. Build and test should help uncover any potential issues.
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.
It seems the trick works ok, Thank you
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.
Go 1.21 is no longer maintained so it'd good to bump this to go 1.22.0
(note the new syntax that says "at least Go 1.22.0 toolchain is required"
4ef731c
to
67e2e93
Compare
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.
/lgtm
Signed-off-by: Leonardo Milleri <[email protected]>
67e2e93
to
5a68e41
Compare
We should gradually start moving away from the strict operator-sdk dependency. There's a deprecation announcement that states that controllers are free to move on after the initial scaffolding. What this means is here we can bump to more recent k8s/controller tools versions etc. For trustee-operator, I'd suggest we add some new tests similar to what CC Operator added: test |
My understanding is that the deprecation doesn't apply to usage of operator-sdk project and applies to only OpenShift shipped cli. We are not using it anyway for this project. Ref: section titled: "What does this mean for the Operator SDK CNCF project?"
Agree.. |
I see. This PR gave me the impression that we have a dependency to |
Signed-off-by: Leonardo Milleri <[email protected]>
Signed-off-by: Leonardo Milleri <[email protected]>
…references/main Update Konflux references
Followed instructions at https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.36.0/