File tree 1 file changed +22
-2
lines changed
1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,31 @@ kubectl annotate -n gitea secret/gitea-postgresql helm.sh/resource-policy='keep'
6
6
kubectl annotate -n gitea sts/gitea-postgresql helm.sh/resource-policy=' keep' deprecated=true
7
7
kubectl annotate -n gitea svc/gitea-postgresql helm.sh/resource-policy=' keep' deprecated=true
8
8
9
-
10
9
if [[ $( helm status -n gatekeeper-system gatekeeper 2> /dev/null) ]]; then
11
10
helm uninstall -n gatekeeper-system gatekeeper
12
11
helm uninstall -n gatekeeper-system gatekeeper-artifacts
13
12
helm uninstall -n gatekeeper-system gatekeeper-constraints
14
13
helm uninstall -n gatekeeper-system opa-exporter-artifacts
15
14
helm uninstall -n opa-exporter opa-exporter
16
- fi
15
+ fi
16
+
17
+ if [[ $( kubectl get applications.argoproj.io gitea-operator-gitea-operator -n argocd 2> /dev/null) ]]; then
18
+ kubectl delete applications.argoproj.io gitea-operator-gitea-operator -n argocd
19
+ fi
20
+
21
+ if [[ $( helm status -n gitea-operator gitea-operator 2> /dev/null) ]]; then
22
+ helm uninstall -n gitea-operator gitea-operator
23
+ kubectl delete ns gitea-operator
24
+ fi
25
+
26
+ if [[ $( helm status -n maintenance job-gitea-prepare 2> /dev/null) ]]; then
27
+ helm uninstall -n maintenance job-gitea-prepare
28
+ fi
29
+
30
+ if [[ $( helm status -n maintenance job-harbor 2> /dev/null) ]]; then
31
+ helm uninstall -n maintenance job-harbor
32
+ fi
33
+
34
+ if [[ $( helm status -n maintenance job-keycloak 2> /dev/null) ]]; then
35
+ helm uninstall -n maintenance job-keycloak
36
+ fi
You can’t perform that action at this time.
0 commit comments