We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 278127d commit 4f1ffffCopy full SHA for 4f1ffff
monitoring/bin/deploy_monitoring_openshift.sh
@@ -227,11 +227,7 @@ if [ "$OPENSHIFT_AUTH_ENABLE" == "true" ]; then
227
log_debug "Adding ClusterRoleBinding for grafana-serviceaccount..."
228
crbYAML=$TMP_DIR/grafana-serviceaccount-binding.yaml
229
cp monitoring/openshift/grafana-serviceaccount-binding.yaml "$crbYAML"
230
- if echo "$OSTYPE" | grep 'darwin' > /dev/null 2>&1; then
231
- sed -i '' "s/__MON_NS__/$MON_NS/g" "$crbYAML"
232
- else
233
- sed -i "s/__MON_NS__/$MON_NS/g" "$crbYAML"
234
- fi
+ v4m_replace "__MON_NS__" "$MON_NS" "$crbYAML"
235
236
kubectl apply -f "$crbYAML"
237
0 commit comments