From 5baae2bac6d3de519bb73fd2589bb516b39d0d26 Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Thu, 8 Feb 2024 11:00:27 +0800 Subject: [PATCH] fix(suc/talos): k8s wait Ceph cluster if all Ceph clusters are healthy, surely k8s will also be healthy... right? --- .../system-upgrade-controller/plans/talos/app/talos.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kube/deploy/core/system-upgrade-controller/plans/talos/app/talos.yaml b/kube/deploy/core/system-upgrade-controller/plans/talos/app/talos.yaml index dda8741e..1abf5cdf 100644 --- a/kube/deploy/core/system-upgrade-controller/plans/talos/app/talos.yaml +++ b/kube/deploy/core/system-upgrade-controller/plans/talos/app/talos.yaml @@ -22,7 +22,13 @@ spec: kubernetes.io/os: "linux" prepare: &prepare image: "registry.k8s.io/kubectl:v1.29.1@sha256:59b3035b8826b0a1d5d950588ecc3f33cbc3bb9b5a70735245691a211821a22f" - args: ["wait", "--for=jsonpath='{.status.ceph.health}'='HEALTH_OK'", "cephcluster", "--all", "--all-namespaces"] # if Ceph is completely healthy, surely k8s is healthy, right? + args: # if Ceph is completely healthy, surely k8s is healthy, right? + - "wait" + - | + --for=jsonpath='{.status.ceph.health}'='HEALTH_OK' + - "cephcluster" + - "--all" + - "--all-namespaces" #image: "ghcr.io/siderolabs/talosctl:${TALOS_VERSION}" #envs: # - name: NODE_IP