Add `WaitForTermination` option to DeletionPolicy
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
d775ed3a19
commit
c54d9f6bec
|
@ -36,6 +36,7 @@ const (
|
||||||
|
|
||||||
DeletionPolicyMirrorPrune = "MirrorPrune"
|
DeletionPolicyMirrorPrune = "MirrorPrune"
|
||||||
DeletionPolicyDelete = "Delete"
|
DeletionPolicyDelete = "Delete"
|
||||||
|
DeletionPolicyWaitForTermination = "WaitForTermination"
|
||||||
DeletionPolicyOrphan = "Orphan"
|
DeletionPolicyOrphan = "Orphan"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -101,9 +102,9 @@ type KustomizationSpec struct {
|
||||||
|
|
||||||
// DeletionPolicy can be used to control garbage collection when this
|
// DeletionPolicy can be used to control garbage collection when this
|
||||||
// Kustomization is deleted. Valid values are ('MirrorPrune', 'Delete',
|
// Kustomization is deleted. Valid values are ('MirrorPrune', 'Delete',
|
||||||
// 'Orphan'). 'MirrorPrune' mirrors the Prune field (orphan if false,
|
// 'WaitForTermination', 'Orphan'). 'MirrorPrune' mirrors the Prune field
|
||||||
// delete if true). Defaults to 'MirrorPrune'.
|
// (orphan if false, delete if true). Defaults to 'MirrorPrune'.
|
||||||
// +kubebuilder:validation:Enum=MirrorPrune;Delete;Orphan
|
// +kubebuilder:validation:Enum=MirrorPrune;Delete;WaitForTermination;Orphan
|
||||||
// +optional
|
// +optional
|
||||||
DeletionPolicy string `json:"deletionPolicy,omitempty"`
|
DeletionPolicy string `json:"deletionPolicy,omitempty"`
|
||||||
|
|
||||||
|
|
|
@ -113,11 +113,12 @@ spec:
|
||||||
description: |-
|
description: |-
|
||||||
DeletionPolicy can be used to control garbage collection when this
|
DeletionPolicy can be used to control garbage collection when this
|
||||||
Kustomization is deleted. Valid values are ('MirrorPrune', 'Delete',
|
Kustomization is deleted. Valid values are ('MirrorPrune', 'Delete',
|
||||||
'Orphan'). 'MirrorPrune' mirrors the Prune field (orphan if false,
|
'WaitForTermination', 'Orphan'). 'MirrorPrune' mirrors the Prune field
|
||||||
delete if true). Defaults to 'MirrorPrune'.
|
(orphan if false, delete if true). Defaults to 'MirrorPrune'.
|
||||||
enum:
|
enum:
|
||||||
- MirrorPrune
|
- MirrorPrune
|
||||||
- Delete
|
- Delete
|
||||||
|
- WaitForTermination
|
||||||
- Orphan
|
- Orphan
|
||||||
type: string
|
type: string
|
||||||
dependsOn:
|
dependsOn:
|
||||||
|
|
|
@ -217,8 +217,8 @@ string
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>DeletionPolicy can be used to control garbage collection when this
|
<p>DeletionPolicy can be used to control garbage collection when this
|
||||||
Kustomization is deleted. Valid values are (‘MirrorPrune’, ‘Delete’,
|
Kustomization is deleted. Valid values are (‘MirrorPrune’, ‘Delete’,
|
||||||
‘Orphan’). ‘MirrorPrune’ mirrors the Prune field (orphan if false,
|
‘WaitForTermination’, ‘Orphan’). ‘MirrorPrune’ mirrors the Prune field
|
||||||
delete if true). Defaults to ‘MirrorPrune’.</p>
|
(orphan if false, delete if true). Defaults to ‘MirrorPrune’.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -775,8 +775,8 @@ string
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>DeletionPolicy can be used to control garbage collection when this
|
<p>DeletionPolicy can be used to control garbage collection when this
|
||||||
Kustomization is deleted. Valid values are (‘MirrorPrune’, ‘Delete’,
|
Kustomization is deleted. Valid values are (‘MirrorPrune’, ‘Delete’,
|
||||||
‘Orphan’). ‘MirrorPrune’ mirrors the Prune field (orphan if false,
|
‘WaitForTermination’, ‘Orphan’). ‘MirrorPrune’ mirrors the Prune field
|
||||||
delete if true). Defaults to ‘MirrorPrune’.</p>
|
(orphan if false, delete if true). Defaults to ‘MirrorPrune’.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue