Skip to content

Commit

Permalink
Avoid unnecessary CI restarts by waiting for kustomization gardener
Browse files Browse the repository at this point in the history
… to exist (#1167)

* wait until ks gardener exists before `kubectl wait`ing for it

Signed-off-by: Jan Lohage <[email protected]>
  • Loading branch information
j2L4e committed Nov 20, 2023
1 parent ea75bae commit e82f195
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hack/ci/04-23ke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ fi
$_23KECTL install --kubeconfig hack/ci/secrets/shoot-kubeconfig.yaml --config hack/ci/misc/23kectl-config.yaml

echo "Waiting for Kustomization gardener"
until $KUBECTL get kustomization gardener -n flux-system > /dev/null; do
sleep 1
done
$KUBECTL wait kustomization gardener -n flux-system --for=condition=ready --timeout=10m || { $_23KECTL doctor --kubeconfig hack/ci/secrets/shoot-kubeconfig.yaml; exit 1; }

echo "Waiting for all Helmreleases to be ready"
Expand Down

0 comments on commit e82f195

Please sign in to comment.