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