File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -182,17 +182,6 @@ jobs:
182182 done
183183 kubectl wait --for=condition=Ready pod/${POD} -n ${NS} --timeout=5m || true
184184
185- - name : 🩹 Patch /etc/hosts in test pod with Vertica pod entries
186- run : |
187- echo "Adding Vertica pod entries to /etc/hosts in test pod..."
188- POD=test-runner
189- NS=my-verticadb-operator
190- for p in $(kubectl -n $NS get pods -l app.kubernetes.io/instance=verticadb-sample -o jsonpath='{.items[*].metadata.name}'); do
191- IP=$(kubectl -n $NS get pod $p -o jsonpath='{.status.podIP}')
192- echo "$IP $p.$NS.svc.cluster.local $p" | kubectl -n $NS exec -i $POD -- tee -a /etc/hosts >/dev/null
193- echo "✔ Added $p -> $IP"
194- done
195-
196185 # ---------------------------
197186 # Keycloak + OAuth setup
198187 # ---------------------------
@@ -292,7 +281,17 @@ jobs:
292281 GRANT AUTHENTICATION v_dbadmin_hash TO dbadmin;
293282 \"
294283 "
295-
284+ - name : 🩹 Patch /etc/hosts in test pod with Vertica pod entries
285+ run : |
286+ echo "Adding Vertica pod entries to /etc/hosts in test pod..."
287+ POD=test-runner
288+ NS=my-verticadb-operator
289+ for p in $(kubectl -n $NS get pods -l app.kubernetes.io/instance=verticadb-sample -o jsonpath='{.items[*].metadata.name}'); do
290+ IP=$(kubectl -n $NS get pod $p -o jsonpath='{.status.podIP}')
291+ echo "$IP $p.$NS.svc.cluster.local $p" | kubectl -n $NS exec -i $POD -- tee -a /etc/hosts >/dev/null
292+ echo "✔ Added $p -> $IP"
293+ done
294+
296295 # ---------------------------
297296 # Testing section
298297 # ---------------------------
You can’t perform that action at this time.
0 commit comments