Fix bash command to check prometheus crds

Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
This commit is contained in:
Ganesh Maharaj Mahalingam
2022-08-15 15:40:17 -07:00
committed by David Lyle
parent 32f421a2f9
commit 8f2f1d7422
+1 -1
View File
@@ -258,7 +258,7 @@ function monitoring() {
set_repo_version "${PROMETHEUS_VER}" "${PROMETHEUS_DIR}/overlays/${PROMETHEUS_VER}/kube-prometheus"
kubectl apply --server-side -f "${PROMETHEUS_DIR}/overlays/${PROMETHEUS_VER}/kube-prometheus/manifests/setup/"
while ! $(kubectl get servicemonitors --all-namespaces) ; do
while ! [[ $(kubectl get servicemonitors --all-namespaces) ]]; do
echo "Waiting for prometheus crds"
sleep 10
done