-
Notifications
You must be signed in to change notification settings - Fork 95
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
THREESCALE-11281 - bump to go 1.22 #1036
Conversation
0260d86
to
3326fa3
Compare
PROJECT
Outdated
- group: apps | ||
- | ||
# TODO(user): Uncomment the below line if this resource implements a controller, else delete it. | ||
# controller: true |
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 should be uncommented right?
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. Thank you
PROJECT
Outdated
- group: apps | ||
- | ||
# TODO(user): Uncomment the below line if this resource implements a controller, else delete it. | ||
# controller: true |
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 too? Can you review this file again please
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. Thank you
PROJECT
Outdated
kind: APIManager | ||
# TODO(user): Update the package path for your API if the below value is incorrect. | ||
path: k8s.io/api/apps/v1alpha1 |
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 is wrong
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.
fixed. Thank you
3326fa3
to
72415b2
Compare
@@ -281,6 +286,9 @@ bundle-validate: $(OPERATOR_SDK) | |||
|
|||
.PHONY: bundle-update-test | |||
bundle-update-test: | |||
# Remove the createdAt field before checking the diff | |||
sed -i '/createdAt:/d' ./bundle/manifests/3scale-operator.clusterserviceversion.yaml |
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 looks hacky Valery, we shouldn't do that because essentially the bundle will be created in our build system and that flag will be there. Is there no other way around it? (I'll try finding a different approach as well)
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 can remove the createdAt from the config/manifest/bases/3scale-opreator.clusterserviceversion.yaml
The flag is updated if present, if not, it's not.
@@ -1161,4 +1166,25 @@ spec: | |||
maturity: stable | |||
provider: | |||
name: Red Hat | |||
relatedImages: |
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.
would be nice to:
- figure out where this is coming from / why?
- redis and psql have no "name" values - why
- check midstream for possible clash when updating these values for prod release.
@@ -240,12 +240,13 @@ metadata: | |||
categories: Integration & Delivery | |||
certified: "false" | |||
containerImage: quay.io/3scale/3scale-operator:master | |||
createdAt: "2019-05-30T22:40:00Z" | |||
createdAt: "2024-11-27T13:51:25Z" |
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.
as above, if we remove it from base we won't have it, I don't think this is a mandatory field for csv validation. Please remove
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1 | |||
kind: CustomResourceDefinition | |||
metadata: | |||
annotations: | |||
controller-gen.kubebuilder.io/version: v0.9.2 | |||
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.
@carlkyrillos was there something about this bump that you had an issue with in one of your previous PRs?
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.
controller-gen v0.9.2 has a problem with GO 1.22 - following steps failed: assets-validate, bundle-validate, run-unit-tests, test-crds. All with same/similar error in controller-gen - segmentation fault , as for example
/home/circleci/project/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa00d6f]
Looks like known Issue - kubernetes-sigs/controller-tools#880 . People using newer controller-gen 0.14 . Same version used also in marin3r.
@valerymo left some comments, in general, could you explain to me why are we pinning operator-sdk bump to go bump? |
@MStokluska , I had problems using go 1.22 with operator-sdk 1.2. So the question was - which verion of operator-sdk to migrage. Here’s a summary of the versions and their compatibility with Go 1.22.
|
This PR will be closed, it's replaced by new one #1045 - that does not change OperatorSDK.
|
Jira: https://issues.redhat.com/browse/THREESCALE-11281
Verification
3scale installed locally
Installed correctly
routes/UI verified
Quay.io Security Scan - Passed