Skip to content

Commit 80b248e

Browse files
Fix a1 e2e tests
1 parent 79e8b1d commit 80b248e

File tree

6 files changed

+30
-11
lines changed

6 files changed

+30
-11
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ e2e/external: bin/helm bin/kubetest2
159159
COLLECT_METRICS="true" \
160160
./hack/e2e/run.sh
161161

162-
.PHONY: e2e/external-a1-eks
163-
e2e/external-a1-eks: bin/helm bin/kubetest2
162+
.PHONY: e2e/external-a1
163+
e2e/external-a1: bin/helm bin/kubetest2
164164
HELM_EXTRA_FLAGS="--set=a1CompatibilityDaemonSet=true" \
165165
./hack/e2e/run.sh
166166

hack/e2e/build-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function build_and_push() {
7070

7171
PUSH_TYPE="sub-push"
7272

73-
if [[ "$INSTANCE_TYPE" == "a1.large" ]]; then
73+
if [[ "$INSTANCE_TYPE" == "a1.xlarge" ]]; then
7474
# In the case of a1compat image we need both controller image and a1 compat node image
7575
PUSH_TYPE="sub-push sub-push-a1compat"
7676
fi

hack/e2e/create-cluster.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ if [[ "${CLUSTER_TYPE}" == "kops" ]]; then
5959
"$KUBECONFIG" \
6060
"${BASE_DIR}/kops/patch-cluster.yaml" \
6161
"${BASE_DIR}/kops/patch-node.yaml" \
62-
"s3://${KOPS_BUCKET}"
62+
"s3://${KOPS_BUCKET}" \
63+
"${BIN}/gomplate"
6364
elif [[ "${CLUSTER_TYPE}" == "eksctl" ]]; then
6465
eksctl_create_cluster \
6566
"$CLUSTER_NAME" \

hack/e2e/kops/kops.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function kops_create_cluster() {
3232
KOPS_PATCH_FILE=${10}
3333
KOPS_PATCH_NODE_FILE=${11}
3434
KOPS_STATE_FILE=${12}
35+
GOMPLATE_BIN=${13}
3536
declare -x KOPS_TOO_NEW_VERSION=true
3637

3738
if kops_cluster_exists "${CLUSTER_NAME}" "${KOPS_BIN}" "${KOPS_STATE_FILE}"; then
@@ -50,7 +51,10 @@ function kops_create_cluster() {
5051
"${CLUSTER_NAME}" >"${CLUSTER_FILE}"
5152

5253
if test -f "$KOPS_PATCH_FILE"; then
53-
kops_patch_cluster_file "$CLUSTER_FILE" "$KOPS_PATCH_FILE" "Cluster" ""
54+
loudecho "Templating $KOPS_PATCH_FILE to $KOPS_PATCH_FILE.processed"
55+
INSTANCE_TYPE="$INSTANCE_TYPE" \
56+
${GOMPLATE_BIN} -f "$KOPS_PATCH_FILE" -o "$KOPS_PATCH_FILE.processed"
57+
kops_patch_cluster_file "$CLUSTER_FILE" "$KOPS_PATCH_FILE.processed" "Cluster" ""
5458
fi
5559
if test -f "$KOPS_PATCH_NODE_FILE"; then
5660
kops_patch_cluster_file "$CLUSTER_FILE" "$KOPS_PATCH_NODE_FILE" "InstanceGroup" "Node"

hack/e2e/kops/patch-cluster.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ spec:
2424
kubeScheduler:
2525
featureGates:
2626
VolumeAttributesClass: "true"
27+
{{- if hasPrefix "a1." (env.Getenv "INSTANCE_TYPE") }}
28+
containerd:
29+
version: "1.7.28"
30+
runc:
31+
version: "1.3.0"
32+
networking:
33+
cilium: null
34+
flannel:
35+
backend: vxlan
36+
podCIDR: 100.96.0.0/11
37+
serviceClusterIPRange: 100.64.0.0/13
38+
kubeProxy:
39+
enabled: true
40+
{{- end }}
2741
additionalPolicies:
2842
node: |
2943
[

hack/prow-e2e.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ test-e2e-external-eks)
4949
TEST="external"
5050
export CLUSTER_TYPE="eksctl"
5151
;;
52-
test-e2e-external-a1-eks)
53-
TEST="external-a1-eks"
54-
export K8S_VERSION_EKSCTL="1.30"
55-
export INSTANCE_TYPE="a1.large"
52+
test-e2e-external-a1)
53+
TEST="external-a1"
54+
export AWS_AVAILABILITY_ZONES="us-west-2b,us-west-2c"
55+
export INSTANCE_TYPE="a1.xlarge"
5656
export IMAGE_ARCH="arm64"
57-
export CLUSTER_TYPE="eksctl"
58-
export AMI_FAMILY="AmazonLinux2"
57+
export AMI_PARAMETER="/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-arm64-gp2"
58+
export CLUSTER_TYPE="kops"
5959
;;
6060
test-e2e-external-eks-bottlerocket)
6161
TEST="external-eks-bottlerocket"

0 commit comments

Comments
 (0)