Skip to content

Commit 9559dc4

Browse files
Merge pull request #828 from rackerlabs/protect-resources
chore: protect resources from automated deletion
2 parents 167e192 + 1be7dac commit 9559dc4

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

components/nautobot/cloudnative-postgres-nautobot.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ apiVersion: postgresql.cnpg.io/v1
33
kind: Cluster
44
metadata:
55
name: nautobot-cluster
6+
annotations:
7+
# do not allow ArgoCD to delete our DB
8+
argocd.argoproj.io/sync-options: Delete=false
69
spec:
710
imageName: ghcr.io/cloudnative-pg/postgresql:15.5
811
instances: 3

components/nautobot/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ redis:
7676
auth:
7777
existingSecret: nautobot-redis
7878
existingSecretPasswordKey: NAUTOBOT_REDIS_PASSWORD
79+
commonAnnotations:
80+
# do not allow ArgoCD to delete our redis
81+
argocd.argoproj.io/sync-options: Delete=false
7982

8083
ingress:
8184
enabled: true

components/openstack/mariadb-instance.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ apiVersion: k8s.mariadb.com/v1alpha1
33
kind: MariaDB
44
metadata:
55
name: mariadb # this name is referenced by other resource kinds
6+
annotations:
7+
# do not allow ArgoCD to delete our DB
8+
argocd.argoproj.io/sync-options: Delete=false
69
spec:
710
rootPasswordSecretKeyRef:
811
name: mariadb
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
---
2+
3+
commonAnnotations:
4+
# do not allow ArgoCD to delete our memcached
5+
argocd.argoproj.io/sync-options: Delete=false
6+
17
metrics:
28
enabled: true

components/openstack/openstack-cluster.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ apiVersion: rabbitmq.com/v1beta1
22
kind: RabbitmqCluster
33
metadata:
44
name: rabbitmq
5+
annotations:
6+
# do not allow ArgoCD to delete our cluster
7+
argocd.argoproj.io/sync-options: Delete=false

0 commit comments

Comments
 (0)