-
Notifications
You must be signed in to change notification settings - Fork 100
Upgrade operator-sdk from v1.31.0 to v1.41.1 #1683
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
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprince The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
f64fb2b to
2f1af94
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/b2534c18212546cc9e05afb933645fbc ❌ openstack-k8s-operators-content-provider FAILURE in 11m 43s |
2f1af94 to
2b3de79
Compare
|
This change depends on a change that failed to merge. Change openstack-k8s-operators/ci-framework#3462 is needed. |
|
recheck |
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/d538791d00e94a65bd0b322a2e3e8d0a ❌ openstack-k8s-operators-content-provider FAILURE in 12m 09s |
|
recheck |
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/8cbc53e091ff42ed997e95fff7e10b23 ❌ openstack-k8s-operators-content-provider FAILURE in 11m 46s |
2b3de79 to
4b48211
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/97863a4bcd4e4daabdc162a8bb268052 ❌ openstack-k8s-operators-content-provider FAILURE in 12m 02s |
4b48211 to
635d5f0
Compare
|
Zuul encountered a syntax error while parsing its Job openstack-k8s-operators-content-provider in openstack-k8s-operators/openstack-operator is not permitted to shadow job openstack-k8s-operators-content-provider in openstack-k8s-operators/ci-framework The problem appears in the the "openstack-k8s-operators-content-provider" job stanza: job: in "openstack-k8s-operators/openstack-operator/zuul.d/jobs.yaml@main", line 2 |
635d5f0 to
511b65d
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/f49f45fe463840dd9934b40fb3bf75b3 ✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 20m 36s |
511b65d to
afc7482
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/865fd15b6206427a834c1c2f6f48ce97 ✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 17m 47s |
06d5017 to
8825836
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/d1e11003918e4bee830208100b65dc2f ✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 13m 41s |
76478d6 to
77abb3b
Compare
7a5de6d to
66e5ff2
Compare
66e5ff2 to
a5c1185
Compare
|
/retest-required |
Rescaffold the keystone-operator to operator-sdk 1.41.1, which includes: - Reorganize project structure (pkg/ -> internal/) - Move webhook implementations to internal/webhook/v1beta1/ - Add new cmd/main.go entrypoint with updated controller initialization - Update RBAC, certmanager, and prometheus configurations - Enhance network policies for metrics and webhook traffic - Set keystone as defaulting resource in PROJECT file - Remove auto-generated test suite scaffolding - Update build workflow and Dockerfile to version 1.41.1 This upgrade modernizes the operator structure and aligns with the latest operator-sdk best practices. Jira: OSPRH-21924 Depends-On: openstack-k8s-operators/openstack-operator#1683
Rescaffold the glance-operator to operator-sdk 1.41.1, which includes: - Reorganize project structure (pkg/ -> internal/) - Move webhook implementations to internal/webhook/v1beta1/ - Add new cmd/main.go entrypoint with updated controller initialization - Update RBAC, certmanager, and prometheus configurations - Enhance network policies for metrics and webhook traffic - Set glance as defaulting resource in PROJECT file - Remove auto-generated test suite scaffolding - Update build workflow and Dockerfile to version 1.41.1 This upgrade modernizes the operator structure and aligns with the latest operator-sdk best practices. Jira: OSPRH-21932 Depends-On: openstack-k8s-operators/openstack-operator#1683
Rescaffold the glance-operator to operator-sdk 1.41.1, which includes: - Reorganize project structure (pkg/ -> internal/) - Move webhook implementations to internal/webhook/v1beta1/ - Add new cmd/main.go entrypoint with updated controller initialization - Update RBAC, certmanager, and prometheus configurations - Enhance network policies for metrics and webhook traffic - Set glance as defaulting resource in PROJECT file - Remove auto-generated test suite scaffolding - Update build workflow and Dockerfile to version 1.41.1 This upgrade modernizes the operator structure and aligns with the latest operator-sdk best practices. Jira: OSPRH-21932 Depends-On: openstack-k8s-operators/openstack-operator#1683
Rescaffold the barbican-operator to operator-sdk 1.41.1, which includes: - Reorganize project structure (pkg/ -> internal/) - Move webhook implementations to internal/webhook/v1beta1/ - Add new cmd/main.go entrypoint with updated controller initialization - Update RBAC, certmanager, and prometheus configurations - Enhance network policies for metrics and webhook traffic - Add missing APIs to PROJECT - Remove auto-generated test suite scaffolding - Update build workflow and Dockerfile to version 1.41.1 This upgrade modernizes the operator structure and aligns with the latest operator-sdk best practices. Jira: OSPRH-21925 Depends-On: openstack-k8s-operators/openstack-operator#1683
Depends-On: openstack-k8s-operators/openstack-operator#1683 Signed-off-by: Martin Schuppert <[email protected]>
Rescaffold the glance-operator to operator-sdk 1.41.1, which includes: - Reorganize project structure (pkg/ -> internal/) - Move webhook implementations to internal/webhook/v1beta1/ - Add new cmd/main.go entrypoint with updated controller initialization - Update RBAC, certmanager, and prometheus configurations - Enhance network policies for metrics and webhook traffic - Set glance as defaulting resource in PROJECT file - Remove auto-generated test suite scaffolding - Update build workflow and Dockerfile to version 1.41.1 This upgrade modernizes the operator structure and aligns with the latest operator-sdk best practices. Jira: OSPRH-21932 Depends-On: openstack-k8s-operators/openstack-operator#1683
Rescaffold the keystone-operator to operator-sdk 1.41.1, which includes: - Reorganize project structure (pkg/ -> internal/) - Move webhook implementations to internal/webhook/v1beta1/ - Add new cmd/main.go entrypoint with updated controller initialization - Update RBAC, certmanager, and prometheus configurations - Enhance network policies for metrics and webhook traffic - Set keystone as defaulting resource in PROJECT file - Remove auto-generated test suite scaffolding - Update build workflow and Dockerfile to version 1.41.1 This upgrade modernizes the operator structure and aligns with the latest operator-sdk best practices. Jira: OSPRH-21924 Depends-On: openstack-k8s-operators/openstack-operator#1683
Rescaffold the barbican-operator to operator-sdk 1.41.1, which includes: - Reorganize project structure (pkg/ -> internal/) - Move webhook implementations to internal/webhook/v1beta1/ - Add new cmd/main.go entrypoint with updated controller initialization - Update RBAC, certmanager, and prometheus configurations - Enhance network policies for metrics and webhook traffic - Add missing APIs to PROJECT - Remove auto-generated test suite scaffolding - Update build workflow and Dockerfile to version 1.41.1 This upgrade modernizes the operator structure and aligns with the latest operator-sdk best practices. Jira: OSPRH-21925 Depends-On: openstack-k8s-operators/openstack-operator#1683
Rescaffold the keystone-operator to operator-sdk 1.41.1, which includes: - Reorganize project structure (pkg/ -> internal/) - Move webhook implementations to internal/webhook/v1beta1/ - Add new cmd/main.go entrypoint with updated controller initialization - Update RBAC, certmanager, and prometheus configurations - Enhance network policies for metrics and webhook traffic - Set keystone as defaulting resource in PROJECT file - Remove auto-generated test suite scaffolding - Update build workflow and Dockerfile to version 1.41.1 This upgrade modernizes the operator structure and aligns with the latest operator-sdk best practices. Jira: OSPRH-21924 Depends-On: openstack-k8s-operators/openstack-operator#1683
Rescaffold the glance-operator to operator-sdk 1.41.1, which includes: - Reorganize project structure (pkg/ -> internal/) - Move webhook implementations to internal/webhook/v1beta1/ - Add new cmd/main.go entrypoint with updated controller initialization - Update RBAC, certmanager, and prometheus configurations - Enhance network policies for metrics and webhook traffic - Set glance as defaulting resource in PROJECT file - Remove auto-generated test suite scaffolding - Update build workflow and Dockerfile to version 1.41.1 This upgrade modernizes the operator structure and aligns with the latest operator-sdk best practices. Jira: OSPRH-21932 Depends-On: openstack-k8s-operators/openstack-operator#1683
Rescaffold the keystone-operator to operator-sdk 1.41.1, which includes: - Reorganize project structure (pkg/ -> internal/) - Move webhook implementations to internal/webhook/v1beta1/ - Add new cmd/main.go entrypoint with updated controller initialization - Update RBAC, certmanager, and prometheus configurations - Enhance network policies for metrics and webhook traffic - Set keystone as defaulting resource in PROJECT file - Remove auto-generated test suite scaffolding - Update build workflow and Dockerfile to version 1.41.1 This upgrade modernizes the operator structure and aligns with the latest operator-sdk best practices. Jira: OSPRH-21924 Depends-On: openstack-k8s-operators/openstack-operator#1683
|
fyi, the force-bump workflows should use quay.io/openstack-k8s-operators/openstack-k8s-operators-ci-build-tools:golang-1.24-sdk-1.41.1 |
Rescaffold the glance-operator to operator-sdk 1.41.1, which includes: - Reorganize project structure (pkg/ -> internal/) - Move webhook implementations to internal/webhook/v1beta1/ - Add new cmd/main.go entrypoint with updated controller initialization - Update RBAC, certmanager, and prometheus configurations - Enhance network policies for metrics and webhook traffic - Set glance as defaulting resource in PROJECT file - Remove auto-generated test suite scaffolding - Update build workflow and Dockerfile to version 1.41.1 This upgrade modernizes the operator structure and aligns with the latest operator-sdk best practices. Jira: OSPRH-21932 Depends-On: openstack-k8s-operators/openstack-operator#1683
Rescaffold the keystone-operator to operator-sdk 1.41.1, which includes: - Reorganize project structure (pkg/ -> internal/) - Move webhook implementations to internal/webhook/v1beta1/ - Add new cmd/main.go entrypoint with updated controller initialization - Update RBAC, certmanager, and prometheus configurations - Enhance network policies for metrics and webhook traffic - Set keystone as defaulting resource in PROJECT file - Remove auto-generated test suite scaffolding - Update build workflow and Dockerfile to version 1.41.1 This upgrade modernizes the operator structure and aligns with the latest operator-sdk best practices. Jira: OSPRH-21924 Depends-On: openstack-k8s-operators/openstack-operator#1683
Rescaffold the barbican-operator to operator-sdk 1.41.1, which includes: - Reorganize project structure (pkg/ -> internal/) - Move webhook implementations to internal/webhook/v1beta1/ - Add new cmd/main.go entrypoint with updated controller initialization - Update RBAC, certmanager, and prometheus configurations - Enhance network policies for metrics and webhook traffic - Add missing APIs to PROJECT - Remove auto-generated test suite scaffolding - Update build workflow and Dockerfile to version 1.41.1 This upgrade modernizes the operator structure and aligns with the latest operator-sdk best practices. Jira: OSPRH-21925 Depends-On: openstack-k8s-operators/openstack-operator#1683
This upgrades the operator-sdk to version 1.41.1, which includes migrating
to the Kubebuilder v4 layout and modernizing the project structure.
Key changes:
- Re-scaffold the project with operator-sdk 1.41.1
- Update both main.go to support the latest kubebuilder features. This
includes using WithAuthenticationAndAuthorization to guard metrics
endpoints. This drops use of kube-rbac-proxy for openstack-operator.
- Migrated from Kubebuilder v3 to v4 layout (PROJECT file updated)
- Renamed apis/ directory to api/ following Kubebuilder v4 conventions
- Updated all import paths throughout the codebase to use api/ instead of apis/
- Moved main.go to cmd/main.go per new project structure
- Partially updated webhook implementations to use new validation/defaulting patterns. More
work can be done to consolidate the webhook code in the internal/webhook directory in the future.
- Added missing webhook configurations for OpenStackClient, OpenStackDataPlaneService, and
OpenStackDataPlaneDeployment to PROJECT
- Upgraded kustomize from v5.5.0 to v5.6.0
- Updated controller-gen paths to reflect new directory structure
- Updated all Makefile targets and test paths
Co-Authored-By: Claude <[email protected]>
Jira: OSPRH-21438
a5c1185 to
19db487
Compare
This upgrades the operator-sdk to version 1.41.1, which includes migrating to the Kubebuilder v4 layout and modernizing the project structure.
Key changes:
Co-Authored-By: Claude [email protected]
Jira: OSPRH-21438