Skip to content

Commit

Permalink
ensure service monitor is created
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Trent <[email protected]>
  • Loading branch information
trent-s committed Sep 3, 2024
1 parent 64eb3aa commit 4b38c65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deployment/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ do
--set containerImage="${SUSQL_REGISTRY}/${SUSQL_IMAGE_NAME}:${SUSQL_IMAGE_TAG}"
if [[ ! -z ${SUSQL_ENHANCED} ]]; then
kubectl apply -f ../config/servicemonitor/susql-smon.yaml
kubectl apply -f ../hack/susql-operator-susql-controller-manager-metrics-monitor_monitoring.coreos.com_v1_servicemonitor.yaml
fi

elif [[ ${action} = "susql-undeploy" ]]; then
Expand Down Expand Up @@ -319,6 +320,7 @@ do
if [[ ! -z ${SUSQL_ENHANCED} ]]; then
kubectl delete -f ../config/rbac/susql-rbac.yaml
kubectl delete -f ../config/servicemonitor/susql-smon.yaml
kubectl delete -f ../hack/susql-operator-susql-controller-manager-metrics-monitor_monitoring.coreos.com_v1_servicemonitor.yaml
fi

else
Expand Down

0 comments on commit 4b38c65

Please sign in to comment.