Skip to content

Commit 4f1ffff

Browse files
committed
fix comment and use v4m_replace
1 parent 278127d commit 4f1ffff

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

monitoring/bin/deploy_monitoring_openshift.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,7 @@ if [ "$OPENSHIFT_AUTH_ENABLE" == "true" ]; then
227227
log_debug "Adding ClusterRoleBinding for grafana-serviceaccount..."
228228
crbYAML=$TMP_DIR/grafana-serviceaccount-binding.yaml
229229
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
230+
v4m_replace "__MON_NS__" "$MON_NS" "$crbYAML"
235231

236232
kubectl apply -f "$crbYAML"
237233

0 commit comments

Comments
 (0)