Skip to content

Commit a1bc8a4

Browse files
committed
e2e format test 2
Signed-off-by: Pat O'Connor <[email protected]>
1 parent deb74e5 commit a1bc8a4

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/e2e_tests.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,16 @@ jobs:
8585
KIND_CONFIG_FILE=${TEMP_DIR}/kind.yaml
8686
8787
# Create KIND config with 1 worker node
88-
cat > ${KIND_CONFIG_FILE} <<EOF
88+
cat > ${KIND_CONFIG_FILE} <<'EOF'
8989
kind: Cluster
9090
apiVersion: kind.x-k8s.io/v1alpha4
9191
containerdConfigPatches:
9292
- |-
93-
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."${REGISTRY_ADDRESS}"]
94-
endpoint = ["http://${REGISTRY_ADDRESS}"]
93+
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."REGISTRY_PLACEHOLDER"]
94+
endpoint = ["http://REGISTRY_PLACEHOLDER"]
9595
nodes:
9696
- role: control-plane
97-
image: ${NODE_IMAGE}
97+
image: NODE_IMAGE_PLACEHOLDER
9898
kubeadmConfigPatches:
9999
- |
100100
kind: InitConfiguration
@@ -109,14 +109,18 @@ nodes:
109109
hostPort: 443
110110
protocol: TCP
111111
- role: worker
112-
image: ${NODE_IMAGE}
112+
image: NODE_IMAGE_PLACEHOLDER
113113
labels:
114114
worker-1: true
115115
extraMounts:
116116
- hostPath: /dev/null
117117
containerPath: /var/run/nvidia-container-devices/all
118118
EOF
119119

120+
# Replace placeholders with actual values
121+
sed -i "s|REGISTRY_PLACEHOLDER|${REGISTRY_ADDRESS}|g" ${KIND_CONFIG_FILE}
122+
sed -i "s|NODE_IMAGE_PLACEHOLDER|${NODE_IMAGE}|g" ${KIND_CONFIG_FILE}
123+
120124
echo "KIND_CONFIG_FILE=${KIND_CONFIG_FILE}" >> $GITHUB_ENV
121125

122126
sudo --preserve-env=REGISTRY_ADDRESS sh -c 'cat > /etc/containers/registries.conf.d/local.conf <<EOF

0 commit comments

Comments
 (0)