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

Update to operator-sdk 1.21.0 #233

Merged
merged 1 commit into from Nov 30, 2022

Conversation

littlejawa
Copy link
Contributor

Following steps from https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.21.0/

  • Makefile: replace "go get" calls with "go install" calls (copy/paste of a code snippet)
  • manager_auth_proxy_path.yaml: update kube-rbac-proxy version
  • go.mod/go.sum changes according to the steps + go mod tidy + additional changes to fix build errors

Dockerfile:

  • update to go 1.18 to fix build issues
  • as there is no 1.18 image for 4.10, use 4.11 image for the builder, and change the base image accordingly
  • empty the GOFLAGS variable when calling "make build": the new "go install" commands were failing because of the default "-mod=vendor" flag. The actual build in the makefile is explicitely using "-mod=mod" flag anyway.

Misc:

  • update the sdk version in bundle-custom.Dockerfile too
  • update the DEVELOPMENT.md file with new versions

@openshift-ci
Copy link

openshift-ci bot commented Nov 24, 2022

Hi @littlejawa. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Nov 24, 2022
@littlejawa
Copy link
Contributor Author

/hold
I have an issue with the webhook when testing this - working on it

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 28, 2022
@littlejawa
Copy link
Contributor Author

/unhold
The failure was due to my environment. With a clean setup, I can install the operator and run kata containers.

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 29, 2022
@littlejawa
Copy link
Contributor Author

I have a question: we will need to upgrade to 1.23 at least. Should I make separate PRs building one on top of the other, or a single PR, with one commit for each upgrade?

@jensfr
Copy link
Contributor

jensfr commented Nov 29, 2022

I have a question: we will need to upgrade to 1.23 at least. Should I make separate PRs building one on top of the other, or a single PR, with one commit for each upgrade?

I think one PR for every upgrade will be easier to review

@jensfr
Copy link
Contributor

jensfr commented Nov 29, 2022

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 29, 2022
@@ -10,7 +10,7 @@ spec:
spec:
containers:
- name: kube-rbac-proxy
image: gcr.io/kubebuilder/kube-rbac-proxy@sha256:db06cc4c084dd0253134f156dddaaf53ef1c3fb3cc809e5d81711baa4029ea4c
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.11.0
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we use the digest instead of tag here so that it can work in disconnected environments

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. Thanks!

Copy link
Contributor

@jensfr jensfr left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @littlejawa
@cpmeadors, @beraldoleal installing kustomize has changed, that may affect our downstream scripts

@littlejawa
Copy link
Contributor Author

littlejawa commented Nov 29, 2022

Additional changes:

  • fixed CI test jobs: bundle-custom.Dockerfile had to be modified in the same way as Dockerfile to call "make" with no GOFLAGS set
  • also in bundle-custom.Dockerfile: use the same builder image as in Dockerfile for consistency
  • reference the image by digest rather than version in manager_auth_proxy_patch.yaml

Following steps from https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.21.0/

Signed-off-by: Julien Ropé <jrope@redhat.com>
@openshift-ci
Copy link

openshift-ci bot commented Nov 29, 2022

@littlejawa: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/sandboxed-containers-operator-e2e f725438 link false /test sandboxed-containers-operator-e2e

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Contributor

@cpmeadors cpmeadors left a comment

Choose a reason for hiding this comment

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

All changes look good

@jensfr jensfr merged commit 185b0f3 into openshift:main Nov 30, 2022
@littlejawa littlejawa deleted the upgrade_operator_sdk branch December 1, 2022 14:36
This was referenced Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants