Skip to content

Commit

Permalink
remove alertmanager too
Browse files Browse the repository at this point in the history
  • Loading branch information
robertchoi80 committed Feb 27, 2022
1 parent 6520a17 commit fb7ae2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/argo-additional-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ rules:
- monitoring.coreos.com
resources:
- prometheuses
- alertmanagers
verbs:
- create
- get
Expand Down
2 changes: 2 additions & 0 deletions templates/decapod-apps/remove-lma-uniformed-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ spec:
# Delete prometheus CR
if [[ -z "{{workflow.parameters.cluster_id}}" ]]; then
kubectl delete prometheus --all -n {{inputs.parameters.namespace}}
kubectl delete alertmanager --all -n {{inputs.parameters.namespace}}
else
cat <<< "$KUBE_CONFIG" > /etc/kubeconfig
kubectl --kubeconfig=/etc/kubeconfig delete prometheus --all -n {{inputs.parameters.namespace}}
kubectl --kubeconfig=/etc/kubeconfig delete alertmanager --all -n {{inputs.parameters.namespace}}
fi
env:
- name: KUBE_CONFIG
Expand Down

0 comments on commit fb7ae2a

Please sign in to comment.