Skip to content

Commit 3899ce0

Browse files
authored
Have cluster-api-provider-aws use latest downstream build (#353)
1 parent dc0fece commit 3899ce0

File tree

26 files changed

+1735
-268
lines changed

26 files changed

+1735
-268
lines changed

charts/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ OCP_VERSION ?= 4.20
22
SYNC2CHARTS ?= true
33

44
DEFAULT_BRANCH ?= release-4.20
5+
CAPA_BRANCH ?= backplane-2.10
56
DEFAULT_ORGREPO ?= https://github.com/openshift
7+
STOLOSTRON_ORGREPO ?= https://github.com/stolostron
68
# needs overridable branch, as the non-master branch will differ
79
OPENSHIFT_ASSISTED_BRANCH ?= backplane-2.10
810
METAL3_BRANCH ?= release-4.20
@@ -42,9 +44,9 @@ build-cluster-api-chart:
4244
build-cluster-api-provider-aws-chart:
4345
@echo "Building cluster-api-provider-aws chart"
4446
WKDIR="$(WKDIR)" \
45-
ORGREPO="$(DEFAULT_ORGREPO)" \
47+
ORGREPO="$(STOLOSTRON_ORGREPO)" \
4648
PROJECT="cluster-api-provider-aws" \
47-
BRANCH="$(DEFAULT_BRANCH)" \
49+
BRANCH="$(CAPA_BRANCH)" \
4850
../scripts/build.sh
4951
BUILTDIR="$(WKDIR)/cluster-api-provider-aws/config/tmp" \
5052
CHART_VERSION="$(OCP_VERSION)" \

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.17.3
5+
controller-gen.kubebuilder.io/version: v0.19.0
66
service.beta.openshift.io/inject-cabundle: "true"
77
labels:
88
cluster.x-k8s.io/provider: infrastructure-aws

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.17.3
5+
controller-gen.kubebuilder.io/version: v0.19.0
66
service.beta.openshift.io/inject-cabundle: "true"
77
labels:
88
cluster.x-k8s.io/provider: infrastructure-aws

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

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.17.3
5+
controller-gen.kubebuilder.io/version: v0.19.0
66
service.beta.openshift.io/inject-cabundle: "true"
77
labels:
88
cluster.x-k8s.io/provider: infrastructure-aws
@@ -2220,6 +2220,31 @@ spec:
22202220
"None": The instance may not make use of any Capacity Reservations. This is to conserve open reservations for desired workloads
22212221
"CapacityReservationsOnly": The instance will only run if matched or targeted to a Capacity Reservation. Note that this is incompatible with a MarketType of `Spot`
22222222
type: string
2223+
cpuOptions:
2224+
description: |-
2225+
CPUOptions defines CPU-related settings for the instance, including the confidential computing policy.
2226+
When omitted, this means no opinion and the AWS platform is left to choose a reasonable default.
2227+
minProperties: 1
2228+
properties:
2229+
confidentialCompute:
2230+
description: |-
2231+
ConfidentialCompute specifies whether confidential computing should be enabled for the instance,
2232+
and, if so, which confidential computing technology to use.
2233+
Valid values are: Disabled, AMDEncryptedVirtualizationNestedPaging
2234+
When set to Disabled, confidential computing will be disabled for the instance.
2235+
When set to AMDEncryptedVirtualizationNestedPaging, AMD SEV-SNP will be used as the confidential computing technology for the instance.
2236+
In this case, ensure the following conditions are met:
2237+
1) The selected instance type supports AMD SEV-SNP.
2238+
2) The selected AWS region supports AMD SEV-SNP.
2239+
3) The selected AMI supports AMD SEV-SNP.
2240+
More details can be checked at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html
2241+
When omitted, this means no opinion and the AWS platform is left to choose a reasonable default,
2242+
which is subject to change without notice. The current default is Disabled.
2243+
enum:
2244+
- Disabled
2245+
- AMDEncryptedVirtualizationNestedPaging
2246+
type: string
2247+
type: object
22232248
ebsOptimized:
22242249
description: Indicates whether the instance is optimized for Amazon
22252250
EBS I/O.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.17.3
5+
controller-gen.kubebuilder.io/version: v0.19.0
66
labels:
77
cluster.x-k8s.io/provider: infrastructure-aws
88
cluster.x-k8s.io/v1alpha3: v1alpha3

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.17.3
5+
controller-gen.kubebuilder.io/version: v0.19.0
66
service.beta.openshift.io/inject-cabundle: "true"
77
labels:
88
cluster.x-k8s.io/provider: infrastructure-aws

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.17.3
5+
controller-gen.kubebuilder.io/version: v0.19.0
66
labels:
77
cluster.x-k8s.io/provider: infrastructure-aws
88
cluster.x-k8s.io/v1alpha3: v1alpha3

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.17.3
5+
controller-gen.kubebuilder.io/version: v0.19.0
66
labels:
77
cluster.x-k8s.io/provider: infrastructure-aws
88
cluster.x-k8s.io/v1alpha3: v1alpha3
@@ -1005,9 +1005,10 @@ spec:
10051005
type: array
10061006
type: object
10071007
version:
1008-
default: "2.3"
1009-
description: Version defines which version of Ignition will be
1010-
used to generate bootstrap data.
1008+
description: |-
1009+
Version defines which version of Ignition will be used to generate bootstrap data.
1010+
Defaults to `2.3` if storageType is set to `ClusterObjectStore`.
1011+
It will be ignored if storageType is set to `UnencryptedUserData`, as the userdata defines its own version.
10111012
enum:
10121013
- "2.3"
10131014
- "3.0"

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

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.17.3
5+
controller-gen.kubebuilder.io/version: v0.19.0
66
service.beta.openshift.io/inject-cabundle: "true"
77
labels:
88
cluster.x-k8s.io/provider: infrastructure-aws
@@ -697,6 +697,31 @@ spec:
697697
- ssm-parameter-store
698698
type: string
699699
type: object
700+
cpuOptions:
701+
description: |-
702+
CPUOptions defines CPU-related settings for the instance, including the confidential computing policy.
703+
When omitted, this means no opinion and the AWS platform is left to choose a reasonable default.
704+
minProperties: 1
705+
properties:
706+
confidentialCompute:
707+
description: |-
708+
ConfidentialCompute specifies whether confidential computing should be enabled for the instance,
709+
and, if so, which confidential computing technology to use.
710+
Valid values are: Disabled, AMDEncryptedVirtualizationNestedPaging
711+
When set to Disabled, confidential computing will be disabled for the instance.
712+
When set to AMDEncryptedVirtualizationNestedPaging, AMD SEV-SNP will be used as the confidential computing technology for the instance.
713+
In this case, ensure the following conditions are met:
714+
1) The selected instance type supports AMD SEV-SNP.
715+
2) The selected AWS region supports AMD SEV-SNP.
716+
3) The selected AMI supports AMD SEV-SNP.
717+
More details can be checked at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html
718+
When omitted, this means no opinion and the AWS platform is left to choose a reasonable default,
719+
which is subject to change without notice. The current default is Disabled.
720+
enum:
721+
- Disabled
722+
- AMDEncryptedVirtualizationNestedPaging
723+
type: string
724+
type: object
700725
elasticIpPool:
701726
description: ElasticIPPool is the configuration to allocate Public
702727
IPv4 address (Elastic IP/EIP) from user-defined pool.
@@ -827,9 +852,10 @@ spec:
827852
type: array
828853
type: object
829854
version:
830-
default: "2.3"
831-
description: Version defines which version of Ignition will be
832-
used to generate bootstrap data.
855+
description: |-
856+
Version defines which version of Ignition will be used to generate bootstrap data.
857+
Defaults to `2.3` if storageType is set to `ClusterObjectStore`.
858+
It will be ignored if storageType is set to `UnencryptedUserData`, as the userdata defines its own version.
833859
enum:
834860
- "2.3"
835861
- "3.0"

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

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.17.3
5+
controller-gen.kubebuilder.io/version: v0.19.0
66
service.beta.openshift.io/inject-cabundle: "true"
77
labels:
88
cluster.x-k8s.io/provider: infrastructure-aws
@@ -616,6 +616,31 @@ spec:
616616
- ssm-parameter-store
617617
type: string
618618
type: object
619+
cpuOptions:
620+
description: |-
621+
CPUOptions defines CPU-related settings for the instance, including the confidential computing policy.
622+
When omitted, this means no opinion and the AWS platform is left to choose a reasonable default.
623+
minProperties: 1
624+
properties:
625+
confidentialCompute:
626+
description: |-
627+
ConfidentialCompute specifies whether confidential computing should be enabled for the instance,
628+
and, if so, which confidential computing technology to use.
629+
Valid values are: Disabled, AMDEncryptedVirtualizationNestedPaging
630+
When set to Disabled, confidential computing will be disabled for the instance.
631+
When set to AMDEncryptedVirtualizationNestedPaging, AMD SEV-SNP will be used as the confidential computing technology for the instance.
632+
In this case, ensure the following conditions are met:
633+
1) The selected instance type supports AMD SEV-SNP.
634+
2) The selected AWS region supports AMD SEV-SNP.
635+
3) The selected AMI supports AMD SEV-SNP.
636+
More details can be checked at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html
637+
When omitted, this means no opinion and the AWS platform is left to choose a reasonable default,
638+
which is subject to change without notice. The current default is Disabled.
639+
enum:
640+
- Disabled
641+
- AMDEncryptedVirtualizationNestedPaging
642+
type: string
643+
type: object
619644
elasticIpPool:
620645
description: ElasticIPPool is the configuration to allocate
621646
Public IPv4 address (Elastic IP/EIP) from user-defined pool.
@@ -746,9 +771,10 @@ spec:
746771
type: array
747772
type: object
748773
version:
749-
default: "2.3"
750-
description: Version defines which version of Ignition
751-
will be used to generate bootstrap data.
774+
description: |-
775+
Version defines which version of Ignition will be used to generate bootstrap data.
776+
Defaults to `2.3` if storageType is set to `ClusterObjectStore`.
777+
It will be ignored if storageType is set to `UnencryptedUserData`, as the userdata defines its own version.
752778
enum:
753779
- "2.3"
754780
- "3.0"

0 commit comments

Comments
 (0)