Skip to content

Commit cc7ae37

Browse files
authored
Merge pull request #5288 from richardcase/e2e_fix_selfhosted
🐛 fix: self hosted e2e test
2 parents 07a93a5 + 28f326d commit cc7ae37

File tree

4 files changed

+26
-16
lines changed

4 files changed

+26
-16
lines changed

test/e2e/data/e2e_conf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ variables:
215215
intervals:
216216
default/wait-cluster: ["35m", "10s"]
217217
default/wait-control-plane: ["35m", "10s"]
218-
default/wait-worker-nodes: ["20m", "10s"]
218+
default/wait-worker-nodes: ["30m", "10s"]
219219
conformance/wait-control-plane: ["35m", "10s"]
220220
conformance/wait-worker-nodes: ["35m", "10s"]
221221
default/wait-controllers: ["5m", "10s"]

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

Lines changed: 15 additions & 15 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
@@ -122,10 +122,10 @@ spec:
122122
nodeRegistration:
123123
kubeletExtraArgs:
124124
cloud-provider: external
125-
name: '{{ ds.meta_data.local_hostname }}'
125+
name: "{{ ds.meta_data.local_hostname }}"
126126
preKubeadmCommands:
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
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
129129
---
130130
apiVersion: v1
131131
data: ${CNI_RESOURCES}
@@ -142,8 +142,8 @@ spec:
142142
matchLabels:
143143
cni: ${CLUSTER_NAME}-crs-0
144144
resources:
145-
- kind: ConfigMap
146-
name: cni-${CLUSTER_NAME}-crs-0
145+
- kind: ConfigMap
146+
name: cni-${CLUSTER_NAME}-crs-0
147147
strategy: ApplyOnce
148148
---
149149
apiVersion: addons.cluster.x-k8s.io/v1beta1
@@ -155,8 +155,8 @@ spec:
155155
matchLabels:
156156
ccm: external
157157
resources:
158-
- kind: ConfigMap
159-
name: cloud-controller-manager-addon
158+
- kind: ConfigMap
159+
name: cloud-controller-manager-addon
160160
strategy: ApplyOnce
161161
---
162162
apiVersion: addons.cluster.x-k8s.io/v1beta1
@@ -168,8 +168,8 @@ spec:
168168
matchLabels:
169169
csi: external
170170
resources:
171-
- kind: ConfigMap
172-
name: aws-ebs-csi-driver-addon
171+
- kind: ConfigMap
172+
name: aws-ebs-csi-driver-addon
173173
strategy: ApplyOnce
174174
---
175175
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)