Skip to content

Commit 22c2e3d

Browse files
authored
Upgrade to cluster-api 1.3.0 and bump dependencies (#187)
1 parent 8021b25 commit 22c2e3d

File tree

7,315 files changed

+1930967
-450
lines changed

Some content is hidden

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

7,315 files changed

+1930967
-450
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.17.3 as builder
2+
FROM golang:1.19.3 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ ENVSUBST_VER := v2.0.0-20210730161058-179042472c46
6161
ENVSUBST_BIN := envsubst
6262
ENVSUBST := $(TOOLS_BIN_DIR)/$(ENVSUBST_BIN)-$(ENVSUBST_VER)
6363

64-
KUBECTL_VER := v1.22.9
64+
KUBECTL_VER := v1.23.14
6565
KUBECTL_BIN := kubectl
6666
KUBECTL := $(TOOLS_BIN_DIR)/$(KUBECTL_BIN)-$(KUBECTL_VER)
6767

@@ -157,7 +157,7 @@ lint: $(GOLANGCI_LINT)
157157
.PHONY: docker-pull-prerequisites
158158
docker-pull-prerequisites:
159159
docker pull docker/dockerfile:1.1-experimental
160-
docker pull docker.io/library/golang:1.16
160+
docker pull docker.io/library/golang:1.19
161161
docker pull gcr.io/distroless/static:latest
162162

163163
.PHONY: lint docker-build
@@ -256,7 +256,7 @@ generate-e2e-templates: $(KUSTOMIZE)
256256
.PHONY: test-e2e-run
257257
test-e2e-run: generate-e2e-templates $(GINKGO) $(ENVSUBST) ## Run e2e tests
258258
$(ENVSUBST) < $(E2E_CONF_FILE) > $(E2E_CONF_FILE_ENVSUBST) && \
259-
$(GINKGO) -v -trace -tags=e2e -focus="$(GINKGO_FOCUS)" -skip=$(GINKGO_SKIP) -nodes=$(GINKGO_NODES) --noColor=$(GINKGO_NOCOLOR) $(GINKGO_ARGS) ./test/e2e -- \
259+
$(GINKGO) -v -trace -tags=e2e -focus="$(GINKGO_FOCUS)" -skip=$(GINKGO_SKIP) -nodes=$(GINKGO_NODES) --no-color=$(GINKGO_NOCOLOR) $(GINKGO_ARGS) ./test/e2e -- \
260260
-e2e.artifacts-folder="$(ARTIFACTS)" \
261261
-e2e.config="$(E2E_CONF_FILE_ENVSUBST)" \
262262
-e2e.skip-resource-cleanup=$(SKIP_CLEANUP) -e2e.use-existing-cluster=$(SKIP_CREATE_MGMT_CLUSTER) $(E2E_ARGS)
@@ -326,13 +326,13 @@ envsubst: $(ENVSUBST) ## Build a local copy of envsubst.
326326
kubectl: $(KUBECTL) ## Build a local copy of kubectl.
327327

328328
$(CONTROLLER_GEN): ## Download controller-gen locally if necessary.
329-
GOBIN=$(BIN_DIR)/ $(GO_INSTALL) sigs.k8s.io/controller-tools/cmd/controller-gen $(CONTROLLER_GEN_BIN) v0.7.0
329+
GOBIN=$(BIN_DIR)/ $(GO_INSTALL) sigs.k8s.io/controller-tools/cmd/controller-gen $(CONTROLLER_GEN_BIN) v0.10.0
330330

331331
$(KUSTOMIZE): ## Download kustomize locally if necessary.
332332
GOBIN=$(BIN_DIR)/ $(GO_INSTALL) sigs.k8s.io/kustomize/kustomize/v4 $(KUSTOMIZE_BIN) v4.5.2
333333

334334
$(GINKGO): ## Build ginkgo.
335-
GOBIN=$(BIN_DIR)/ $(GO_INSTALL) github.com/onsi/ginkgo/ginkgo $(GINKGO_BIN) v1.16.5
335+
GOBIN=$(BIN_DIR)/ $(GO_INSTALL) github.com/onsi/ginkgo/v2/ginkgo $(GINKGO_BIN) v2.5.0
336336

337337
$(GOLANGCI_LINT): ## Build golanci-lint.
338338
GOBIN=$(BIN_DIR)/ $(GO_INSTALL) github.com/golangci/golangci-lint/cmd/golangci-lint $(GOLANGCI_LINT_BIN) v1.44.0

Tiltfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ settings = {
1919
"deploy_cert_manager": True,
2020
"preload_images_for_kind": True,
2121
"kind_cluster_name": "capoci",
22-
"capi_version": "v1.1.4",
22+
"capi_version": "v1.3.0",
2323
"cert_manager_version": "v1.1.0",
2424
"kubernetes_version": "v1.24.3",
2525
}

api/v1beta1/groupversion_info.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ limitations under the License.
1515
*/
1616

1717
// Package v1beta1 contains API Schema definitions for the infrastructure v1beta1 API group
18-
//+kubebuilder:object:generate=true
19-
//+groupName=infrastructure.cluster.x-k8s.io
18+
// +kubebuilder:object:generate=true
19+
// +groupName=infrastructure.cluster.x-k8s.io
2020
package v1beta1
2121

2222
import (

api/v1beta1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ type VCN struct {
878878
NetworkSecurityGroups []*NSG `json:"networkSecurityGroups,omitempty"`
879879
}
880880

881-
//LoadBalancer Configuration
881+
// LoadBalancer Configuration
882882
type LoadBalancer struct {
883883
//LoadBalancer Name.
884884
// +optional

cloud/scope/machine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ func (m *MachineScope) ReconcileCreateInstanceOnLB(ctx context.Context) error {
537537
// ReconcileDeleteInstanceOnLB checks to make sure the instance is part of a backend set then deletes the backend
538538
// on the NetworkLoadBalancer
539539
//
540-
// It will await the Work Request completion before returning
540+
// # It will await the Work Request completion before returning
541541
//
542542
// See https://docs.oracle.com/en-us/iaas/Content/NetworkLoadBalancer/BackendServers/backend_server_management.htm#BackendServerManagement
543543
// for more info on Backend Server Management

go.mod

Lines changed: 129 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,141 @@
11
module github.com/oracle/cluster-api-provider-oci
22

3-
go 1.16
3+
go 1.19
44

55
require (
6-
github.com/go-logr/logr v1.2.2
6+
github.com/go-logr/logr v1.2.3
77
github.com/golang/mock v1.6.0
88
github.com/onsi/ginkgo v1.16.5
9-
github.com/onsi/gomega v1.18.1
9+
github.com/onsi/gomega v1.24.1
1010
github.com/oracle/oci-go-sdk/v65 v65.18.0
1111
github.com/pkg/errors v0.9.1
1212
github.com/spf13/pflag v1.0.5
1313
gopkg.in/yaml.v2 v2.4.0
14-
k8s.io/api v0.24.2
15-
k8s.io/apimachinery v0.24.2
16-
k8s.io/client-go v0.24.2
17-
k8s.io/component-base v0.24.2
18-
k8s.io/klog/v2 v2.60.1
19-
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9
20-
sigs.k8s.io/cluster-api v1.2.0
21-
sigs.k8s.io/cluster-api/test v1.2.0
22-
sigs.k8s.io/controller-runtime v0.12.3
14+
k8s.io/api v0.25.0
15+
k8s.io/apimachinery v0.25.0
16+
k8s.io/client-go v0.25.0
17+
k8s.io/component-base v0.25.0
18+
k8s.io/klog/v2 v2.80.1
19+
k8s.io/utils v0.0.0-20220823124924-e9cbc92d1a73
20+
sigs.k8s.io/cluster-api v1.3.0
21+
sigs.k8s.io/cluster-api/test v1.3.0
22+
sigs.k8s.io/controller-runtime v0.13.1
2323
)
2424

25-
replace sigs.k8s.io/cluster-api => sigs.k8s.io/cluster-api v1.2.0
25+
require (
26+
cloud.google.com/go/compute v1.7.0 // indirect
27+
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
28+
github.com/Azure/go-autorest/autorest v0.11.27 // indirect
29+
github.com/Azure/go-autorest/autorest/adal v0.9.20 // indirect
30+
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
31+
github.com/Azure/go-autorest/logger v0.2.1 // indirect
32+
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
33+
github.com/BurntSushi/toml v1.0.0 // indirect
34+
github.com/MakeNowJust/heredoc v1.0.0 // indirect
35+
github.com/Masterminds/goutils v1.1.1 // indirect
36+
github.com/Masterminds/semver/v3 v3.1.1 // indirect
37+
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
38+
github.com/Microsoft/go-winio v0.5.0 // indirect
39+
github.com/alessio/shellescape v1.4.1 // indirect
40+
github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20220418222510-f25a4f6275ed // indirect
41+
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect
42+
github.com/beorn7/perks v1.0.1 // indirect
43+
github.com/blang/semver v3.5.1+incompatible // indirect
44+
github.com/blang/semver/v4 v4.0.0 // indirect
45+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
46+
github.com/coredns/caddy v1.1.0 // indirect
47+
github.com/coredns/corefile-migration v1.0.18 // indirect
48+
github.com/davecgh/go-spew v1.1.1 // indirect
49+
github.com/docker/distribution v2.8.1+incompatible // indirect
50+
github.com/docker/docker v20.10.21+incompatible // indirect
51+
github.com/docker/go-connections v0.4.0 // indirect
52+
github.com/docker/go-units v0.4.0 // indirect
53+
github.com/drone/envsubst/v2 v2.0.0-20210730161058-179042472c46 // indirect
54+
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
55+
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
56+
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
57+
github.com/fsnotify/fsnotify v1.6.0 // indirect
58+
github.com/go-logr/zapr v1.2.3 // indirect
59+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
60+
github.com/go-openapi/jsonreference v0.20.0 // indirect
61+
github.com/go-openapi/swag v0.22.3 // indirect
62+
github.com/gobuffalo/flect v0.3.0 // indirect
63+
github.com/gofrs/flock v0.8.1 // indirect
64+
github.com/gogo/protobuf v1.3.2 // indirect
65+
github.com/golang-jwt/jwt/v4 v4.2.0 // indirect
66+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
67+
github.com/golang/protobuf v1.5.2 // indirect
68+
github.com/google/cel-go v0.12.4 // indirect
69+
github.com/google/gnostic v0.6.9 // indirect
70+
github.com/google/go-cmp v0.5.9 // indirect
71+
github.com/google/go-github/v45 v45.2.0 // indirect
72+
github.com/google/go-querystring v1.1.0 // indirect
73+
github.com/google/gofuzz v1.2.0 // indirect
74+
github.com/google/safetext v0.0.0-20220905092116-b49f7bc46da2 // indirect
75+
github.com/google/uuid v1.3.0 // indirect
76+
github.com/hashicorp/hcl v1.0.0 // indirect
77+
github.com/huandu/xstrings v1.3.3 // indirect
78+
github.com/imdario/mergo v0.3.13 // indirect
79+
github.com/inconshreveable/mousetrap v1.0.1 // indirect
80+
github.com/josharian/intern v1.0.0 // indirect
81+
github.com/json-iterator/go v1.1.12 // indirect
82+
github.com/magiconair/properties v1.8.6 // indirect
83+
github.com/mailru/easyjson v0.7.7 // indirect
84+
github.com/mattn/go-isatty v0.0.16 // indirect
85+
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
86+
github.com/mitchellh/copystructure v1.2.0 // indirect
87+
github.com/mitchellh/mapstructure v1.5.0 // indirect
88+
github.com/mitchellh/reflectwalk v1.0.2 // indirect
89+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
90+
github.com/modern-go/reflect2 v1.0.2 // indirect
91+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
92+
github.com/nxadm/tail v1.4.8 // indirect
93+
github.com/onsi/ginkgo/v2 v2.5.0 // indirect
94+
github.com/opencontainers/go-digest v1.0.0 // indirect
95+
github.com/opencontainers/image-spec v1.0.2 // indirect
96+
github.com/pelletier/go-toml v1.9.5 // indirect
97+
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
98+
github.com/prometheus/client_golang v1.13.0 // indirect
99+
github.com/prometheus/client_model v0.2.0 // indirect
100+
github.com/prometheus/common v0.37.0 // indirect
101+
github.com/prometheus/procfs v0.8.0 // indirect
102+
github.com/shopspring/decimal v1.3.1 // indirect
103+
github.com/sirupsen/logrus v1.8.1 // indirect
104+
github.com/sony/gobreaker v0.5.0 // indirect
105+
github.com/spf13/afero v1.9.2 // indirect
106+
github.com/spf13/cast v1.5.0 // indirect
107+
github.com/spf13/cobra v1.6.1 // indirect
108+
github.com/spf13/jwalterweatherman v1.1.0 // indirect
109+
github.com/spf13/viper v1.13.0 // indirect
110+
github.com/stoewer/go-strcase v1.2.0 // indirect
111+
github.com/subosito/gotenv v1.4.1 // indirect
112+
github.com/valyala/fastjson v1.6.3 // indirect
113+
go.uber.org/atomic v1.7.0 // indirect
114+
go.uber.org/multierr v1.6.0 // indirect
115+
go.uber.org/zap v1.21.0 // indirect
116+
golang.org/x/crypto v0.1.0 // indirect
117+
golang.org/x/net v0.2.0 // indirect
118+
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect
119+
golang.org/x/sys v0.2.0 // indirect
120+
golang.org/x/term v0.2.0 // indirect
121+
golang.org/x/text v0.4.0 // indirect
122+
golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9 // indirect
123+
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
124+
google.golang.org/appengine v1.6.7 // indirect
125+
google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90 // indirect
126+
google.golang.org/protobuf v1.28.1 // indirect
127+
gopkg.in/inf.v0 v0.9.1 // indirect
128+
gopkg.in/ini.v1 v1.67.0 // indirect
129+
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
130+
gopkg.in/yaml.v3 v3.0.1 // indirect
131+
k8s.io/apiextensions-apiserver v0.25.0 // indirect
132+
k8s.io/apiserver v0.25.0 // indirect
133+
k8s.io/cluster-bootstrap v0.25.0 // indirect
134+
k8s.io/kube-openapi v0.0.0-20220803164354-a70c9af30aea // indirect
135+
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
136+
sigs.k8s.io/kind v0.17.0 // indirect
137+
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
138+
sigs.k8s.io/yaml v1.3.0 // indirect
139+
)
140+
141+
replace sigs.k8s.io/cluster-api => sigs.k8s.io/cluster-api v1.3.0

0 commit comments

Comments
 (0)