File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff 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'
8989kind : Cluster
9090apiVersion : kind.x-k8s.io/v1alpha4
9191containerdConfigPatches :
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 "]
9595nodes :
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
118118EOF
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
You can’t perform that action at this time.
0 commit comments