Skip to content

Conversation

@littlejawa
Copy link
Contributor

Updating operator-sdk from 1.39.1 to 1.41.1.

Preliminary steps: adding some code that we are supposed to modify, but doesn't exist in our repo.
Also fixing some update steps that were missing in previous commits.

1.39.1 => 1.40: the number of changes is big, so I'm keeping each modification separated, based on the titles in https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.40.0/

1.40 => 1.41.1: doing it in a single commit as it is easier.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 16, 2025
@openshift-ci openshift-ci bot requested review from pmores and vvoronko October 16, 2025 13:13
@littlejawa littlejawa marked this pull request as draft October 16, 2025 13:16
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 16, 2025
@littlejawa littlejawa force-pushed the update_operator_sdk_to_1.41.1 branch from a60a2b0 to 5f6546b Compare October 16, 2025 13:32
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 16, 2025
@littlejawa littlejawa force-pushed the update_operator_sdk_to_1.41.1 branch from 5f6546b to ff2424c Compare October 16, 2025 15:46
@littlejawa
Copy link
Contributor Author

Note: 69dcc90 is breaking the build.
When I run "make bundle" on it, I get an error in kustomize, which apparently can't apply the patch from config/default/manager_webhook_patch.yaml.
This is why I made 0aeea5a, restoring the content of this file and fixing the build - this is not a solution, it just unblocked me to finish the upgrade.

Everything else seems to work - I have run "go mod tidy && make && make bundle" on every separate commit, and the generated files are not changing anymore. This kustomize issue is the last problem I need to fix.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 17, 2025
@littlejawa littlejawa force-pushed the update_operator_sdk_to_1.41.1 branch from ff2424c to bd6c962 Compare October 27, 2025 15:39
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 27, 2025
@littlejawa littlejawa force-pushed the update_operator_sdk_to_1.41.1 branch from bd6c962 to 26ae3a5 Compare October 29, 2025 09:45
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 29, 2025
@littlejawa littlejawa force-pushed the update_operator_sdk_to_1.41.1 branch from 26ae3a5 to 200cb94 Compare October 29, 2025 09:50
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 29, 2025
@littlejawa littlejawa force-pushed the update_operator_sdk_to_1.41.1 branch 3 times, most recently from 1a029f0 to be2ea6b Compare October 29, 2025 10:09
@littlejawa littlejawa marked this pull request as ready for review October 29, 2025 10:11
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 29, 2025
@littlejawa
Copy link
Contributor Author

/unhold

@openshift-ci openshift-ci bot requested a review from jensfr October 29, 2025 10:11
@littlejawa
Copy link
Contributor Author

littlejawa commented Oct 30, 2025

Fixes: KATA-3600

We get warnings about deprecated "patchesjson6902" when we run "make bundle".
As suggested in the error message, I used "kustomize edit fix --vars" to update
our kustomize.yaml files

Signed-off-by: Julien Ropé <[email protected]>
While updating the operator-sdk, I'm finding some code that is supposed to be
modified during upgrade, but doesn't exist in our repo.

This commit allows to configure health probe address instead of using the default.

Found while looking at updates for operator-sdk 1.38 [0].
Code sample found in operator-sdk testdata sources [1].

[0] https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.38.0/
[1] https://github.com/operator-framework/operator-sdk/blob/master/testdata/go/v4/memcached-operator/cmd/main.go

Signed-off-by: Julien Ropé <[email protected]>
While updating the operator-sdk, I'm finding some code that is supposed to be
modified during upgrade, but doesn't exist in our repo.

This commit allows to serve metrics using HTTPS instead of HTTP.
It also disabled the HTTP2 method by default, to avoid some vulnerabilities.

Found while looking at updates for operator-sdk 1.38 [0].
Code sample found in operator-sdk testdata sources [1].

[0] https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.38.0/
[1] https://github.com/operator-framework/operator-sdk/blob/master/testdata/go/v4/memcached-operator/cmd/main.go

Signed-off-by: Julien Ropé <[email protected]>
Our upgrade to operator-sdk 1.38 was missing some changes.
Based on https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.38.0/

Signed-off-by: Julien Ropé <[email protected]>
Our upgrade to operator-sdk 1.38 was missing some changes.
Based on https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.39.0/

Signed-off-by: Julien Ropé <[email protected]>
1.41: Performing upgrade steps based on
https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.41.0/

1.41.1: no modification required

Signed-off-by: Julien Ropé <[email protected]>
@littlejawa littlejawa force-pushed the update_operator_sdk_to_1.41.1 branch from be2ea6b to 92a8f6a Compare November 17, 2025 09:18
@openshift-ci
Copy link

openshift-ci bot commented Nov 17, 2025

@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 92a8f6a 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-sigs/prow repository. I understand the commands that are listed here.

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.

2 participants