Skip to content

Commit 691cf0a

Browse files
authored
Update CAPA release 2.10 (#365)
Signed-off-by: serngawy <[email protected]>
1 parent ffe8734 commit 691cf0a

5 files changed

+136
-20
lines changed

charts/cluster-api-provider-aws/crds/apiextensions.k8s.io_v1_customresourcedefinition_rosanetworks.infrastructure.cluster.x-k8s.io.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,26 @@ spec:
4949
description: ROSANetworkSpec defines the desired state of ROSANetwork
5050
properties:
5151
availabilityZoneCount:
52-
default: 1
5352
description: |-
5453
The number of availability zones to be used for creation of the network infrastructure.
5554
You can specify anything between one and four, depending on the chosen AWS region.
55+
Either AvailabilityZoneCount OR AvailabilityZones must be set.
56+
minimum: 1
5657
type: integer
58+
x-kubernetes-validations:
59+
- message: availabilityZoneCount is immutable
60+
rule: self == oldSelf
5761
availabilityZones:
5862
description: |-
5963
The list of availability zones to be used for creation of the network infrastructure.
6064
You can specify anything between one and four valid availability zones from a given region.
61-
Should you specify both the availabilityZoneCount and availabilityZones, the list of availability zones takes preference.
65+
Either AvailabilityZones OR AvailabilityZoneCount must be set.
6266
items:
6367
type: string
6468
type: array
69+
x-kubernetes-validations:
70+
- message: availabilityZones is immutable
71+
rule: self == oldSelf
6572
cidrBlock:
6673
description: CIDR block to be used for the VPC
6774
format: cidr
@@ -90,10 +97,16 @@ spec:
9097
description: The AWS region in which the components of ROSA network
9198
infrastruture are to be crated
9299
type: string
100+
x-kubernetes-validations:
101+
- message: region is immutable
102+
rule: self == oldSelf
93103
stackName:
94104
description: The name of the cloudformation stack under which the
95105
network infrastructure would be created
96106
type: string
107+
x-kubernetes-validations:
108+
- message: stackName is immutable
109+
rule: self == oldSelf
97110
stackTags:
98111
additionalProperties:
99112
type: string

charts/cluster-api-provider-aws/templates/admissionregistration.k8s.io_v1_mutatingwebhookconfiguration_capa-mutating-webhook-configuration.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,28 @@ webhooks:
226226
resources:
227227
- rosamachinepools
228228
sideEffects: None
229+
- admissionReviewVersions:
230+
- v1
231+
- v1beta1
232+
clientConfig:
233+
service:
234+
name: capa-webhook-service
235+
namespace: capa-system
236+
path: /mutate-infrastructure-cluster-x-k8s-io-v1beta2-rosanetwork
237+
failurePolicy: Fail
238+
matchPolicy: Equivalent
239+
name: default.rosanetwork.infrastructure.cluster.x-k8s.io
240+
rules:
241+
- apiGroups:
242+
- infrastructure.cluster.x-k8s.io
243+
apiVersions:
244+
- v1beta2
245+
operations:
246+
- CREATE
247+
- UPDATE
248+
resources:
249+
- rosanetworks
250+
sideEffects: None
229251
- admissionReviewVersions:
230252
- v1
231253
- v1beta1

charts/cluster-api-provider-aws/templates/admissionregistration.k8s.io_v1_validatingwebhookconfiguration_capa-validating-webhook-configuration.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,28 @@ webhooks:
249249
resources:
250250
- rosamachinepools
251251
sideEffects: None
252+
- admissionReviewVersions:
253+
- v1
254+
- v1beta1
255+
clientConfig:
256+
service:
257+
name: capa-webhook-service
258+
namespace: capa-system
259+
path: /validate-infrastructure-cluster-x-k8s-io-v1beta2-rosanetwork
260+
failurePolicy: Fail
261+
matchPolicy: Equivalent
262+
name: validation.rosanetwork.infrastructure.cluster.x-k8s.io
263+
rules:
264+
- apiGroups:
265+
- infrastructure.cluster.x-k8s.io
266+
apiVersions:
267+
- v1beta2
268+
operations:
269+
- CREATE
270+
- UPDATE
271+
resources:
272+
- rosanetworks
273+
sideEffects: None
252274
- admissionReviewVersions:
253275
- v1
254276
- v1beta1

charts/cluster-api-provider-aws/templates/rbac.authorization.k8s.io_v1_clusterrole_capa-manager-role.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ rules:
215215
- infrastructure.cluster.x-k8s.io
216216
resources:
217217
- rosamachinepools/finalizers
218+
- rosanetworks/finalizers
218219
- rosaroleconfigs/finalizers
219220
verbs:
220221
- update

src/cluster-api-provider-aws.yaml

Lines changed: 76 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ apiVersion: apiextensions.k8s.io/v1
99
kind: CustomResourceDefinition
1010
metadata:
1111
annotations:
12-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
12+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
1313
controller-gen.kubebuilder.io/version: v0.17.3
1414
labels:
1515
cluster.x-k8s.io/provider: infrastructure-aws
@@ -239,7 +239,7 @@ apiVersion: apiextensions.k8s.io/v1
239239
kind: CustomResourceDefinition
240240
metadata:
241241
annotations:
242-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
242+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
243243
controller-gen.kubebuilder.io/version: v0.17.3
244244
labels:
245245
cluster.x-k8s.io/provider: infrastructure-aws
@@ -587,7 +587,7 @@ apiVersion: apiextensions.k8s.io/v1
587587
kind: CustomResourceDefinition
588588
metadata:
589589
annotations:
590-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
590+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
591591
controller-gen.kubebuilder.io/version: v0.17.3
592592
labels:
593593
cluster.x-k8s.io/provider: infrastructure-aws
@@ -3972,7 +3972,7 @@ apiVersion: apiextensions.k8s.io/v1
39723972
kind: CustomResourceDefinition
39733973
metadata:
39743974
annotations:
3975-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
3975+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
39763976
controller-gen.kubebuilder.io/version: v0.17.3
39773977
labels:
39783978
cluster.x-k8s.io/provider: infrastructure-aws
@@ -7577,7 +7577,7 @@ apiVersion: apiextensions.k8s.io/v1
75777577
kind: CustomResourceDefinition
75787578
metadata:
75797579
annotations:
7580-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
7580+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
75817581
controller-gen.kubebuilder.io/version: v0.17.3
75827582
labels:
75837583
cluster.x-k8s.io/provider: infrastructure-aws
@@ -8894,7 +8894,7 @@ apiVersion: apiextensions.k8s.io/v1
88948894
kind: CustomResourceDefinition
88958895
metadata:
88968896
annotations:
8897-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
8897+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
88988898
controller-gen.kubebuilder.io/version: v0.17.3
88998899
labels:
89008900
cluster.x-k8s.io/provider: infrastructure-aws
@@ -10026,7 +10026,7 @@ apiVersion: apiextensions.k8s.io/v1
1002610026
kind: CustomResourceDefinition
1002710027
metadata:
1002810028
annotations:
10029-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
10029+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
1003010030
controller-gen.kubebuilder.io/version: v0.17.3
1003110031
labels:
1003210032
cluster.x-k8s.io/provider: infrastructure-aws
@@ -10193,7 +10193,7 @@ apiVersion: apiextensions.k8s.io/v1
1019310193
kind: CustomResourceDefinition
1019410194
metadata:
1019510195
annotations:
10196-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
10196+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
1019710197
controller-gen.kubebuilder.io/version: v0.17.3
1019810198
labels:
1019910199
cluster.x-k8s.io/provider: infrastructure-aws
@@ -10282,7 +10282,7 @@ apiVersion: apiextensions.k8s.io/v1
1028210282
kind: CustomResourceDefinition
1028310283
metadata:
1028410284
annotations:
10285-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
10285+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
1028610286
controller-gen.kubebuilder.io/version: v0.17.3
1028710287
labels:
1028810288
cluster.x-k8s.io/provider: infrastructure-aws
@@ -14711,7 +14711,7 @@ apiVersion: apiextensions.k8s.io/v1
1471114711
kind: CustomResourceDefinition
1471214712
metadata:
1471314713
annotations:
14714-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
14714+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
1471514715
controller-gen.kubebuilder.io/version: v0.17.3
1471614716
labels:
1471714717
cluster.x-k8s.io/provider: infrastructure-aws
@@ -17143,7 +17143,7 @@ apiVersion: apiextensions.k8s.io/v1
1714317143
kind: CustomResourceDefinition
1714417144
metadata:
1714517145
annotations:
17146-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
17146+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
1714717147
controller-gen.kubebuilder.io/version: v0.17.3
1714817148
labels:
1714917149
cluster.x-k8s.io/provider: infrastructure-aws
@@ -17751,7 +17751,7 @@ apiVersion: apiextensions.k8s.io/v1
1775117751
kind: CustomResourceDefinition
1775217752
metadata:
1775317753
annotations:
17754-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
17754+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
1775517755
controller-gen.kubebuilder.io/version: v0.17.3
1775617756
labels:
1775717757
cluster.x-k8s.io/provider: infrastructure-aws
@@ -19704,7 +19704,7 @@ apiVersion: apiextensions.k8s.io/v1
1970419704
kind: CustomResourceDefinition
1970519705
metadata:
1970619706
annotations:
19707-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
19707+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
1970819708
controller-gen.kubebuilder.io/version: v0.17.3
1970919709
labels:
1971019710
cluster.x-k8s.io/provider: infrastructure-aws
@@ -19751,19 +19751,26 @@ spec:
1975119751
description: ROSANetworkSpec defines the desired state of ROSANetwork
1975219752
properties:
1975319753
availabilityZoneCount:
19754-
default: 1
1975519754
description: |-
1975619755
The number of availability zones to be used for creation of the network infrastructure.
1975719756
You can specify anything between one and four, depending on the chosen AWS region.
19757+
Either AvailabilityZoneCount OR AvailabilityZones must be set.
19758+
minimum: 1
1975819759
type: integer
19760+
x-kubernetes-validations:
19761+
- message: availabilityZoneCount is immutable
19762+
rule: self == oldSelf
1975919763
availabilityZones:
1976019764
description: |-
1976119765
The list of availability zones to be used for creation of the network infrastructure.
1976219766
You can specify anything between one and four valid availability zones from a given region.
19763-
Should you specify both the availabilityZoneCount and availabilityZones, the list of availability zones takes preference.
19767+
Either AvailabilityZones OR AvailabilityZoneCount must be set.
1976419768
items:
1976519769
type: string
1976619770
type: array
19771+
x-kubernetes-validations:
19772+
- message: availabilityZones is immutable
19773+
rule: self == oldSelf
1976719774
cidrBlock:
1976819775
description: CIDR block to be used for the VPC
1976919776
format: cidr
@@ -19792,10 +19799,16 @@ spec:
1979219799
description: The AWS region in which the components of ROSA network
1979319800
infrastruture are to be crated
1979419801
type: string
19802+
x-kubernetes-validations:
19803+
- message: region is immutable
19804+
rule: self == oldSelf
1979519805
stackName:
1979619806
description: The name of the cloudformation stack under which the
1979719807
network infrastructure would be created
1979819808
type: string
19809+
x-kubernetes-validations:
19810+
- message: stackName is immutable
19811+
rule: self == oldSelf
1979919812
stackTags:
1980019813
additionalProperties:
1980119814
type: string
@@ -19928,7 +19941,7 @@ apiVersion: apiextensions.k8s.io/v1
1992819941
kind: CustomResourceDefinition
1992919942
metadata:
1993019943
annotations:
19931-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
19944+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
1993219945
controller-gen.kubebuilder.io/version: v0.17.3
1993319946
labels:
1993419947
cluster.x-k8s.io/provider: infrastructure-aws
@@ -20663,6 +20676,7 @@ rules:
2066320676
- infrastructure.cluster.x-k8s.io
2066420677
resources:
2066520678
- rosamachinepools/finalizers
20679+
- rosanetworks/finalizers
2066620680
- rosaroleconfigs/finalizers
2066720681
verbs:
2066820682
- update
@@ -20883,7 +20897,7 @@ apiVersion: admissionregistration.k8s.io/v1
2088320897
kind: MutatingWebhookConfiguration
2088420898
metadata:
2088520899
annotations:
20886-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
20900+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
2088720901
labels:
2088820902
cluster.x-k8s.io/provider: infrastructure-aws
2088920903
name: capa-mutating-webhook-configuration
@@ -21107,6 +21121,28 @@ webhooks:
2110721121
resources:
2110821122
- rosamachinepools
2110921123
sideEffects: None
21124+
- admissionReviewVersions:
21125+
- v1
21126+
- v1beta1
21127+
clientConfig:
21128+
service:
21129+
name: capa-webhook-service
21130+
namespace: capa-system
21131+
path: /mutate-infrastructure-cluster-x-k8s-io-v1beta2-rosanetwork
21132+
failurePolicy: Fail
21133+
matchPolicy: Equivalent
21134+
name: default.rosanetwork.infrastructure.cluster.x-k8s.io
21135+
rules:
21136+
- apiGroups:
21137+
- infrastructure.cluster.x-k8s.io
21138+
apiVersions:
21139+
- v1beta2
21140+
operations:
21141+
- CREATE
21142+
- UPDATE
21143+
resources:
21144+
- rosanetworks
21145+
sideEffects: None
2111021146
- admissionReviewVersions:
2111121147
- v1
2111221148
- v1beta1
@@ -21244,7 +21280,7 @@ apiVersion: admissionregistration.k8s.io/v1
2124421280
kind: ValidatingWebhookConfiguration
2124521281
metadata:
2124621282
annotations:
21247-
cert-manager.io/inject-ca-from: capa-system/capa-serving-cert
21283+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
2124821284
labels:
2124921285
cluster.x-k8s.io/provider: infrastructure-aws
2125021286
name: capa-validating-webhook-configuration
@@ -21491,6 +21527,28 @@ webhooks:
2149121527
resources:
2149221528
- rosamachinepools
2149321529
sideEffects: None
21530+
- admissionReviewVersions:
21531+
- v1
21532+
- v1beta1
21533+
clientConfig:
21534+
service:
21535+
name: capa-webhook-service
21536+
namespace: capa-system
21537+
path: /validate-infrastructure-cluster-x-k8s-io-v1beta2-rosanetwork
21538+
failurePolicy: Fail
21539+
matchPolicy: Equivalent
21540+
name: validation.rosanetwork.infrastructure.cluster.x-k8s.io
21541+
rules:
21542+
- apiGroups:
21543+
- infrastructure.cluster.x-k8s.io
21544+
apiVersions:
21545+
- v1beta2
21546+
operations:
21547+
- CREATE
21548+
- UPDATE
21549+
resources:
21550+
- rosanetworks
21551+
sideEffects: None
2149421552
- admissionReviewVersions:
2149521553
- v1
2149621554
- v1beta1

0 commit comments

Comments
 (0)