Skip to content

Commit 985ddd9

Browse files
authored
Merge pull request openstack-k8s-operators#295 from bshephar/controller-runtime
Controller runtime update
2 parents 2c4aedd + 6f8938b commit 985ddd9

File tree

14 files changed

+593
-1261
lines changed

14 files changed

+593
-1261
lines changed

.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.19-sdk-1.31
4+
tag: ci-build-root-golang-1.20-sdk-1.31

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: openstack-k8s-operators/openstack-k8s-operators-ci/.github/workflows/reusable-build-operator.yaml@main
1616
with:
1717
operator_name: neutron
18-
go_version: 1.19.x
18+
go_version: 1.20.x
1919
operator_sdk_version: 1.31.0
2020
secrets:
2121
IMAGENAMESPACE: ${{ secrets.IMAGENAMESPACE }}

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
ARG GOLANG_BUILDER=registry.access.redhat.com/ubi9/go-toolset:1.19
2+
ARG GOLANG_BUILDER=registry.access.redhat.com/ubi9/go-toolset:1.20
33
ARG OPERATOR_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:latest
44

55
FROM $GOLANG_BUILDER AS builder
@@ -53,16 +53,16 @@ ARG IMAGE_TAGS="cn-openstack openstack"
5353

5454
# Labels required by upstream and osbs build system
5555
LABEL com.redhat.component="${IMAGE_COMPONENT}" \
56-
name="${IMAGE_NAME}" \
57-
version="${IMAGE_VERSION}" \
58-
summary="${IMAGE_SUMMARY}" \
59-
io.k8s.name="${IMAGE_NAME}" \
60-
io.k8s.description="${IMAGE_DESC}" \
61-
io.openshift.tags="${IMAGE_TAGS}"
56+
name="${IMAGE_NAME}" \
57+
version="${IMAGE_VERSION}" \
58+
summary="${IMAGE_SUMMARY}" \
59+
io.k8s.name="${IMAGE_NAME}" \
60+
io.k8s.description="${IMAGE_DESC}" \
61+
io.openshift.tags="${IMAGE_TAGS}"
6262
### DO NOT EDIT LINES ABOVE
6363

6464
ENV USER_UID=$USER_ID \
65-
OPERATOR_TEMPLATES=/usr/share/neutron-operator/templates/
65+
OPERATOR_TEMPLATES=/usr/share/neutron-operator/templates/
6666

6767
WORKDIR /
6868

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ OPERATOR_SDK_VERSION ?= v1.31.0
5353
# Image URL to use all building/pushing image targets
5454
IMG ?= quay.io/openstack-k8s-operators/neutron-operator:latest
5555
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
56-
ENVTEST_K8S_VERSION = 1.26
56+
ENVTEST_K8S_VERSION = 1.28
5757

5858
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
5959
ifeq (,$(shell go env GOBIN))

api/bases/neutron.openstack.org_neutronapis.yaml

Lines changed: 147 additions & 31 deletions
Large diffs are not rendered by default.

api/go.mod

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,68 @@
11
module github.com/openstack-k8s-operators/neutron-operator/api
22

3-
go 1.19
3+
go 1.20
44

55
require (
6-
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240129151020-c9467a8fbbfc
7-
github.com/openstack-k8s-operators/lib-common/modules/storage v0.3.1-0.20240129151020-c9467a8fbbfc
8-
k8s.io/api v0.26.13
9-
k8s.io/apimachinery v0.26.13
10-
sigs.k8s.io/controller-runtime v0.14.7
6+
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240214144842-5dcac51e5b36
7+
github.com/openstack-k8s-operators/lib-common/modules/storage v0.3.1-0.20240214144842-5dcac51e5b36
8+
k8s.io/api v0.28.3
9+
k8s.io/apimachinery v0.28.3
10+
sigs.k8s.io/controller-runtime v0.16.4
1111
)
1212

1313
require (
1414
github.com/beorn7/perks v1.0.1 // indirect
1515
github.com/cespare/xxhash/v2 v2.2.0 // indirect
1616
github.com/davecgh/go-spew v1.1.1 // indirect
17-
github.com/emicklei/go-restful/v3 v3.10.1 // indirect
18-
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
19-
github.com/fsnotify/fsnotify v1.6.0 // indirect
17+
github.com/emicklei/go-restful/v3 v3.11.2 // indirect
18+
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
19+
github.com/fsnotify/fsnotify v1.7.0 // indirect
2020
github.com/go-logr/logr v1.4.1 // indirect
21-
github.com/go-openapi/jsonpointer v0.19.6 // indirect
22-
github.com/go-openapi/jsonreference v0.20.1 // indirect
23-
github.com/go-openapi/swag v0.22.3 // indirect
21+
github.com/go-openapi/jsonpointer v0.20.2 // indirect
22+
github.com/go-openapi/jsonreference v0.20.4 // indirect
23+
github.com/go-openapi/swag v0.22.9 // indirect
2424
github.com/gogo/protobuf v1.3.2 // indirect
2525
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
2626
github.com/golang/protobuf v1.5.3 // indirect
27-
github.com/google/gnostic v0.6.9 // indirect
27+
github.com/google/gnostic-models v0.6.8 // indirect
2828
github.com/google/go-cmp v0.6.0 // indirect
2929
github.com/google/gofuzz v1.2.0 // indirect
3030
github.com/google/uuid v1.6.0 // indirect
3131
github.com/imdario/mergo v0.3.16 // indirect
3232
github.com/josharian/intern v1.0.0 // indirect
3333
github.com/json-iterator/go v1.1.12 // indirect
3434
github.com/mailru/easyjson v0.7.7 // indirect
35-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
3635
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3736
github.com/modern-go/reflect2 v1.0.2 // indirect
3837
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
3938
github.com/pkg/errors v0.9.1 // indirect
40-
github.com/prometheus/client_golang v1.14.0 // indirect
41-
github.com/prometheus/client_model v0.3.0 // indirect
42-
github.com/prometheus/common v0.37.0 // indirect
43-
github.com/prometheus/procfs v0.8.0 // indirect
39+
github.com/prometheus/client_golang v1.18.0 // indirect
40+
github.com/prometheus/client_model v0.5.0 // indirect
41+
github.com/prometheus/common v0.46.0 // indirect
42+
github.com/prometheus/procfs v0.12.0 // indirect
4443
github.com/spf13/pflag v1.0.5 // indirect
45-
github.com/stretchr/testify v1.8.3 // indirect
44+
golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3 // indirect
4645
golang.org/x/net v0.20.0 // indirect
47-
golang.org/x/oauth2 v0.7.0 // indirect
46+
golang.org/x/oauth2 v0.16.0 // indirect
4847
golang.org/x/sys v0.16.0 // indirect
4948
golang.org/x/term v0.16.0 // indirect
5049
golang.org/x/text v0.14.0 // indirect
51-
golang.org/x/time v0.3.0 // indirect
52-
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
53-
google.golang.org/appengine v1.6.7 // indirect
54-
google.golang.org/protobuf v1.31.0 // indirect
50+
golang.org/x/time v0.5.0 // indirect
51+
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
52+
google.golang.org/appengine v1.6.8 // indirect
53+
google.golang.org/protobuf v1.32.0 // indirect
5554
gopkg.in/inf.v0 v0.9.1 // indirect
5655
gopkg.in/yaml.v2 v2.4.0 // indirect
5756
gopkg.in/yaml.v3 v3.0.1 // indirect
58-
k8s.io/apiextensions-apiserver v0.26.13 // indirect
59-
k8s.io/client-go v0.26.13 // indirect
60-
k8s.io/component-base v0.26.13 // indirect
61-
k8s.io/klog/v2 v2.100.1 // indirect
62-
k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a // indirect
57+
k8s.io/apiextensions-apiserver v0.28.3 // indirect
58+
k8s.io/client-go v0.28.3 // indirect
59+
k8s.io/component-base v0.28.3 // indirect
60+
k8s.io/klog/v2 v2.120.1 // indirect
61+
k8s.io/kube-openapi v0.0.0-20240126223410-2919ad4fcfec // indirect
6362
k8s.io/utils v0.0.0-20240102154912-e7106e64919e // indirect
6463
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
65-
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
66-
sigs.k8s.io/yaml v1.3.0 // indirect
64+
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
65+
sigs.k8s.io/yaml v1.4.0 // indirect
6766
)
6867

6968
// mschuppert: map to latest commit from release-4.13 tag

0 commit comments

Comments
 (0)