Skip to content

Commit d73c233

Browse files
authored
Merge pull request #255 from SovereignCloudStack/tg/update-to-capi-1.8
2 parents 4118b3e + 21ab08d commit d73c233

File tree

656 files changed

+45869
-15043
lines changed

Some content is hidden

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

656 files changed

+45869
-15043
lines changed

.golangci.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ linters-settings:
9898
- performance
9999
- experimental
100100
- opinionated
101+
settings:
102+
hugeParam:
103+
sizeThreshold: 120
101104
revive:
102105
enable-all-rules: true
103106
rules:

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ CTLPTL_VERSION := 0.8.25
9191
# need in CI for releasing
9292
CONTROLLER_GEN := $(abspath $(TOOLS_BIN_DIR)/controller-gen)
9393
$(CONTROLLER_GEN): # Build controller-gen from tools folder.
94-
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0
94+
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.16.2
9595

9696
# need this in CI for releasing
9797
KUSTOMIZE := $(abspath $(TOOLS_BIN_DIR)/kustomize)

config/crd/bases/clusterstack.x-k8s.io_clusteraddons.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.2
77
name: clusteraddons.clusterstack.x-k8s.io
88
spec:
99
group: clusterstack.x-k8s.io
@@ -80,7 +80,6 @@ spec:
8080
the event) or if no container name is specified "spec.containers[2]" (container with
8181
index 2 in this pod). This syntax is chosen only to have some well-defined way of
8282
referencing a part of an object.
83-
TODO: this design is not final and this field is subject to change in the future.
8483
type: string
8584
kind:
8685
description: |-

config/crd/bases/clusterstack.x-k8s.io_clusterstackreleases.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.2
77
name: clusterstackreleases.clusterstack.x-k8s.io
88
spec:
99
group: clusterstack.x-k8s.io
@@ -76,7 +76,6 @@ spec:
7676
the event) or if no container name is specified "spec.containers[2]" (container with
7777
index 2 in this pod). This syntax is chosen only to have some well-defined way of
7878
referencing a part of an object.
79-
TODO: this design is not final and this field is subject to change in the future.
8079
type: string
8180
kind:
8281
description: |-

config/crd/bases/clusterstack.x-k8s.io_clusterstacks.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.2
77
name: clusterstacks.clusterstack.x-k8s.io
88
spec:
99
group: clusterstack.x-k8s.io
@@ -120,7 +120,6 @@ spec:
120120
the event) or if no container name is specified "spec.containers[2]" (container with
121121
index 2 in this pod). This syntax is chosen only to have some well-defined way of
122122
referencing a part of an object.
123-
TODO: this design is not final and this field is subject to change in the future.
124123
type: string
125124
kind:
126125
description: |-

config/rbac/role.yaml

+4-34
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ rules:
2929
- cluster.x-k8s.io
3030
- controlplane.cluster.x-k8s.io
3131
- infrastructure.cluster.x-k8s.io
32+
- infrastructure.clusterstack.x-k8s.io
3233
resources:
3334
- '*'
3435
verbs:
@@ -61,12 +62,15 @@ rules:
6162
- clusterstack.x-k8s.io
6263
resources:
6364
- clusteraddons/finalizers
65+
- clusterstackreleases/finalizers
6466
verbs:
6567
- update
6668
- apiGroups:
6769
- clusterstack.x-k8s.io
6870
resources:
6971
- clusteraddons/status
72+
- clusterstackreleases/status
73+
- clusterstacks/status
7074
verbs:
7175
- get
7276
- patch
@@ -82,20 +86,6 @@ rules:
8286
- list
8387
- patch
8488
- watch
85-
- apiGroups:
86-
- clusterstack.x-k8s.io
87-
resources:
88-
- clusterstackreleases/finalizers
89-
verbs:
90-
- update
91-
- apiGroups:
92-
- clusterstack.x-k8s.io
93-
resources:
94-
- clusterstackreleases/status
95-
verbs:
96-
- get
97-
- patch
98-
- update
9989
- apiGroups:
10090
- clusterstack.x-k8s.io
10191
resources:
@@ -113,23 +103,3 @@ rules:
113103
verbs:
114104
- delete
115105
- update
116-
- apiGroups:
117-
- clusterstack.x-k8s.io
118-
resources:
119-
- clusterstacks/status
120-
verbs:
121-
- get
122-
- patch
123-
- update
124-
- apiGroups:
125-
- infrastructure.clusterstack.x-k8s.io
126-
resources:
127-
- '*'
128-
verbs:
129-
- create
130-
- delete
131-
- get
132-
- list
133-
- patch
134-
- update
135-
- watch

go.mod

+43-42
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
module github.com/SovereignCloudStack/cluster-stack-operator
22

3-
go 1.22
3+
go 1.22.0
4+
5+
toolchain go1.23.0
46

57
require (
68
github.com/go-logr/logr v1.4.2
79
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
810
github.com/google/cel-go v0.20.1
911
github.com/google/go-github/v52 v52.0.0
10-
github.com/onsi/ginkgo/v2 v2.19.0
11-
github.com/onsi/gomega v1.33.1
12+
github.com/onsi/ginkgo/v2 v2.19.1
13+
github.com/onsi/gomega v1.34.0
1214
github.com/stretchr/testify v1.9.0
1315
golang.org/x/mod v0.18.0
1416
golang.org/x/oauth2 v0.21.0
15-
k8s.io/api v0.29.3
16-
k8s.io/apimachinery v0.29.3
17-
k8s.io/cli-runtime v0.29.3
18-
k8s.io/client-go v0.29.3
19-
k8s.io/klog/v2 v2.110.1
17+
k8s.io/api v0.30.3
18+
k8s.io/apimachinery v0.30.3
19+
k8s.io/cli-runtime v0.30.3
20+
k8s.io/client-go v0.30.3
21+
k8s.io/klog/v2 v2.130.1
2022
oras.land/oras-go/v2 v2.5.0
21-
sigs.k8s.io/cluster-api v1.7.2
22-
sigs.k8s.io/cluster-api/test v1.7.2
23-
sigs.k8s.io/controller-runtime v0.17.5
23+
sigs.k8s.io/cluster-api v1.8.1
24+
sigs.k8s.io/cluster-api/test v1.8.1
25+
sigs.k8s.io/controller-runtime v0.18.5
2426
sigs.k8s.io/kind v0.23.0
2527
)
2628

@@ -31,42 +33,42 @@ require (
3133
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
3234
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
3335
github.com/google/gnostic-models v0.6.8 // indirect
34-
github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6 // indirect
36+
github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af // indirect
3537
github.com/google/safetext v0.0.0-20220905092116-b49f7bc46da2 // indirect
3638
github.com/inconshreveable/mousetrap v1.1.0 // indirect
3739
github.com/mattn/go-isatty v0.0.20 // indirect
38-
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
3940
github.com/opencontainers/go-digest v1.0.0 // indirect
4041
github.com/opencontainers/image-spec v1.1.0 // indirect
4142
github.com/pelletier/go-toml v1.9.5 // indirect
4243
github.com/pkg/errors v0.9.1 // indirect
43-
github.com/pmezard/go-difflib v1.0.0 // indirect
44-
github.com/spf13/cobra v1.8.0 // indirect
44+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
45+
github.com/spf13/cobra v1.8.1 // indirect
4546
github.com/stoewer/go-strcase v1.2.0 // indirect
4647
github.com/stretchr/objx v0.5.2 // indirect
4748
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
4849
golang.org/x/sync v0.7.0 // indirect
49-
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect
50-
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect
51-
k8s.io/cluster-bootstrap v0.29.3 // indirect
50+
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect
51+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
52+
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
53+
k8s.io/cluster-bootstrap v0.30.3 // indirect
54+
sigs.k8s.io/yaml v1.4.0 // indirect
5255
)
5356

5457
require (
5558
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 // indirect
5659
github.com/beorn7/perks v1.0.1 // indirect
5760
github.com/blang/semver/v4 v4.0.0 // indirect
58-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
61+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
5962
github.com/cloudflare/circl v1.3.7 // indirect
6063
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
61-
github.com/emicklei/go-restful/v3 v3.12.0 // indirect
62-
github.com/evanphx/json-patch v5.7.0+incompatible // indirect
64+
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
6365
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
6466
github.com/fsnotify/fsnotify v1.7.0 // indirect
6567
github.com/go-errors/errors v1.4.2 // indirect
6668
github.com/go-logr/zapr v1.3.0
6769
github.com/go-openapi/jsonpointer v0.19.6 // indirect
6870
github.com/go-openapi/jsonreference v0.20.2 // indirect
69-
github.com/go-openapi/swag v0.22.3 // indirect
71+
github.com/go-openapi/swag v0.22.4 // indirect
7072
github.com/gobuffalo/flect v1.0.2
7173
github.com/gogo/protobuf v1.3.2 // indirect
7274
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
@@ -75,7 +77,7 @@ require (
7577
github.com/google/go-querystring v1.1.0 // indirect
7678
github.com/google/gofuzz v1.2.0 // indirect
7779
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
78-
github.com/google/uuid v1.4.0 // indirect
80+
github.com/google/uuid v1.6.0 // indirect
7981
github.com/imdario/mergo v0.3.13 // indirect
8082
github.com/josharian/intern v1.0.0 // indirect
8183
github.com/json-iterator/go v1.1.12 // indirect
@@ -84,35 +86,34 @@ require (
8486
github.com/modern-go/reflect2 v1.0.2 // indirect
8587
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
8688
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
87-
github.com/prometheus/client_golang v1.18.0 // indirect
88-
github.com/prometheus/client_model v0.5.0 // indirect
89-
github.com/prometheus/common v0.45.0 // indirect
90-
github.com/prometheus/procfs v0.12.0 // indirect
89+
github.com/prometheus/client_golang v1.19.1 // indirect
90+
github.com/prometheus/client_model v0.6.1 // indirect
91+
github.com/prometheus/common v0.55.0 // indirect
92+
github.com/prometheus/procfs v0.15.1 // indirect
9193
github.com/spf13/pflag v1.0.5 // indirect
9294
github.com/xlab/treeprint v1.2.0 // indirect
9395
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
9496
go.uber.org/multierr v1.11.0 // indirect
9597
go.uber.org/zap v1.27.0
96-
golang.org/x/crypto v0.23.0 // indirect
97-
golang.org/x/net v0.25.0 // indirect
98-
golang.org/x/sys v0.20.0 // indirect
99-
golang.org/x/term v0.20.0 // indirect
100-
golang.org/x/text v0.15.0 // indirect
98+
golang.org/x/crypto v0.25.0 // indirect
99+
golang.org/x/net v0.27.0 // indirect
100+
golang.org/x/sys v0.22.0 // indirect
101+
golang.org/x/term v0.22.0 // indirect
102+
golang.org/x/text v0.16.0 // indirect
101103
golang.org/x/time v0.5.0 // indirect
102-
golang.org/x/tools v0.21.0 // indirect
104+
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
103105
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
104-
google.golang.org/protobuf v1.33.0 // indirect
106+
google.golang.org/protobuf v1.34.2 // indirect
105107
gopkg.in/inf.v0 v0.9.1 // indirect
106108
gopkg.in/yaml.v2 v2.4.0 // indirect
107109
gopkg.in/yaml.v3 v3.0.1
108-
k8s.io/apiextensions-apiserver v0.29.3
109-
k8s.io/apiserver v0.29.3 // indirect
110-
k8s.io/component-base v0.29.3 // indirect
111-
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
112-
k8s.io/utils v0.0.0-20231127182322-b307cd553661 // indirect
110+
k8s.io/apiextensions-apiserver v0.30.3
111+
k8s.io/apiserver v0.30.3 // indirect
112+
k8s.io/component-base v0.30.3 // indirect
113+
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
114+
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect
113115
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
114-
sigs.k8s.io/kustomize/api v0.13.5-0.20230601165947-6ce0bf390ce3 // indirect
115-
sigs.k8s.io/kustomize/kyaml v0.14.3-0.20230601165947-6ce0bf390ce3 // indirect
116+
sigs.k8s.io/kustomize/api v0.17.2 // indirect
117+
sigs.k8s.io/kustomize/kyaml v0.17.1 // indirect
116118
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
117-
sigs.k8s.io/yaml v1.4.0 // indirect
118119
)

0 commit comments

Comments
 (0)