Skip to content

Commit 6a6ba6d

Browse files
Update - k8s and golang (#495)
* update boilerplate scripts * update go to 1.17 and k8s bits to 1.23.0 Signed-off-by: Prajyot-Parab <[email protected]> * update golang version Co-authored-by: Prajyot-Parab <[email protected]>
1 parent 4c5559c commit 6a6ba6d

20 files changed

+446
-75
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616

1717
# Build the manager binary
18-
FROM golang:1.16.12 as builder
18+
FROM golang:1.17.5 as builder
1919

2020
WORKDIR /workspace
2121
# Copy the Go Modules manifests

api/v1alpha3/zz_generated.deepcopy.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha4/zz_generated.conversion.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha4/zz_generated.deepcopy.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1beta1/zz_generated.deepcopy.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloud/scope/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func NewClusterScope(params ClusterScopeParams, authenticator core.Authenticator
6363
return nil, errors.New("failed to generate new scope from nil IBMVPCCluster")
6464
}
6565

66-
if params.Logger == nil {
66+
if params.Logger == (logr.Logger{}) {
6767
params.Logger = klogr.New()
6868
}
6969

cloud/scope/machine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func NewMachineScope(params MachineScopeParams, authenticator core.Authenticator
7070
return nil, errors.New("failed to generate new scope from nil IBMVPCCluster")
7171
}
7272

73-
if params.Logger == nil {
73+
if params.Logger == (logr.Logger{}) {
7474
params.Logger = klogr.New()
7575
}
7676

cloud/scope/powervs_cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func NewPowerVSClusterScope(params PowerVSClusterScopeParams) (*PowerVSClusterSc
6262
return nil, errors.New("failed to generate new scope from nil IBMVPCCluster")
6363
}
6464

65-
if params.Logger == nil {
65+
if params.Logger == (logr.Logger{}) {
6666
params.Logger = klogr.New()
6767
}
6868

cloud/scope/powervs_machine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func NewPowerVSMachineScope(params PowerVSMachineScopeParams) (*PowerVSMachineSc
8080
return nil, errors.New("aws machine is required when creating a MachineScope")
8181
}
8282

83-
if params.Logger == nil {
83+
if params.Logger == (logr.Logger{}) {
8484
params.Logger = klogr.New()
8585
}
8686

go.mod

Lines changed: 116 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,136 @@
11
module sigs.k8s.io/cluster-api-provider-ibmcloud
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/IBM-Cloud/bluemix-go v0.0.0-20200921095234-26d1d0148c62
77
github.com/IBM-Cloud/power-go-client v1.0.85
88
github.com/IBM/go-sdk-core/v5 v5.9.1
99
github.com/IBM/vpc-go-sdk v0.14.0
10-
github.com/go-logr/logr v0.4.0
10+
github.com/go-logr/logr v1.2.0
1111
github.com/golang-jwt/jwt v3.2.2+incompatible
1212
github.com/onsi/ginkgo v1.16.5
1313
github.com/onsi/gomega v1.17.0
1414
github.com/pkg/errors v0.9.1
1515
github.com/ppc64le-cloud/powervs-utils v0.0.0-20210106101518-5d3f965b0344
1616
github.com/spf13/pflag v1.0.5
17-
k8s.io/api v0.22.2
18-
k8s.io/apimachinery v0.22.2
19-
k8s.io/client-go v0.22.2
20-
k8s.io/klog/v2 v2.9.0
21-
k8s.io/kube-openapi v0.0.0-20211110012726-3cc51fd1e909 // indirect
17+
k8s.io/api v0.23.0
18+
k8s.io/apimachinery v0.23.0
19+
k8s.io/client-go v0.23.0
20+
k8s.io/klog/v2 v2.30.0
2221
k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b
2322
sigs.k8s.io/cluster-api v1.0.2
2423
sigs.k8s.io/cluster-api/test v1.0.2
25-
sigs.k8s.io/controller-runtime v0.10.3
24+
sigs.k8s.io/controller-runtime v0.11.0
25+
)
26+
27+
require (
28+
cloud.google.com/go v0.93.3 // indirect
29+
github.com/BurntSushi/toml v0.3.1 // indirect
30+
github.com/MakeNowJust/heredoc v1.0.0 // indirect
31+
github.com/Microsoft/go-winio v0.5.0 // indirect
32+
github.com/PuerkitoBio/purell v1.1.1 // indirect
33+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
34+
github.com/alessio/shellescape v1.4.1 // indirect
35+
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
36+
github.com/beorn7/perks v1.0.1 // indirect
37+
github.com/blang/semver v3.5.1+incompatible // indirect
38+
github.com/cespare/xxhash/v2 v2.1.1 // indirect
39+
github.com/containerd/containerd v1.5.2 // indirect
40+
github.com/coredns/caddy v1.1.0 // indirect
41+
github.com/coredns/corefile-migration v1.0.13 // indirect
42+
github.com/davecgh/go-spew v1.1.1 // indirect
43+
github.com/docker/distribution v2.7.1+incompatible // indirect
44+
github.com/docker/docker v20.10.7+incompatible // indirect
45+
github.com/docker/go-connections v0.4.0 // indirect
46+
github.com/docker/go-units v0.4.0 // indirect
47+
github.com/drone/envsubst/v2 v2.0.0-20210615175204-7bf45dbf5372 // indirect
48+
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
49+
github.com/evanphx/json-patch/v5 v5.2.0 // indirect
50+
github.com/fsnotify/fsnotify v1.5.1 // indirect
51+
github.com/go-openapi/analysis v0.20.1 // indirect
52+
github.com/go-openapi/errors v0.20.1 // indirect
53+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
54+
github.com/go-openapi/jsonreference v0.19.6 // indirect
55+
github.com/go-openapi/loads v0.21.0 // indirect
56+
github.com/go-openapi/runtime v0.21.0 // indirect
57+
github.com/go-openapi/spec v0.20.4 // indirect
58+
github.com/go-openapi/strfmt v0.21.1 // indirect
59+
github.com/go-openapi/swag v0.19.15 // indirect
60+
github.com/go-openapi/validate v0.20.3 // indirect
61+
github.com/go-playground/locales v0.13.0 // indirect
62+
github.com/go-playground/universal-translator v0.17.0 // indirect
63+
github.com/go-stack/stack v1.8.0 // indirect
64+
github.com/gobuffalo/flect v0.2.3 // indirect
65+
github.com/gogo/protobuf v1.3.2 // 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/go-cmp v0.5.6 // indirect
69+
github.com/google/go-github/v33 v33.0.0 // indirect
70+
github.com/google/go-querystring v1.0.0 // indirect
71+
github.com/google/gofuzz v1.2.0 // indirect
72+
github.com/google/uuid v1.2.0 // indirect
73+
github.com/googleapis/gnostic v0.5.5 // indirect
74+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
75+
github.com/hashicorp/go-retryablehttp v0.7.0 // indirect
76+
github.com/hashicorp/hcl v1.0.0 // indirect
77+
github.com/imdario/mergo v0.3.12 // indirect
78+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
79+
github.com/josharian/intern v1.0.0 // indirect
80+
github.com/json-iterator/go v1.1.12 // indirect
81+
github.com/leodido/go-urn v1.2.0 // indirect
82+
github.com/magiconair/properties v1.8.5 // indirect
83+
github.com/mailru/easyjson v0.7.6 // indirect
84+
github.com/mattn/go-isatty v0.0.14 // indirect
85+
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
86+
github.com/mitchellh/mapstructure v1.4.2 // indirect
87+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
88+
github.com/modern-go/reflect2 v1.0.2 // indirect
89+
github.com/nxadm/tail v1.4.8 // indirect
90+
github.com/oklog/ulid v1.3.1 // indirect
91+
github.com/opencontainers/go-digest v1.0.0 // indirect
92+
github.com/opencontainers/image-spec v1.0.1 // indirect
93+
github.com/opentracing/opentracing-go v1.2.0 // indirect
94+
github.com/pelletier/go-toml v1.9.4 // indirect
95+
github.com/prometheus/client_golang v1.11.0 // indirect
96+
github.com/prometheus/client_model v0.2.0 // indirect
97+
github.com/prometheus/common v0.28.0 // indirect
98+
github.com/prometheus/procfs v0.6.0 // indirect
99+
github.com/sirupsen/logrus v1.8.1 // indirect
100+
github.com/spf13/afero v1.6.0 // indirect
101+
github.com/spf13/cast v1.4.1 // indirect
102+
github.com/spf13/cobra v1.2.1 // indirect
103+
github.com/spf13/jwalterweatherman v1.1.0 // indirect
104+
github.com/spf13/viper v1.9.0 // indirect
105+
github.com/subosito/gotenv v1.2.0 // indirect
106+
go.mongodb.org/mongo-driver v1.7.5 // indirect
107+
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
108+
golang.org/x/net v0.0.0-20210825183410-e898025ed96a // indirect
109+
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
110+
golang.org/x/sys v0.0.0-20211029165221-6e7872819dc8 // indirect
111+
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
112+
golang.org/x/text v0.3.7 // indirect
113+
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
114+
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
115+
google.golang.org/appengine v1.6.7 // indirect
116+
google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2 // indirect
117+
google.golang.org/grpc v1.40.0 // indirect
118+
google.golang.org/protobuf v1.27.1 // indirect
119+
gopkg.in/go-playground/validator.v9 v9.31.0 // indirect
120+
gopkg.in/inf.v0 v0.9.1 // indirect
121+
gopkg.in/ini.v1 v1.63.2 // indirect
122+
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
123+
gopkg.in/yaml.v2 v2.4.0 // indirect
124+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
125+
k8s.io/apiextensions-apiserver v0.23.0 // indirect
126+
k8s.io/apiserver v0.23.0 // indirect
127+
k8s.io/cluster-bootstrap v0.23.0 // indirect
128+
k8s.io/component-base v0.23.0 // indirect
129+
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
130+
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
131+
sigs.k8s.io/kind v0.11.1 // indirect
132+
sigs.k8s.io/structured-merge-diff/v4 v4.2.0 // indirect
133+
sigs.k8s.io/yaml v1.3.0 // indirect
26134
)
27135

28136
replace sigs.k8s.io/cluster-api => sigs.k8s.io/cluster-api v1.0.2

0 commit comments

Comments
 (0)