Skip to content

Commit 30e9054

Browse files
authored
Bump CAPI to v1.9.9 (#49)
1 parent 46ca0e4 commit 30e9054

File tree

9 files changed

+232
-241
lines changed

9 files changed

+232
-241
lines changed

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.23.7
1+
1.23.11

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ARG ARCH
1919

2020
# Build the manager binary
21-
FROM golang:1.23.7 as builder
21+
FROM golang:1.23.11 as builder
2222
WORKDIR /workspace
2323

2424
# Run this with docker build --build_arg $(go env GOPROXY) to override the goproxy

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ SHELL := /usr/bin/env bash
2323
#
2424
# Go.
2525
#
26-
GO_VERSION ?= 1.23.7
26+
GO_VERSION ?= 1.23.11
2727

2828
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
2929
ifeq (,$(shell go env GOBIN))
@@ -100,19 +100,19 @@ kustomize: ## Download kustomize locally if necessary.
100100

101101
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
102102
controller-gen: ## Download controller-gen locally if necessary.
103-
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.15.0)
103+
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.16.5)
104104

105105
GINKGO := $(shell pwd)/bin/ginkgo
106106
ginkgo: ## Download ginkgo locally if necessary.
107-
$(call go-get-tool,$(GINKGO),github.com/onsi/ginkgo/v2/ginkgo@v2.23.0)
107+
$(call go-get-tool,$(GINKGO),github.com/onsi/ginkgo/v2/ginkgo@2.23.4)
108108

109109
KIND := $(shell pwd)/bin/kind
110110
kind: ## Download kind locally if necessary.
111-
$(call go-get-tool,$(KIND),sigs.k8s.io/kind@v0.24.0)
111+
$(call go-get-tool,$(KIND),sigs.k8s.io/kind@v0.25.0)
112112

113113
GOLANGCI_LINT := $(shell pwd)/bin/golangci-lint
114114
golangci-lint: ## Download golangci-lint locally if necessary.
115-
$(call go-get-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.6)
115+
$(call go-get-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.8)
116116

117117
## --------------------------------------
118118
## Linting and fixing linter errors

config/rbac/role.yaml

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ rules:
1919
- cluster.x-k8s.io
2020
resources:
2121
- clusters
22-
verbs:
23-
- get
24-
- list
25-
- watch
26-
- apiGroups:
27-
- cluster.x-k8s.io
28-
resources:
2922
- machines
3023
- machines/status
3124
verbs:
@@ -70,25 +63,6 @@ rules:
7063
- ipam.metal3.io
7164
resources:
7265
- ipaddresses
73-
verbs:
74-
- create
75-
- delete
76-
- get
77-
- list
78-
- patch
79-
- update
80-
- watch
81-
- apiGroups:
82-
- ipam.metal3.io
83-
resources:
84-
- ipaddresses/status
85-
verbs:
86-
- get
87-
- patch
88-
- update
89-
- apiGroups:
90-
- ipam.metal3.io
91-
resources:
9266
- ipclaims
9367
verbs:
9468
- create
@@ -101,7 +75,9 @@ rules:
10175
- apiGroups:
10276
- ipam.metal3.io
10377
resources:
78+
- ipaddresses/status
10479
- ipclaims/status
80+
- ippools/status
10581
verbs:
10682
- get
10783
- patch
@@ -116,11 +92,3 @@ rules:
11692
- patch
11793
- update
11894
- watch
119-
- apiGroups:
120-
- ipam.metal3.io
121-
resources:
122-
- ippools/status
123-
verbs:
124-
- get
125-
- patch
126-
- update

controllers/elfmachine_controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,12 @@ func AddMachineControllerToManager(ctx goctx.Context, ctrlMgrCtx *capecontext.Co
7979
reconciler := &ElfMachineReconciler{
8080
ControllerManagerContext: ctrlMgrCtx,
8181
}
82+
predicateLog := ctrl.LoggerFrom(ctx).WithValues("controller", "elfmachine")
8283

8384
return ctrl.NewControllerManagedBy(mgr).
8485
For(controlledType).
8586
WithOptions(options).
86-
WithEventFilter(predicates.ResourceNotPausedAndHasFilterLabel(ctrl.LoggerFrom(ctx), ctrlMgrCtx.WatchFilterValue)).
87+
WithEventFilter(predicates.ResourceNotPausedAndHasFilterLabel(mgr.GetScheme(), predicateLog, ctrlMgrCtx.WatchFilterValue)).
8788
Complete(reconciler)
8889
}
8990

go.mod

Lines changed: 54 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
module github.com/smartxworks/cluster-api-provider-elf-static-ip
22

3-
go 1.23.7
3+
go 1.23.11
44

55
require (
6-
github.com/metal3-io/ip-address-manager/api v1.8.5
7-
k8s.io/api v0.30.10
8-
k8s.io/apimachinery v0.30.10
9-
k8s.io/client-go v0.30.10
10-
sigs.k8s.io/controller-runtime v0.18.7
6+
github.com/metal3-io/ip-address-manager/api v1.9.5
7+
k8s.io/api v0.31.9
8+
k8s.io/apimachinery v0.31.9
9+
k8s.io/client-go v0.31.9
10+
sigs.k8s.io/controller-runtime v0.19.7
1111
)
1212

1313
require (
1414
github.com/go-logr/logr v1.4.2
15-
github.com/onsi/ginkgo/v2 v2.23.0
16-
github.com/onsi/gomega v1.36.2
15+
github.com/onsi/ginkgo/v2 v2.23.4
16+
github.com/onsi/gomega v1.36.3
1717
github.com/pkg/errors v0.9.1
18-
github.com/smartxworks/cluster-api-provider-elf v1.6.0-rc.0
18+
github.com/smartxworks/cluster-api-provider-elf v1.7.0-rc.0
1919
github.com/spf13/pflag v1.0.5
20-
golang.org/x/mod v0.23.0
21-
golang.org/x/tools v0.30.0
22-
k8s.io/apiextensions-apiserver v0.30.10
23-
k8s.io/apiserver v0.30.10
24-
k8s.io/component-base v0.30.10
25-
k8s.io/klog/v2 v2.120.1
26-
k8s.io/utils v0.0.0-20231127182322-b307cd553661
27-
sigs.k8s.io/cluster-api v1.8.10
20+
golang.org/x/mod v0.24.0
21+
golang.org/x/tools v0.31.0
22+
k8s.io/apiextensions-apiserver v0.31.9
23+
k8s.io/apiserver v0.31.9
24+
k8s.io/component-base v0.31.9
25+
k8s.io/klog/v2 v2.130.1
26+
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
27+
sigs.k8s.io/cluster-api v1.9.9
2828
)
2929

3030
require (
3131
github.com/NYTimes/gziphandler v1.1.1 // indirect
32-
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df // indirect
32+
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
3333
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
3434
github.com/beorn7/perks v1.0.1 // indirect
3535
github.com/blang/semver/v4 v4.0.0 // indirect
36-
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
37-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
36+
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
37+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
3838
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
3939
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
40-
github.com/evanphx/json-patch v5.7.0+incompatible // indirect
4140
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
4241
github.com/felixge/httpsnoop v1.0.4 // indirect
4342
github.com/fsnotify/fsnotify v1.7.0 // indirect
43+
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
4444
github.com/go-logr/stdr v1.2.2 // indirect
4545
github.com/go-openapi/analysis v0.21.4 // indirect
4646
github.com/go-openapi/errors v0.20.4 // indirect
@@ -53,65 +53,67 @@ require (
5353
github.com/go-openapi/swag v0.22.4 // indirect
5454
github.com/go-openapi/validate v0.22.1 // indirect
5555
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
56-
github.com/gobuffalo/flect v1.0.2 // indirect
56+
github.com/gobuffalo/flect v1.0.3 // indirect
5757
github.com/gogo/protobuf v1.3.2 // indirect
5858
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
5959
github.com/golang/protobuf v1.5.4 // indirect
60-
github.com/google/cel-go v0.17.8 // indirect
60+
github.com/google/cel-go v0.20.1 // indirect
6161
github.com/google/gnostic-models v0.6.8 // indirect
62-
github.com/google/go-cmp v0.6.0 // indirect
62+
github.com/google/go-cmp v0.7.0 // indirect
6363
github.com/google/gofuzz v1.2.0 // indirect
64-
github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad // indirect
64+
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect
6565
github.com/google/uuid v1.6.0 // indirect
66-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
66+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect
6767
github.com/imdario/mergo v0.3.13 // indirect
6868
github.com/inconshreveable/mousetrap v1.1.0 // indirect
6969
github.com/josharian/intern v1.0.0 // indirect
7070
github.com/json-iterator/go v1.1.12 // indirect
7171
github.com/mailru/easyjson v0.7.7 // indirect
72-
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
7372
github.com/mitchellh/mapstructure v1.5.0 // indirect
7473
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
7574
github.com/modern-go/reflect2 v1.0.2 // indirect
7675
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
7776
github.com/oklog/ulid v1.3.1 // indirect
7877
github.com/opentracing/opentracing-go v1.2.0 // indirect
79-
github.com/prometheus/client_golang v1.18.0 // indirect
80-
github.com/prometheus/client_model v0.6.0 // indirect
81-
github.com/prometheus/common v0.45.0 // indirect
82-
github.com/prometheus/procfs v0.12.0 // indirect
83-
github.com/smartxworks/cloudtower-go-sdk/v2 v2.13.1-0.20231116110941-d411454388af // indirect
78+
github.com/prometheus/client_golang v1.19.1 // indirect
79+
github.com/prometheus/client_model v0.6.1 // indirect
80+
github.com/prometheus/common v0.55.0 // indirect
81+
github.com/prometheus/procfs v0.15.1 // indirect
82+
github.com/smartxworks/cloudtower-go-sdk/v2 v2.21.0-rc.2 // indirect
8483
github.com/smartxworks/host-config-agent-api v0.0.0-20240410021405-be1517a07889 // indirect
8584
github.com/spf13/cobra v1.8.1 // indirect
8685
github.com/stoewer/go-strcase v1.2.0 // indirect
86+
github.com/x448/float16 v0.8.4 // indirect
8787
go.mongodb.org/mongo-driver v1.12.1 // indirect
88-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
89-
go.opentelemetry.io/otel v1.24.0 // indirect
90-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.22.0 // indirect
91-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.20.0 // indirect
92-
go.opentelemetry.io/otel/metric v1.24.0 // indirect
93-
go.opentelemetry.io/otel/sdk v1.22.0 // indirect
94-
go.opentelemetry.io/otel/trace v1.24.0 // indirect
95-
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
88+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
89+
go.opentelemetry.io/otel v1.28.0 // indirect
90+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0 // indirect
91+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.27.0 // indirect
92+
go.opentelemetry.io/otel/metric v1.28.0 // indirect
93+
go.opentelemetry.io/otel/sdk v1.28.0 // indirect
94+
go.opentelemetry.io/otel/trace v1.28.0 // indirect
95+
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
96+
go.uber.org/automaxprocs v1.6.0 // indirect
9697
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
97-
golang.org/x/net v0.35.0 // indirect
98-
golang.org/x/oauth2 v0.21.0 // indirect
99-
golang.org/x/sync v0.11.0 // indirect
100-
golang.org/x/sys v0.30.0 // indirect
101-
golang.org/x/term v0.29.0 // indirect
102-
golang.org/x/text v0.22.0 // indirect
98+
golang.org/x/net v0.38.0 // indirect
99+
golang.org/x/oauth2 v0.27.0 // indirect
100+
golang.org/x/sync v0.12.0 // indirect
101+
golang.org/x/sys v0.32.0 // indirect
102+
golang.org/x/term v0.30.0 // indirect
103+
golang.org/x/text v0.23.0 // indirect
103104
golang.org/x/time v0.5.0 // indirect
104105
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
105-
google.golang.org/genproto/googleapis/api v0.0.0-20240311132316-a219d84964c2 // indirect
106-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240314234333-6e1732d8331c // indirect
107-
google.golang.org/grpc v1.62.2 // indirect
108-
google.golang.org/protobuf v1.36.1 // indirect
106+
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect
107+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
108+
google.golang.org/grpc v1.65.1 // indirect
109+
google.golang.org/protobuf v1.36.5 // indirect
110+
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
109111
gopkg.in/inf.v0 v0.9.1 // indirect
110112
gopkg.in/yaml.v2 v2.4.0 // indirect
111113
gopkg.in/yaml.v3 v3.0.1 // indirect
112-
k8s.io/cluster-bootstrap v0.30.3 // indirect
114+
k8s.io/cluster-bootstrap v0.31.3 // indirect
113115
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
114-
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.0 // indirect
116+
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3 // indirect
115117
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
116118
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
117119
sigs.k8s.io/yaml v1.4.0 // indirect

0 commit comments

Comments
 (0)