You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: Dockerfile
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ RUN mkdir -p ${DEST_ROOT}/usr/local/bin/
25
25
RUN if [ ! -f $CACHITO_ENV_FILE ]; then go mod download ; fi
26
26
27
27
# Build manager
28
-
RUN if [ -f $CACHITO_ENV_FILE ] ; then source $CACHITO_ENV_FILE ; fi ; env ${GO_BUILD_EXTRA_ENV_ARGS} go build ${GO_BUILD_EXTRA_ARGS} -a -o ${DEST_ROOT}/manager main.go
28
+
RUN if [ -f $CACHITO_ENV_FILE ] ; then source $CACHITO_ENV_FILE ; fi ; env ${GO_BUILD_EXTRA_ENV_ARGS} go build ${GO_BUILD_EXTRA_ARGS} -a -o ${DEST_ROOT}/manager cmd/main.go
29
29
RUN if [ -f $CACHITO_ENV_FILE ] ; then source $CACHITO_ENV_FILE ; fi ; env ${GO_BUILD_EXTRA_ENV_ARGS} go build ${GO_BUILD_EXTRA_ARGS} -a -o ${DEST_ROOT}/operator cmd/operator/main.go
0 commit comments