Skip to content

Commit 5bd9685

Browse files
JuliaMongojwilliams-mongo
authored andcommitted
(DOCSP-19873) Add new spec.backup.autoTerminateOnDeletion (#772)
* (DOCSP-19873) Add new spec.backup.AutoTerminateOnDeletion * Copy review * Copy review * Copy review
1 parent 6065d63 commit 5bd9685

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

source/includes/options-k8s-replica-set.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ inherit:
124124
program: _shared
125125
file: options-k8s-shared.yaml
126126
---
127+
127128
program: k8sRsConf
128129
name: spec.backup
129130
type: collection
@@ -134,6 +135,19 @@ inherit:
134135
program: _shared
135136
file: options-k8s-shared.yaml
136137
---
138+
139+
program: k8sRsConf
140+
name: spec.backup.autoTerminateOnDeletion
141+
type: boolean
142+
directive: setting
143+
optional: false
144+
inherit:
145+
name: spec.backup.autoTerminateOnDeletion
146+
program: _shared
147+
file: options-k8s-shared.yaml
148+
149+
---
150+
137151
program: k8sRsConf
138152
name: spec.persistent
139153
type: boolean

source/includes/options-k8s-shared.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,19 @@ description: |
169169
170170
---
171171
program: _shared
172+
name: spec.backup.autoTerminateOnDeletion
173+
type: boolean
174+
directive: setting
175+
description: |
176+
177+
Flag that indicates whether the |k8s-op-short| stops and terminates the
178+
backup when you delete a MongoDB resource. If
179+
omitted, the default value is ``false``.
180+
Setting this flag to ``true`` is useful when you want to delete the
181+
MongoDB custom resource while the :setting:`spec.backup.mode` setting
182+
is set to ``enabled``.
183+
---
184+
program: _shared
172185
name: spec.opsManager.configMapRef.name
173186
type: string
174187
directive: setting

source/reference/k8s-operator-specification.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ The following settings apply only to replica set resource types:
145145

146146
.. include:: /includes/option/setting-k8sRsConf-spec.backup.rst
147147
.. include:: /includes/option/setting-k8sRsConf-spec.backup.mode.rst
148+
.. include:: /includes/option/setting-k8sRsConf-spec.backup.autoTerminateOnDeletion.rst
148149
.. include:: /includes/option/setting-k8sSaConf-spec.clusterDomain.rst
149150
.. include:: /includes/option/setting-k8sSaConf-spec.clusterName.rst
150151
.. include:: /includes/option/setting-k8sRsConf-spec.connectivity.replicaSetHorizons.rst

0 commit comments

Comments
 (0)