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:
85
85
KIND_CONFIG_FILE=${TEMP_DIR}/kind.yaml
86
86
87
87
# Create KIND config with 1 worker node
88
- cat > ${KIND_CONFIG_FILE} <<EOF
88
+ cat > ${KIND_CONFIG_FILE} <<' EOF'
89
89
kind : Cluster
90
90
apiVersion : kind.x-k8s.io/v1alpha4
91
91
containerdConfigPatches :
92
92
- |-
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 "]
95
95
nodes :
96
96
- role : control-plane
97
- image : ${NODE_IMAGE}
97
+ image : NODE_IMAGE_PLACEHOLDER
98
98
kubeadmConfigPatches :
99
99
- |
100
100
kind: InitConfiguration
@@ -109,14 +109,18 @@ nodes:
109
109
hostPort : 443
110
110
protocol : TCP
111
111
- role : worker
112
- image : ${NODE_IMAGE}
112
+ image : NODE_IMAGE_PLACEHOLDER
113
113
labels :
114
114
worker-1 : true
115
115
extraMounts :
116
116
- hostPath : /dev/null
117
117
containerPath : /var/run/nvidia-container-devices/all
118
118
EOF
119
119
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
+
120
124
echo "KIND_CONFIG_FILE=${KIND_CONFIG_FILE}" >> $GITHUB_ENV
121
125
122
126
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