File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ set -ex
1919source ./cluster/cluster.sh
2020cluster::install
2121
22+ monitoring_enabled () {
23+ ./cluster/kubectl.sh get crd servicemonitors.monitoring.coreos.com > /dev/null 2>&1 &&
24+ ./cluster/kubectl.sh get crd prometheusrules.monitoring.coreos.com > /dev/null 2>&1
25+ }
26+
2227if [[ " $KUBEVIRT_PROVIDER " == external ]]; then
2328 if [[ ! -v DEV_REGISTRY ]]; then
2429 echo " Missing DEV_REGISTRY variable"
4954
5055./cluster/kubectl.sh apply -f $config_dir /kubemacpool.yaml
5156
57+ if monitoring_enabled; then
58+ ./cluster/kubectl.sh apply -f " $config_dir /kubemacpool-monitoring.yaml"
59+ fi
60+
5261pods_ready_wait () {
5362 if [[ " $KUBEVIRT_PROVIDER " != external ]]; then
5463 echo " Waiting for non-kubemacpool containers to be ready ..."
You can’t perform that action at this time.
0 commit comments