Skip to content

Commit dedf6e1

Browse files
cherry picks and dependencies updates to release-1.1 branch (#358)
* Update CAPI to v1.1.4 and go to 1.17.11 (#351) * update go to 1.17.11 Signed-off-by: cpanato <ctadeu@gmail.com> * update CAPI to v1.1.4 Signed-off-by: cpanato <ctadeu@gmail.com> * update cert-manager Signed-off-by: cpanato <ctadeu@gmail.com> * update dependencies Signed-off-by: cpanato <ctadeu@gmail.com> * bump golangci-lint version to v1.46.2 (#353) Signed-off-by: Prajyot-Parab <prajyot.parab2@ibm.com> Co-authored-by: Prajyot Parab <prajyot.parab2@ibm.com>
1 parent 7135c74 commit dedf6e1

File tree

10 files changed

+110
-473
lines changed

10 files changed

+110
-473
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# Build the manager binary
16-
FROM golang:1.17.9 as builder
16+
FROM golang:1.17.11 as builder
1717
WORKDIR /workspace
1818

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

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ CONVERSION_GEN := $(TOOLS_BIN_DIR)/$(CONVERSION_GEN_BIN)-$(CONVERSION_GEN_VER)
126126
ENVSUBST_BIN := envsubst
127127
ENVSUBST := $(TOOLS_BIN_DIR)/$(ENVSUBST_BIN)-drone
128128

129-
GOLANGCI_LINT_VER := v1.45.2
129+
GOLANGCI_LINT_VER := v1.46.2
130130
GOLANGCI_LINT_BIN := golangci-lint
131131
GOLANGCI_LINT := $(TOOLS_BIN_DIR)/$(GOLANGCI_LINT_BIN)-$(GOLANGCI_LINT_VER)
132132

@@ -385,7 +385,7 @@ release-binary: $(RELEASE_DIR)
385385
-e GOARCH=$(GOARCH) \
386386
-v "$$(pwd):/workspace" \
387387
-w /workspace \
388-
golang:1.17.7 \
388+
golang:1.17.11 \
389389
go build -a -trimpath -ldflags '-extldflags "-static"' \
390390
-o $(RELEASE_DIR)/$(notdir $(RELEASE_BINARY))-$(GOOS)-$(GOARCH) $(RELEASE_BINARY)
391391

@@ -431,8 +431,7 @@ create-management-cluster: $(KUSTOMIZE) $(ENVSUBST)
431431
./hack/install-cert-manager.sh
432432

433433
# Deploy CAPI
434-
# Using main artifacts
435-
curl --retry $(CURL_RETRIES) -sSL https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.1.3/cluster-api-components.yaml | $(ENVSUBST) | kubectl apply -f -
434+
curl --retry $(CURL_RETRIES) -sSL https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.1.4/cluster-api-components.yaml | $(ENVSUBST) | kubectl apply -f -
436435

437436
# Deploy CAPDO
438437
kind load docker-image $(CONTROLLER_IMG)-$(ARCH):$(TAG) --name=capdo

Tiltfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ settings = {
1616
"deploy_cert_manager": True,
1717
"preload_images_for_kind": True,
1818
"kind_cluster_name": "capdo",
19-
"capi_version": "v1.1.3",
19+
"capi_version": "v1.1.4",
2020
"cert_manager_version": "v1.1.0",
2121
"kubernetes_version": "v1.22.3",
2222
}
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
# The following manifests contain a self-signed issuer CR and a certificate CR.
22
# More document can be found at https://docs.cert-manager.io
3-
# WARNING: Targets CertManager 0.11 check https://docs.cert-manager.io/en/latest/tasks/upgrading/index.html for breaking changes
4-
apiVersion: cert-manager.io/v1alpha2
3+
apiVersion: cert-manager.io/v1
54
kind: Issuer
65
metadata:
76
name: selfsigned-issuer
87
namespace: system
98
spec:
109
selfSigned: {}
1110
---
12-
apiVersion: cert-manager.io/v1alpha2
11+
apiVersion: cert-manager.io/v1
1312
kind: Certificate
1413
metadata:
15-
name: serving-cert # this name should match the one appeared in kustomizeconfig.yaml
14+
name: serving-cert # this name should match the one appeared in kustomizeconfig.yaml
1615
namespace: system
1716
spec:
1817
# $(SERVICE_NAME) and $(SERVICE_NAMESPACE) will be substituted by kustomize
1918
dnsNames:
20-
- $(SERVICE_NAME).$(SERVICE_NAMESPACE).svc
21-
- $(SERVICE_NAME).$(SERVICE_NAMESPACE).svc.cluster.local
19+
- $(SERVICE_NAME).$(SERVICE_NAMESPACE).svc
20+
- $(SERVICE_NAME).$(SERVICE_NAMESPACE).svc.cluster.local
2221
issuerRef:
2322
kind: Issuer
2423
name: selfsigned-issuer
25-
secretName: $(SERVICE_NAME)-cert # this secret will not be prefixed, since it's not managed by kustomize
24+
secretName: $(SERVICE_NAME)-cert

config/default/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ vars:
2929
objref:
3030
kind: Certificate
3131
group: cert-manager.io
32-
version: v1alpha2
32+
version: v1
3333
name: serving-cert # this name should match the one in certificate.yaml
3434
fieldref:
3535
fieldpath: metadata.namespace
3636
- name: CERTIFICATE_NAME
3737
objref:
3838
kind: Certificate
3939
group: cert-manager.io
40-
version: v1alpha2
40+
version: v1
4141
name: serving-cert # this name should match the one in certificate.yaml
4242
- name: SERVICE_NAMESPACE # namespace of the service
4343
objref:

go.mod

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@ module sigs.k8s.io/cluster-api-provider-digitalocean
33
go 1.17
44

55
require (
6-
github.com/digitalocean/godo v1.78.0
7-
github.com/go-logr/logr v1.2.2
8-
github.com/miekg/dns v1.1.48
6+
github.com/digitalocean/godo v1.81.0
7+
github.com/go-logr/logr v1.2.3
8+
github.com/miekg/dns v1.1.49
99
github.com/onsi/ginkgo v1.16.5
1010
github.com/onsi/gomega v1.19.0
1111
github.com/pkg/errors v0.9.1
1212
github.com/spf13/pflag v1.0.5
13-
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
13+
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5
1414
k8s.io/api v0.23.6
1515
k8s.io/apimachinery v0.23.6
1616
k8s.io/client-go v0.23.6
1717
k8s.io/klog/v2 v2.60.1
1818
k8s.io/utils v0.0.0-20211208161948-7d6a63dca704
19-
sigs.k8s.io/cluster-api v1.1.3
20-
sigs.k8s.io/cluster-api/test v1.1.3
21-
sigs.k8s.io/controller-runtime v0.11.1
19+
sigs.k8s.io/cluster-api v1.1.4
20+
sigs.k8s.io/cluster-api/test v1.1.4
21+
sigs.k8s.io/controller-runtime v0.11.2
2222
)
2323

2424
require (
25-
github.com/BurntSushi/toml v0.3.1 // indirect
25+
github.com/BurntSushi/toml v1.0.0 // indirect
2626
github.com/MakeNowJust/heredoc v1.0.0 // indirect
2727
github.com/Masterminds/goutils v1.1.1 // indirect
2828
github.com/Masterminds/semver/v3 v3.1.1 // indirect
@@ -36,12 +36,11 @@ require (
3636
github.com/beorn7/perks v1.0.1 // indirect
3737
github.com/blang/semver v3.5.1+incompatible // indirect
3838
github.com/cespare/xxhash/v2 v2.1.1 // indirect
39-
github.com/containerd/containerd v1.5.9 // indirect
4039
github.com/coredns/caddy v1.1.0 // indirect
4140
github.com/coredns/corefile-migration v1.0.14 // indirect
4241
github.com/davecgh/go-spew v1.1.1 // indirect
4342
github.com/docker/distribution v2.7.1+incompatible // indirect
44-
github.com/docker/docker v20.10.12+incompatible // indirect
43+
github.com/docker/docker v20.10.16+incompatible // indirect
4544
github.com/docker/go-connections v0.4.0 // indirect
4645
github.com/docker/go-units v0.4.0 // indirect
4746
github.com/drone/envsubst/v2 v2.0.0-20210730161058-179042472c46 // indirect
@@ -58,7 +57,7 @@ require (
5857
github.com/google/cel-go v0.9.0 // indirect
5958
github.com/google/go-cmp v0.5.6 // indirect
6059
github.com/google/go-github/v33 v33.0.0 // indirect
61-
github.com/google/go-querystring v1.0.0 // indirect
60+
github.com/google/go-querystring v1.1.0 // indirect
6261
github.com/google/gofuzz v1.2.0 // indirect
6362
github.com/google/uuid v1.2.0 // indirect
6463
github.com/googleapis/gnostic v0.5.5 // indirect
@@ -89,15 +88,15 @@ require (
8988
github.com/sirupsen/logrus v1.8.1 // indirect
9089
github.com/spf13/afero v1.6.0 // indirect
9190
github.com/spf13/cast v1.4.1 // indirect
92-
github.com/spf13/cobra v1.2.1 // indirect
91+
github.com/spf13/cobra v1.4.0 // indirect
9392
github.com/spf13/jwalterweatherman v1.1.0 // indirect
9493
github.com/spf13/viper v1.9.0 // indirect
9594
github.com/stoewer/go-strcase v1.2.0 // indirect
9695
github.com/subosito/gotenv v1.2.0 // indirect
9796
github.com/valyala/fastjson v1.6.3 // indirect
9897
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
9998
golang.org/x/mod v0.4.2 // indirect
100-
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
99+
golang.org/x/net v0.0.0-20220412020605-290c469a71a5 // indirect
101100
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
102101
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
103102
golang.org/x/text v0.3.7 // indirect
@@ -106,23 +105,22 @@ require (
106105
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
107106
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
108107
google.golang.org/appengine v1.6.7 // indirect
109-
google.golang.org/genproto v0.0.0-20211203200212-54befc351ae9 // indirect
110-
google.golang.org/grpc v1.42.0 // indirect
111-
google.golang.org/protobuf v1.27.1 // indirect
108+
google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0 // indirect
109+
google.golang.org/protobuf v1.28.0 // indirect
112110
gopkg.in/inf.v0 v0.9.1 // indirect
113111
gopkg.in/ini.v1 v1.63.2 // indirect
114112
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
115113
gopkg.in/yaml.v2 v2.4.0 // indirect
116114
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
117-
k8s.io/apiextensions-apiserver v0.23.0 // indirect
118-
k8s.io/apiserver v0.23.0 // indirect
115+
k8s.io/apiextensions-apiserver v0.23.5 // indirect
116+
k8s.io/apiserver v0.23.5 // indirect
119117
k8s.io/cluster-bootstrap v0.23.0 // indirect
120-
k8s.io/component-base v0.23.0 // indirect
118+
k8s.io/component-base v0.23.5 // indirect
121119
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
122120
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
123-
sigs.k8s.io/kind v0.11.1 // indirect
121+
sigs.k8s.io/kind v0.14.0 // indirect
124122
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
125123
sigs.k8s.io/yaml v1.3.0 // indirect
126124
)
127125

128-
replace sigs.k8s.io/cluster-api => sigs.k8s.io/cluster-api v1.1.3
126+
replace sigs.k8s.io/cluster-api => sigs.k8s.io/cluster-api v1.1.4

0 commit comments

Comments
 (0)