diff --git a/components/nautobot/cloudnative-postgres-nautobot.yaml b/components/nautobot/cloudnative-postgres-nautobot.yaml index d468199fc..1a6ba4b10 100644 --- a/components/nautobot/cloudnative-postgres-nautobot.yaml +++ b/components/nautobot/cloudnative-postgres-nautobot.yaml @@ -3,6 +3,9 @@ apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: nautobot-cluster + annotations: + # do not allow ArgoCD to delete our DB + argocd.argoproj.io/sync-options: Delete=false spec: imageName: ghcr.io/cloudnative-pg/postgresql:15.5 instances: 3 diff --git a/components/nautobot/values.yaml b/components/nautobot/values.yaml index 99795012d..8ede491dc 100644 --- a/components/nautobot/values.yaml +++ b/components/nautobot/values.yaml @@ -76,6 +76,9 @@ redis: auth: existingSecret: nautobot-redis existingSecretPasswordKey: NAUTOBOT_REDIS_PASSWORD + commonAnnotations: + # do not allow ArgoCD to delete our redis + argocd.argoproj.io/sync-options: Delete=false ingress: enabled: true diff --git a/components/openstack/mariadb-instance.yaml b/components/openstack/mariadb-instance.yaml index b6e96cc44..7110f7752 100644 --- a/components/openstack/mariadb-instance.yaml +++ b/components/openstack/mariadb-instance.yaml @@ -3,6 +3,9 @@ apiVersion: k8s.mariadb.com/v1alpha1 kind: MariaDB metadata: name: mariadb # this name is referenced by other resource kinds + annotations: + # do not allow ArgoCD to delete our DB + argocd.argoproj.io/sync-options: Delete=false spec: rootPasswordSecretKeyRef: name: mariadb diff --git a/components/openstack/memcached-values.yaml b/components/openstack/memcached-values.yaml index db1ecae58..cf70b6ec3 100644 --- a/components/openstack/memcached-values.yaml +++ b/components/openstack/memcached-values.yaml @@ -1,2 +1,8 @@ +--- + +commonAnnotations: + # do not allow ArgoCD to delete our memcached + argocd.argoproj.io/sync-options: Delete=false + metrics: enabled: true diff --git a/components/openstack/openstack-cluster.yaml b/components/openstack/openstack-cluster.yaml index 82bcec612..8680c1cf4 100644 --- a/components/openstack/openstack-cluster.yaml +++ b/components/openstack/openstack-cluster.yaml @@ -2,3 +2,6 @@ apiVersion: rabbitmq.com/v1beta1 kind: RabbitmqCluster metadata: name: rabbitmq + annotations: + # do not allow ArgoCD to delete our cluster + argocd.argoproj.io/sync-options: Delete=false