Skip to content

Commit 28f326d

Browse files
committed
wip: test
Signed-off-by: Richard Case <[email protected]>
1 parent c259906 commit 28f326d

File tree

3 files changed

+25
-17
lines changed

3 files changed

+25
-17
lines changed

test/e2e/data/infrastructure-aws/withoutclusterclass/e2e_test_templates/cluster-template-remote-management-cluster.yaml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
clusterNetwork:
1111
pods:
1212
cidrBlocks:
13-
- 192.168.0.0/16
13+
- 192.168.0.0/16
1414
controlPlaneRef:
1515
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
1616
kind: KubeadmControlPlane
@@ -48,16 +48,16 @@ spec:
4848
nodeRegistration:
4949
kubeletExtraArgs:
5050
cloud-provider: external
51-
name: '{{ ds.meta_data.local_hostname }}'
51+
name: "{{ ds.meta_data.local_hostname }}"
5252
joinConfiguration:
5353
nodeRegistration:
5454
kubeletExtraArgs:
5555
cloud-provider: external
56-
name: '{{ ds.meta_data.local_hostname }}'
56+
name: "{{ ds.meta_data.local_hostname }}"
5757
preKubeadmCommands:
58-
- mkdir -p /opt/cluster-api
59-
- ctr -n k8s.io images pull "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}"
60-
- ctr -n k8s.io images tag "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}" gcr.io/k8s-staging-cluster-api/capa-manager:e2e
58+
- mkdir -p /opt/cluster-api
59+
- ctr -n k8s.io images pull "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}"
60+
- ctr -n k8s.io images tag "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}" gcr.io/k8s-staging-cluster-api/capa-manager:e2e
6161
machineTemplate:
6262
infrastructureRef:
6363
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
@@ -76,8 +76,6 @@ spec:
7676
iamInstanceProfile: control-plane.cluster-api-provider-aws.sigs.k8s.io
7777
instanceType: ${AWS_CONTROL_PLANE_MACHINE_TYPE}
7878
sshKeyName: ${AWS_SSH_KEY_NAME}
79-
rootVolume:
80-
size: 10
8179
---
8280
apiVersion: cluster.x-k8s.io/v1beta1
8381
kind: MachineDeployment
@@ -124,10 +122,10 @@ spec:
124122
nodeRegistration:
125123
kubeletExtraArgs:
126124
cloud-provider: external
127-
name: '{{ ds.meta_data.local_hostname }}'
125+
name: "{{ ds.meta_data.local_hostname }}"
128126
preKubeadmCommands:
129-
- ctr -n k8s.io images pull "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}"
130-
- ctr -n k8s.io images tag "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}" gcr.io/k8s-staging-cluster-api/capa-manager:e2e
127+
- ctr -n k8s.io images pull "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}"
128+
- ctr -n k8s.io images tag "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}" gcr.io/k8s-staging-cluster-api/capa-manager:e2e
131129
---
132130
apiVersion: v1
133131
data: ${CNI_RESOURCES}
@@ -144,8 +142,8 @@ spec:
144142
matchLabels:
145143
cni: ${CLUSTER_NAME}-crs-0
146144
resources:
147-
- kind: ConfigMap
148-
name: cni-${CLUSTER_NAME}-crs-0
145+
- kind: ConfigMap
146+
name: cni-${CLUSTER_NAME}-crs-0
149147
strategy: ApplyOnce
150148
---
151149
apiVersion: addons.cluster.x-k8s.io/v1beta1
@@ -157,8 +155,8 @@ spec:
157155
matchLabels:
158156
ccm: external
159157
resources:
160-
- kind: ConfigMap
161-
name: cloud-controller-manager-addon
158+
- kind: ConfigMap
159+
name: cloud-controller-manager-addon
162160
strategy: ApplyOnce
163161
---
164162
apiVersion: addons.cluster.x-k8s.io/v1beta1
@@ -170,8 +168,8 @@ spec:
170168
matchLabels:
171169
csi: external
172170
resources:
173-
- kind: ConfigMap
174-
name: aws-ebs-csi-driver-addon
171+
- kind: ConfigMap
172+
name: aws-ebs-csi-driver-addon
175173
strategy: ApplyOnce
176174
---
177175
apiVersion: v1

test/e2e/data/infrastructure-aws/withoutclusterclass/kustomize_sources/remote-management-cluster/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ resources:
22
- ../limit-az
33
patchesStrategicMerge:
44
- patches/image-injection.yaml
5+
- patches/root-volume-size.yaml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
2+
kind: AWSMachineTemplate
3+
metadata:
4+
name: ${CLUSTER_NAME}-control-plane
5+
spec:
6+
template:
7+
spec:
8+
rootVolume:
9+
size: 10

0 commit comments

Comments
 (0)