You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E2E: test podTemplate metadata propagation to launcher pods (#433) (#452)
The CRD fix (commit 8582db6) introduced EmbeddedPodTemplateSpec to
accept metadata in LauncherConfig podTemplate, but E2E tests never
exercised this path. Add template labels/annotations to both mkobjs
scripts and assert they appear on created launcher pods and survive
unbind.
Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: test/e2e/test-cases.sh
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -217,6 +217,10 @@ expect '[ "$(kubectl get pod -n '"$NS"' $req1 -o jsonpath={.metadata.labels.dual
217
217
[ "$(kubectl get pod -n "$NS"$launcher1 -o jsonpath='{.metadata.labels.e2e-test\.fma\.llm-d\.ai/isc-label}')"=="test-value" ] || { echo"ERROR: ISC label not propagated to launcher pod $launcher1";exit 1; }
218
218
[ "$(kubectl get pod -n "$NS"$launcher1 -o jsonpath='{.metadata.annotations.e2e-test\.fma\.llm-d\.ai/isc-annotation}')"=="test-value" ] || { echo"ERROR: ISC annotation not propagated to launcher pod $launcher1";exit 1; }
219
219
220
+
# Verify LauncherConfig podTemplate metadata labels/annotations were propagated to launcher pod (Issue #433)
221
+
[ "$(kubectl get pod -n "$NS"$launcher1 -o jsonpath='{.metadata.labels.e2e-test\.fma\.llm-d\.ai/template-label}')"=="from-launcher-config" ] || { echo"ERROR: LauncherConfig podTemplate label is not correctly set on launcher pod $launcher1";false; }
222
+
[ "$(kubectl get pod -n "$NS"$launcher1 -o jsonpath='{.metadata.annotations.e2e-test\.fma\.llm-d\.ai/template-annotation}')"=="from-launcher-config" ] || { echo"ERROR: LauncherConfig podTemplate annotation is not correctly set on launcher pod $launcher1";false; }
@@ -362,6 +366,10 @@ expect '[ "$(kubectl get pod -n '"$NS"' $launcher1 -o jsonpath={.metadata.labels
362
366
[ "$(kubectl get pod -n "$NS"$launcher1 -o jsonpath='{.metadata.labels.e2e-test\.fma\.llm-d\.ai/isc-label}')"=="" ] || { echo"ERROR: ISC label not removed from launcher pod $launcher1 after unbind";exit 1; }
363
367
[ "$(kubectl get pod -n "$NS"$launcher1 -o jsonpath='{.metadata.annotations.e2e-test\.fma\.llm-d\.ai/isc-annotation}')"=="" ] || { echo"ERROR: ISC annotation not removed from launcher pod $launcher1 after unbind";exit 1; }
364
368
369
+
# Verify LauncherConfig podTemplate metadata survives unbind (these are intrinsic to the pod, not ISC-specific)
370
+
[ "$(kubectl get pod -n "$NS"$launcher1 -o jsonpath='{.metadata.labels.e2e-test\.fma\.llm-d\.ai/template-label}')"=="from-launcher-config" ] || { echo"ERROR: LauncherConfig podTemplate label is not correctly set on launcher pod $launcher1 after unbind";false; }
371
+
[ "$(kubectl get pod -n "$NS"$launcher1 -o jsonpath='{.metadata.annotations.e2e-test\.fma\.llm-d\.ai/template-annotation}')"=="from-launcher-config" ] || { echo"ERROR: LauncherConfig podTemplate annotation is not correctly set on launcher pod $launcher1 after unbind";false; }
372
+
365
373
# Scale back up (should reuse same launcher and wake sleeping instance)
0 commit comments