Skip to content

Commit bd4c296

Browse files
committed
Wait for deployments/daemonsets instead of pods
Use controller resources in wait conditions for more reliable status checks across metallb, cert-manager, and nmstate components. Assisted-By: Claude Code/claude-4.5-sonnet Signed-off-by: Harald Jensås <hjensas@redhat.com>
1 parent bf7c01e commit bd4c296

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

roles/hotloop/templates/common/stages/deps-stages.yaml.j2

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
- "oc wait namespaces cert-manager-operator --for jsonpath='{.status.phase}'=Active --timeout=30s"
1313
- "oc wait namespaces metallb-system --for jsonpath='{.status.phase}'=Active --timeout=30s"
1414
- "oc wait namespaces openshift-nmstate --for jsonpath='{.status.phase}'=Active --timeout=30s"
15-
- "oc wait -n metallb-system pod -l control-plane=controller-manager --for condition=Ready --timeout=180s"
16-
- "oc wait -n metallb-system pod -l component=webhook-server --for condition=Ready --timeout=180s"
17-
- "oc wait -n cert-manager-operator pod --for condition=Ready -l name=cert-manager-operator --timeout=180s"
18-
- "oc wait -n cert-manager pod -l app=cainjector --for condition=Ready --timeout=180s"
19-
- "oc wait -n cert-manager pod -l app=webhook --for condition=Ready --timeout=180s"
20-
- "oc wait -n cert-manager pod -l app=cert-manager --for condition=Ready --timeout=180s"
15+
- "oc wait -n metallb-system deployment -l control-plane=controller-manager --for condition=Available --timeout=180s"
16+
- "oc wait -n metallb-system deployment -l component=webhook-server --for condition=Available --timeout=180s"
17+
- "oc wait -n cert-manager-operator deployment cert-manager-operator-controller-manager --for condition=Available --timeout=180s"
18+
- "oc wait -n cert-manager deployment -l app=cainjector --for condition=Available --timeout=180s"
19+
- "oc wait -n cert-manager deployment -l app=webhook --for condition=Available --timeout=180s"
20+
- "oc wait -n cert-manager deployment -l app=cert-manager --for condition=Available --timeout=180s"
2121

2222
- name: Common MetalLB
2323
manifest: "{{ role_path }}/files/common/manifests/deps/metallb.yaml"
@@ -27,6 +27,6 @@
2727

2828
- name: Wait for MetalLB and NMState
2929
wait_conditions:
30-
- "oc wait -n metallb-system pod -l component=speaker --for condition=Ready --timeout=180s"
31-
- "oc wait -n openshift-nmstate pod -l component=kubernetes-nmstate-handler --for condition=Ready --timeout=180s"
32-
- "oc wait -n openshift-nmstate deployments/nmstate-webhook --for condition=Available --timeout=180s"
30+
- "oc wait -n metallb-system daemonset -l component=speaker --for jsonpath='{.status.numberReady}'=1 --timeout=180s"
31+
- "oc wait -n openshift-nmstate daemonset -l component=kubernetes-nmstate-handler --for jsonpath='{.status.numberReady}'=1 --timeout=180s"
32+
- "oc wait -n openshift-nmstate deployment -l component=kubernetes-nmstate-webhook --for condition=Available --timeout=180s"

0 commit comments

Comments
 (0)