Skip to content

Commit c9de8bd

Browse files
Merge pull request #1208 from RadekManak/rebase-1.29
OCPCLOUD-2430,CFE-684: Rebase k8s 1.29 and update dependencies
2 parents fb9fd51 + 4551963 commit c9de8bd

File tree

1,330 files changed

+130479
-37477
lines changed

Some content is hidden

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

1,330 files changed

+130479
-37477
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ DBG ?= 0
33
VERSION ?= $(shell git describe --always --abbrev=7)
44
MUTABLE_TAG ?= latest
55
IMAGE = $(REGISTRY)machine-api-operator
6-
BUILD_IMAGE ?= registry.ci.openshift.org/openshift/release:golang-1.20
6+
BUILD_IMAGE ?= registry.ci.openshift.org/openshift/release:golang-1.21
77
GOLANGCI_LINT = go run ./vendor/github.com/golangci/golangci-lint/cmd/golangci-lint
88

99
# Enable go modules and vendoring
@@ -53,7 +53,7 @@ endif
5353
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
5454
ENVTEST = go run ${PROJECT_DIR}/vendor/sigs.k8s.io/controller-runtime/tools/setup-envtest
5555
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
56-
ENVTEST_K8S_VERSION = 1.28
56+
ENVTEST_K8S_VERSION = 1.29
5757

5858
$(CONTROLLER_GEN): $(TOOLS_DIR)/go.mod # Build controller-gen from tools folder.
5959
cd $(TOOLS_DIR); GO111MODULE=on GOFLAGS=-mod=vendor go build -tags=tools -o $(BIN_DIR)/controller-gen sigs.k8s.io/controller-tools/cmd/controller-gen

cmd/vsphere/main.go

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
ipamv1alpha1 "github.com/openshift/machine-api-operator/third_party/cluster-api/exp/ipam/api/v1alpha1"
2424
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2525
"k8s.io/klog/v2"
26-
"k8s.io/klog/v2/klogr"
26+
"k8s.io/klog/v2/textlogger"
2727
ctrl "sigs.k8s.io/controller-runtime"
2828
"sigs.k8s.io/controller-runtime/pkg/cache"
2929
"sigs.k8s.io/controller-runtime/pkg/client/config"
@@ -43,7 +43,9 @@ func main() {
4343
"", "",
4444
)
4545

46-
klog.InitFlags(nil)
46+
textLoggerConfig := textlogger.NewConfig()
47+
textLoggerConfig.AddFlags(flag.CommandLine)
48+
ctrl.SetLogger(textlogger.NewLogger(textLoggerConfig))
4749
watchNamespace := flag.String(
4850
"namespace",
4951
"",
@@ -75,9 +77,11 @@ func main() {
7577
"Address for hosting metrics",
7678
)
7779

78-
if err := flag.Set("logtostderr", "true"); err != nil {
79-
klog.Fatalf("failed to set logtostderr flag: %v", err)
80-
}
80+
logToStderr := flag.Bool(
81+
"logtostderr",
82+
true,
83+
"log to standard error instead of files",
84+
)
8185

8286
healthAddr := flag.String(
8387
"health-addr",
@@ -86,6 +90,10 @@ func main() {
8690
)
8791
flag.Parse()
8892

93+
if logToStderr != nil {
94+
klog.LogToStderr(*logToStderr)
95+
}
96+
8997
if printVersion {
9098
fmt.Println(version.String)
9199
os.Exit(0)
@@ -162,7 +170,7 @@ func main() {
162170

163171
featureGates, err := featureGateAccessor.CurrentFeatureGates()
164172
if err != nil {
165-
klog.Fatalf("unable to retrieve current feature gates: %w", err)
173+
klog.Fatalf("unable to retrieve current feature gates: %v", err)
166174
}
167175
// read featuregate read and usage to set a variable to pass to a controller
168176
staticIPFeatureGateEnabled := featureGates.Enabled(configv1.FeatureGateVSphereStaticIPs)
@@ -189,14 +197,13 @@ func main() {
189197
}
190198

191199
if err := ipamv1alpha1.AddToScheme(mgr.GetScheme()); err != nil {
192-
klog.Fatalf("unable to add ipamv1alpha1 to scheme: %w", err)
200+
klog.Fatalf("unable to add ipamv1alpha1 to scheme: %v", err)
193201
}
194202

195203
if err := capimachine.AddWithActuator(mgr, machineActuator); err != nil {
196204
klog.Fatal(err)
197205
}
198206

199-
ctrl.SetLogger(klogr.New())
200207
setupLog := ctrl.Log.WithName("setup")
201208
if err = (&machinesetcontroller.Reconciler{
202209
Client: mgr.GetClient(),

go.mod

Lines changed: 52 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
module github.com/openshift/machine-api-operator
22

3-
go 1.19
3+
go 1.21
4+
5+
toolchain go1.21.0
46

57
require (
68
github.com/blang/semver v3.5.1+incompatible
7-
github.com/go-logr/logr v1.2.4
8-
github.com/google/gofuzz v1.2.0 // indirect
9-
github.com/google/uuid v1.3.0
10-
github.com/onsi/ginkgo/v2 v2.12.1
11-
github.com/onsi/gomega v1.28.0
12-
github.com/openshift/api v0.0.0-20231120222239-b86761094ee3
13-
github.com/openshift/client-go v0.0.0-20231121143148-910ca30a1a9a
14-
github.com/openshift/library-go v0.0.0-20230927113136-405c34317fa4
15-
github.com/prometheus/client_golang v1.17.0
16-
github.com/spf13/cobra v1.7.0
9+
github.com/go-logr/logr v1.4.1
10+
github.com/google/uuid v1.4.0
11+
github.com/onsi/ginkgo/v2 v2.14.0
12+
github.com/onsi/gomega v1.30.0
13+
github.com/openshift/api v0.0.0-20240124164020-e2ce40831f2e
14+
github.com/openshift/client-go v0.0.0-20240115204758-e6bf7d631d5e
15+
github.com/openshift/library-go v0.0.0-20240116081341-964bcb3f545c
16+
github.com/prometheus/client_golang v1.18.0
17+
github.com/spf13/cobra v1.8.0
1718
github.com/spf13/pflag v1.0.5
18-
github.com/stretchr/testify v1.8.2
19-
github.com/vmware/govmomi v0.27.4
20-
golang.org/x/net v0.17.0
19+
github.com/stretchr/testify v1.8.4
20+
github.com/vmware/govmomi v0.34.2
21+
golang.org/x/net v0.20.0
2122
gopkg.in/gcfg.v1 v1.2.3
22-
gopkg.in/warnings.v0 v0.1.2 // indirect
23-
k8s.io/api v0.28.2
24-
k8s.io/apimachinery v0.28.2
25-
k8s.io/apiserver v0.28.2
26-
k8s.io/client-go v0.28.2
27-
k8s.io/klog/v2 v2.100.1
28-
k8s.io/kubectl v0.28.2
29-
k8s.io/utils v0.0.0-20230726121419-3b25d923346b
30-
sigs.k8s.io/controller-runtime v0.16.2
31-
sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20230926180527-c93e2abcb28e
32-
sigs.k8s.io/yaml v1.3.0
23+
k8s.io/api v0.29.0
24+
k8s.io/apimachinery v0.29.0
25+
k8s.io/apiserver v0.29.0
26+
k8s.io/client-go v0.29.0
27+
k8s.io/klog/v2 v2.110.1
28+
k8s.io/kubectl v0.29.0
29+
k8s.io/utils v0.0.0-20240102154912-e7106e64919e
30+
sigs.k8s.io/controller-runtime v0.17.0
31+
sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20240116121732-6747c42ce339
32+
sigs.k8s.io/yaml v1.4.0
3333
)
3434

3535
require (
@@ -71,21 +71,21 @@ require (
7171
github.com/daixiang0/gci v0.10.1 // indirect
7272
github.com/davecgh/go-spew v1.1.1 // indirect
7373
github.com/denis-tingaikin/go-header v0.4.3 // indirect
74-
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
74+
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
7575
github.com/esimonov/ifshort v1.0.4 // indirect
7676
github.com/ettle/strcase v0.1.1 // indirect
7777
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
78-
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
78+
github.com/evanphx/json-patch/v5 v5.8.0 // indirect
7979
github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d // indirect
8080
github.com/fatih/color v1.15.0 // indirect
8181
github.com/fatih/structtag v1.2.0 // indirect
8282
github.com/firefart/nonamedreturns v1.0.4 // indirect
83-
github.com/fsnotify/fsnotify v1.6.0 // indirect
83+
github.com/fsnotify/fsnotify v1.7.0 // indirect
8484
github.com/fzipp/gocyclo v0.6.0 // indirect
8585
github.com/ghodss/yaml v1.0.0 // indirect
8686
github.com/go-critic/go-critic v0.7.0 // indirect
8787
github.com/go-errors/errors v1.4.2 // indirect
88-
github.com/go-logr/zapr v1.2.4 // indirect
88+
github.com/go-logr/zapr v1.3.0 // indirect
8989
github.com/go-openapi/jsonpointer v0.19.6 // indirect
9090
github.com/go-openapi/jsonreference v0.20.2 // indirect
9191
github.com/go-openapi/swag v0.22.3 // indirect
@@ -114,10 +114,12 @@ require (
114114
github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 // indirect
115115
github.com/google/btree v1.0.1 // indirect
116116
github.com/google/gnostic-models v0.6.8 // indirect
117-
github.com/google/go-cmp v0.5.9 // indirect
117+
github.com/google/go-cmp v0.6.0 // indirect
118+
github.com/google/gofuzz v1.2.0 // indirect
118119
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
119120
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
120121
github.com/gordonklaus/ineffassign v0.0.0-20230107090616-13ace0543b28 // indirect
122+
github.com/gorilla/websocket v1.5.0 // indirect
121123
github.com/gostaticanalysis/analysisutil v0.7.1 // indirect
122124
github.com/gostaticanalysis/comment v1.4.2 // indirect
123125
github.com/gostaticanalysis/forcetypeassert v0.1.0 // indirect
@@ -156,7 +158,7 @@ require (
156158
github.com/mattn/go-colorable v0.1.13 // indirect
157159
github.com/mattn/go-isatty v0.0.17 // indirect
158160
github.com/mattn/go-runewidth v0.0.14 // indirect
159-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
161+
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
160162
github.com/mbilski/exhaustivestruct v1.2.0 // indirect
161163
github.com/mgechev/revive v1.3.1 // indirect
162164
github.com/mitchellh/go-homedir v1.1.0 // indirect
@@ -169,6 +171,7 @@ require (
169171
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
170172
github.com/moricho/tparallel v0.3.1 // indirect
171173
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
174+
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
172175
github.com/nakabonne/nestif v0.3.1 // indirect
173176
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect
174177
github.com/nishanths/exhaustive v0.9.5 // indirect
@@ -180,9 +183,9 @@ require (
180183
github.com/pkg/errors v0.9.1 // indirect
181184
github.com/pmezard/go-difflib v1.0.0 // indirect
182185
github.com/polyfloyd/go-errorlint v1.4.0 // indirect
183-
github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16 // indirect
184-
github.com/prometheus/common v0.44.0 // indirect
185-
github.com/prometheus/procfs v0.11.1 // indirect
186+
github.com/prometheus/client_model v0.5.0 // indirect
187+
github.com/prometheus/common v0.45.0 // indirect
188+
github.com/prometheus/procfs v0.12.0 // indirect
186189
github.com/quasilyte/go-ruleguard v0.3.19 // indirect
187190
github.com/quasilyte/gogrep v0.5.0 // indirect
188191
github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect
@@ -227,35 +230,36 @@ require (
227230
gitlab.com/bosi/decorder v0.2.3 // indirect
228231
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
229232
go.uber.org/multierr v1.11.0 // indirect
230-
go.uber.org/zap v1.25.0 // indirect
233+
go.uber.org/zap v1.26.0 // indirect
231234
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
232235
golang.org/x/exp/typeparams v0.0.0-20230224173230-c95f2b4c22f2 // indirect
233-
golang.org/x/mod v0.12.0 // indirect
234-
golang.org/x/oauth2 v0.8.0 // indirect
235-
golang.org/x/sync v0.3.0 // indirect
236-
golang.org/x/sys v0.13.0 // indirect
237-
golang.org/x/term v0.13.0 // indirect
238-
golang.org/x/text v0.13.0 // indirect
239-
golang.org/x/tools v0.12.0 // indirect
236+
golang.org/x/mod v0.14.0 // indirect
237+
golang.org/x/oauth2 v0.12.0 // indirect
238+
golang.org/x/sync v0.5.0 // indirect
239+
golang.org/x/sys v0.16.0 // indirect
240+
golang.org/x/term v0.16.0 // indirect
241+
golang.org/x/text v0.14.0 // indirect
242+
golang.org/x/tools v0.16.1 // indirect
240243
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
241244
google.golang.org/appengine v1.6.7 // indirect
242245
google.golang.org/protobuf v1.31.0 // indirect
243246
gopkg.in/inf.v0 v0.9.1 // indirect
244247
gopkg.in/ini.v1 v1.67.0 // indirect
248+
gopkg.in/warnings.v0 v0.1.2 // indirect
245249
gopkg.in/yaml.v2 v2.4.0 // indirect
246250
gopkg.in/yaml.v3 v3.0.1 // indirect
247251
honnef.co/go/tools v0.4.3 // indirect
248-
k8s.io/apiextensions-apiserver v0.28.2 // indirect
249-
k8s.io/cli-runtime v0.28.2 // indirect
250-
k8s.io/component-base v0.28.2 // indirect
251-
k8s.io/kube-aggregator v0.28.2 // indirect
252-
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
252+
k8s.io/apiextensions-apiserver v0.29.0 // indirect
253+
k8s.io/cli-runtime v0.29.0 // indirect
254+
k8s.io/component-base v0.29.0 // indirect
255+
k8s.io/kube-aggregator v0.29.0 // indirect
256+
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
253257
mvdan.cc/gofumpt v0.4.0 // indirect
254258
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed // indirect
255259
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b // indirect
256260
mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d // indirect
257261
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
258262
sigs.k8s.io/kustomize/api v0.13.5-0.20230601165947-6ce0bf390ce3 // indirect
259263
sigs.k8s.io/kustomize/kyaml v0.14.3-0.20230601165947-6ce0bf390ce3 // indirect
260-
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
264+
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
261265
)

0 commit comments

Comments
 (0)