@@ -110,7 +110,7 @@ if [ "$PROM_OPERATOR_CRD_UPDATE" == "true" ]; then
110
110
log_verbose " Updating Prometheus Operator custom resource definitions"
111
111
crds=( alertmanagerconfigs alertmanagers prometheuses prometheusrules podmonitors servicemonitors thanosrulers probes )
112
112
for crd in " ${crds[@]} " ; do
113
-
113
+
114
114
# # Determine CRD URL - if in an airgap environment, look for them in USER_DIR.
115
115
if [ " $AIRGAP_DEPLOYMENT " == " true" ]; then
116
116
crdURL=$USER_DIR /monitoring/prometheus-operator-crd/$PROM_OPERATOR_CRD_VERSION /monitoring.coreos.com_$crd .yaml
@@ -124,7 +124,7 @@ if [ "$PROM_OPERATOR_CRD_UPDATE" == "true" ]; then
124
124
fi
125
125
else
126
126
crdURL=" https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/$PROM_OPERATOR_CRD_VERSION /example/prometheus-operator-crd/monitoring.coreos.com_$crd .yaml"
127
- fi
127
+ fi
128
128
129
129
if kubectl get crd $crd .monitoring.coreos.com 1> /dev/null 2>&1 ; then
130
130
kubectl replace -f $crdURL
@@ -390,12 +390,6 @@ helm $helmDebug upgrade --install $promRelease \
390
390
391
391
sleep 2
392
392
393
- if [ " $TLS_ENABLE " == " true" ]; then
394
- log_verbose " Patching Grafana ServiceMonitor for TLS"
395
- kubectl patch servicemonitor -n $MON_NS $promName -grafana --type=json \
396
- -p=' [{"op": "replace", "path": "/spec/endpoints/0/scheme", "value":"https"},{"op": "replace", "path": "/spec/endpoints/0/tlsConfig", "value":{}},{"op": "replace", "path": "/spec/endpoints/0/tlsConfig/insecureSkipVerify", "value":true}]'
397
- fi
398
-
399
393
# Container Security: Disable serviceAccount Token Automounting
400
394
disable_sa_token_automount $MON_NS v4m-grafana
401
395
disable_sa_token_automount $MON_NS sas-ops-acct # Used w/Prometheus
543
537
544
538
if [ " $showPass " == " true" ]; then
545
539
# Find the grafana pod
546
-
540
+
547
541
log_notice " Generated Grafana admin password is: $grafanaPwd "
548
542
log_notice " To change the password, run the following script (replace myNewPassword with an updated password):"
549
543
log_notice " monitoring/bin/change_grafana_admin_password.sh -p myNewPassword"
550
544
fi
551
545
552
546
log_message " "
553
547
log_notice " Successfully deployed components to the [$MON_NS ] namespace"
554
-
555
-
0 commit comments