Skip to content

Commit 00d20d0

Browse files
Merge pull request #371 from abays/operator_sdk_1.41.1
[OSPRH-22086] Upgrade to Operator SDK 1.41.1
2 parents dcca8a2 + b1da9eb commit 00d20d0

109 files changed

Lines changed: 2184 additions & 1154 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ci-operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build_root_image:
22
name: tools
33
namespace: openstack-k8s-operators
4-
tag: ci-build-root-golang-1.24-sdk-1.31
4+
tag: ci-build-root-golang-1.24-sdk-1.41.1

.github/workflows/build-test-operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
uses: redhat-actions/openshift-tools-installer@v1
7878
with:
7979
source: github
80-
operator-sdk: '1.26.0'
80+
operator-sdk: '1.41.1'
8181

8282
- name: Log in to Quay Registry
8383
uses: redhat-actions/podman-login@v1

.github/workflows/force-bump-pr-manual.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
with:
1010
operator_name: test
1111
branch_name: ${{ github.ref_name }}
12-
custom_image: quay.io/openstack-k8s-operators/openstack-k8s-operators-ci-build-tools:golang-1.24-sdk-1.31
12+
custom_image: quay.io/openstack-k8s-operators/openstack-k8s-operators-ci-build-tools:golang-1.24-sdk-1.41.1
1313
secrets:
1414
FORCE_BUMP_PULL_REQUEST_PAT: ${{ secrets.FORCE_BUMP_PULL_REQUEST_PAT }}

.github/workflows/force-bump-pr-scheduled.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
uses: openstack-k8s-operators/openstack-k8s-operators-ci/.github/workflows/force-bump-branches.yaml@main
1111
with:
1212
operator_name: test
13-
custom_image: quay.io/openstack-k8s-operators/openstack-k8s-operators-ci-build-tools:golang-1.24-sdk-1.31
13+
custom_image: quay.io/openstack-k8s-operators/openstack-k8s-operators-ci-build-tools:golang-1.24-sdk-1.41.1
1414
secrets:
1515
FORCE_BUMP_PULL_REQUEST_PAT: ${{ secrets.FORCE_BUMP_PULL_REQUEST_PAT }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ repos:
7373
rev: e30d72fcbced0ab8a7b6d23be1dee129e2a7b849
7474
hooks:
7575
- id: kuttl-single-test-assert
76-
args: ["tests/kuttl"]
76+
args: ["test/kuttl"]

.zuul.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- openstack-k8s-operators-content-provider:
77
vars:
88
cifmw_operator_build_meta_build: false
9+
cifmw_install_yamls_sdk_version: v1.41.1
910
- podified-multinode-edpm-deployment-crc-test-operator:
1011
dependencies:
1112
- openstack-k8s-operators-content-provider

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN mkdir -p ${DEST_ROOT}/usr/local/bin/
2626
RUN if [ ! -f $CACHITO_ENV_FILE ]; then go mod download ; fi
2727

2828
# Build manager
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}/manager main.go
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}/manager cmd/main.go
3030

3131
RUN cp -r templates ${DEST_ROOT}/templates
3232

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ endif
4848

4949
# Set the Operator SDK version to use. By default, what is installed on the system is used.
5050
# This is useful for CI or a project to utilize a specific version of the operator-sdk toolkit.
51-
OPERATOR_SDK_VERSION ?= v1.31.0
51+
OPERATOR_SDK_VERSION ?= v1.41.1
5252

5353
# Image URL to use all building/pushing image targets
5454
DEFAULT_IMG ?= quay.io/openstack-k8s-operators/test-operator:latest
@@ -125,21 +125,21 @@ PROC_CMD = --procs ${PROCS}
125125

126126
.PHONY: test
127127
test: manifests generate fmt vet envtest ginkgo ## Run tests.
128-
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) -v debug --bin-dir $(LOCALBIN) use $(ENVTEST_K8S_VERSION) -p path)" OPERATOR_TEMPLATES="$(PWD)/templates" $(GINKGO) --trace --cover --coverpkg=../../pkg/ansibletest,../../pkg/horizontest,../../pkg/tempest,../../pkg/tobiko,../../controllers,../../api/v1beta1 --coverprofile cover.out --covermode=atomic --randomize-all ${PROC_CMD} $(GINKGO_ARGS) ./tests/...
128+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) -v debug --bin-dir $(LOCALBIN) use $(ENVTEST_K8S_VERSION) -p path)" OPERATOR_TEMPLATES="$(PWD)/templates" $(GINKGO) --trace --cover --coverpkg=../../internal/ansibletest,../../internal/horizontest,../../internal/tempest,../../internal/tobiko,../../internal/controller,../../api/v1beta1 --coverprofile cover.out --covermode=atomic --randomize-all ${PROC_CMD} $(GINKGO_ARGS) ./test/...
129129

130130
##@ Build
131131

132132
.PHONY: build
133133
build: generate fmt vet ## Build manager binary.
134-
go build -o bin/manager main.go
134+
go build -o bin/manager cmd/main.go
135135

136136
.PHONY: run
137137
run: export METRICS_PORT?=8080
138138
run: export HEALTH_PORT?=8081
139139
run: export PPROF_PORT?=8082
140140
run: manifests generate fmt vet ## Run a controller from your host.
141141
source hack/export_related_images.sh && \
142-
go run ./main.go -metrics-bind-address ":$(METRICS_PORT)" -health-probe-bind-address ":$(HEALTH_PORT)" -pprof-bind-address ":$(PPROF_PORT)"
142+
go run ./cmd/main.go -metrics-bind-address ":$(METRICS_PORT)" -health-probe-bind-address ":$(HEALTH_PORT)" -pprof-bind-address ":$(PPROF_PORT)"
143143

144144
.PHONY: docker-build
145145
docker-build: ## test ## Build docker image with the manager.
@@ -203,7 +203,7 @@ ENVTEST ?= $(LOCALBIN)/setup-envtest
203203
GINKGO ?= $(LOCALBIN)/ginkgo
204204

205205
## Tool Versions
206-
KUSTOMIZE_VERSION ?= v3.8.7
206+
KUSTOMIZE_VERSION ?= v5.6.0
207207
CONTROLLER_TOOLS_VERSION ?= v0.18.0
208208
GOTOOLCHAIN_VERSION ?= go1.24.0
209209

PROJECT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# More info: https://book.kubebuilder.io/reference/project-config.html
55
domain: openstack.org
66
layout:
7-
- go.kubebuilder.io/v3
7+
- go.kubebuilder.io/v4
88
plugins:
99
manifests.sdk.operatorframework.io/v2: {}
1010
scorecard.sdk.operatorframework.io/v2: {}

api/go.mod

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ require (
2424
github.com/go-openapi/jsonreference v0.21.0 // indirect
2525
github.com/go-openapi/swag v0.23.0 // indirect
2626
github.com/gogo/protobuf v1.3.2 // indirect
27-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
2827
github.com/golang/protobuf v1.5.4 // indirect
2928
github.com/google/gnostic-models v0.6.8 // indirect
3029
github.com/google/gofuzz v1.2.0 // indirect
3130
github.com/google/uuid v1.6.0 // indirect
32-
github.com/imdario/mergo v0.3.16 // indirect
3331
github.com/josharian/intern v1.0.0 // indirect
3432
github.com/json-iterator/go v1.1.12 // indirect
3533
github.com/klauspost/compress v1.17.9 // indirect
@@ -42,9 +40,7 @@ require (
4240
github.com/prometheus/client_model v0.6.1 // indirect
4341
github.com/prometheus/common v0.55.0 // indirect
4442
github.com/prometheus/procfs v0.15.1 // indirect
45-
github.com/spf13/pflag v1.0.5 // indirect
4643
github.com/x448/float16 v0.8.4 // indirect
47-
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
4844
golang.org/x/net v0.43.0 // indirect
4945
golang.org/x/oauth2 v0.23.0 // indirect
5046
golang.org/x/sys v0.35.0 // indirect

0 commit comments

Comments
 (0)