From fa89973133ff1f08a033a7096986cb914f546491 Mon Sep 17 00:00:00 2001 From: James Andariese Date: Sun, 23 Apr 2023 19:45:56 -0500 Subject: [PATCH] wip --- README.md | 15 +++++++++++++++ argo1/templates/1-self.yaml | 2 ++ argo1/templates/sealed-secrets.yaml | 2 ++ argo1/templates/secrets.yaml | 2 ++ 4 files changed, 21 insertions(+) diff --git a/README.md b/README.md index c4548c7..716eb74 100644 --- a/README.md +++ b/README.md @@ -61,5 +61,20 @@ though!) Do not modify (or be careful with) `1-self.yaml` which is the application which references this repo to enable self-management. +## Uninstalling + +1. First, delete all the subapps. If you wanted to keep them and remove ArgoCD + only, then just skip this step. + +```bash +argocd app set argo1 --helm-set secrets.enabled=false --helm-set sealed-secrets.enabled=false --core +``` + +2. Now uninstall argo1 via helm. + +```bash +helm uninstall argo1 +``` + [argo-crds]: https://argo-cd.readthedocs.io/en/stable/operator-manual/installation/ diff --git a/argo1/templates/1-self.yaml b/argo1/templates/1-self.yaml index dd43968..f91f3e8 100644 --- a/argo1/templates/1-self.yaml +++ b/argo1/templates/1-self.yaml @@ -4,6 +4,8 @@ kind: Application metadata: name: "{{ .Release.Name }}" namespace: "{{ .Release.Namespace }}" + finalizers: + - resources-finalizer.argocd.argoproj.io spec: project: default source: diff --git a/argo1/templates/sealed-secrets.yaml b/argo1/templates/sealed-secrets.yaml index 8ab86ef..753a757 100644 --- a/argo1/templates/sealed-secrets.yaml +++ b/argo1/templates/sealed-secrets.yaml @@ -4,6 +4,8 @@ kind: Application metadata: name: "{{ .Release.Name }}-sealed-secrets" namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io spec: project: default source: diff --git a/argo1/templates/secrets.yaml b/argo1/templates/secrets.yaml index 9958599..a1e0979 100644 --- a/argo1/templates/secrets.yaml +++ b/argo1/templates/secrets.yaml @@ -4,6 +4,8 @@ kind: Application metadata: name: {{ .Release.Name }}-secrets namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io spec: project: default source: