Last active
November 6, 2023 10:57
-
-
Save Ankurk99/93ef347eac77407684fac6a797b6db2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# SPDX-License-Identifier: Apache-2.0 | |
# Copyright 2023 Authors of KubeArmor | |
namespace="kubearmor" | |
echo "Waiting for all pods in namespace '$namespace' to be in the 'Running' state" | |
kubectl wait --for=condition=ready --timeout=5m -n kubearmor pod -l kubearmor-app=kubearmor-operator | |
kubectl get po -n $namespace | |
kubectl wait -n kubearmor --timeout=5m --for=jsonpath='{.status.phase}'=Running kubearmorconfigs/kubearmor-default | |
kubectl wait --timeout=5m --for=condition=ready pod -l kubearmor-app,kubearmor-app!=kubearmor-snitch -n kubearmor | |
echo "All pods in namespace '$namespace' are now in the 'Running' state" | |
kubectl get po -n $namespace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment