File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ cluster_up() {
59
59
run cp " $kubeconfig " " $CLUSTER_KUBECONFIG "
60
60
export KUBECONFIG=" $CLUSTER_KUBECONFIG "
61
61
62
- if is_set " ${ PROMETHEUS_ENABLE} " || is_set " GRAFANA_ENABLE" ; then
62
+ if is_set " $PROMETHEUS_ENABLE " || is_set " $ GRAFANA_ENABLE" ; then
63
63
source " $PROJECT_ROOT /lib/prometheus.sh"
64
64
deploy_prometheus_operator
65
65
fi
@@ -73,6 +73,11 @@ print_config() {
73
73
local cluster_config
74
74
cluster_config=$( " ${CLUSTER_PROVIDER} " _print_config)
75
75
76
+ local prom_install_msg=" $PROMETHEUS_ENABLE "
77
+ if ! is_set " $PROMETHEUS_ENABLE " && is_set " $GRAFANA_ENABLE " ; then
78
+ prom_install_msg=" false 👈 but will install prometheus because grafana is enabled"
79
+ fi
80
+
76
81
cat << -EOF
77
82
78
83
Configuration
@@ -84,8 +89,8 @@ print_config() {
84
89
registry port : $REGISTRY_PORT
85
90
86
91
Monitoring
87
- * Install Prometheus : $PROMETHEUS_ENABLE
88
- * Install Grafana : $PROMETHEUS_ENABLE
92
+ * Install Prometheus : $prom_install_msg
93
+ * Install Grafana : $GRAFANA_ENABLE
89
94
90
95
$cluster_config
91
96
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
You can’t perform that action at this time.
0 commit comments