Skip to content

Commit

Permalink
Reapply: Add support for deletion protection flags (#301)
Browse files Browse the repository at this point in the history
Co-authored-by: Helder Santana <[email protected]>
  • Loading branch information
josvazg and helderjs authored Feb 1, 2024
1 parent fb2809a commit 2fcc060
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/atlas-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ spec:
- --atlas-domain={{ .Values.atlasURI }}
- "--health-probe-bind-address=:8081"
- "--metrics-bind-address=:8080"
- --object-deletion-protection={{ .Values.objectDeletionProtection }}
- --subobject-deletion-protection={{ .Values.subobjectDeletionProtection }}
- "--leader-elect"
command:
- /manager
Expand Down
5 changes: 5 additions & 0 deletions charts/atlas-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ mongodb-atlas-operator-crds:
# atlasURI is the URI of the MongoDB Atlas. You should not change this value.
atlasURI: https://cloud.mongodb.com/

# objectDeletionProtection defines the operator will not delete Atlas resource when a Custom Resource is deleted
objectDeletionProtection: true
# subobjectDeletionProtection defines that the operator will not overwrite (and consequently delete) subresources that were not previously created by the operator
subobjectDeletionProtection: true

# globalConnectionSecret is a default "global" Secret containing Atlas
# authentication information.
#
Expand Down

0 comments on commit 2fcc060

Please sign in to comment.