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 3715b88
Showing 1 changed file with 2 additions and 0 deletions.
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 3715b88

Please sign in to comment.