Have managed resource DeletionPolicy default to 'Delete'
Signed-off-by: Nic Cope <negz@rk0n.org>
This commit is contained in:
parent
c0539b3cb4
commit
50745b7338
|
@ -18,6 +18,7 @@ package v1
|
|||
|
||||
// A DeletionPolicy determines what should happen to the underlying external
|
||||
// resource when a managed resource is deleted.
|
||||
// +kubebuilder:validation:Enum=Orphan;Delete
|
||||
type DeletionPolicy string
|
||||
|
||||
const (
|
||||
|
|
|
@ -149,11 +149,9 @@ type ResourceSpec struct {
|
|||
|
||||
// DeletionPolicy specifies what will happen to the underlying external
|
||||
// when this managed resource is deleted - either "Delete" or "Orphan" the
|
||||
// external resource. The "Delete" policy is the default when no policy is
|
||||
// specified.
|
||||
//
|
||||
// external resource.
|
||||
// +optional
|
||||
// +kubebuilder:validation:Enum=Orphan;Delete
|
||||
// +kubebuilder:default=Delete
|
||||
DeletionPolicy DeletionPolicy `json:"deletionPolicy,omitempty"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue