From 8b5ab9358f31451f4debc8b578021b217c2cce39 Mon Sep 17 00:00:00 2001 From: Jian Qiu Date: Mon, 20 Dec 2021 18:28:30 +0800 Subject: [PATCH] Change default value of deleteOption (#121) Signed-off-by: Jian Qiu --- ...00_00_work.open-cluster-management.io_manifestworks.crd.yaml | 2 +- work/v1/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/work/v1/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml b/work/v1/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml index ed58ef344..58d5ba940 100644 --- a/work/v1/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml +++ b/work/v1/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml @@ -37,7 +37,7 @@ spec: propagationPolicy: description: propagationPolicy can be Foreground, Orphan or SelectivelyOrphan SelectivelyOrphan should be rarely used. It is provided for cases where particular resources is transfering ownership from one ManifestWork to another or another management unit. Setting this value will allow a flow like 1. create manifestwork/2 to manage foo 2. update manifestwork/1 to selectively orphan foo 3. remove foo from manifestwork/1 without impacting continuity because manifestwork/2 adopts it. type: string - default: ForeGround + default: Foreground enum: - Foreground - Orphan diff --git a/work/v1/types.go b/work/v1/types.go index fed0d0a18..0a7e09f2e 100644 --- a/work/v1/types.go +++ b/work/v1/types.go @@ -63,7 +63,7 @@ type DeleteOption struct { // 1. create manifestwork/2 to manage foo // 2. update manifestwork/1 to selectively orphan foo // 3. remove foo from manifestwork/1 without impacting continuity because manifestwork/2 adopts it. - // +kubebuilder:default=ForeGround + // +kubebuilder:default=Foreground PropagationPolicy DeletePropagationPolicyType `json:"propagationPolicy"` // selectivelyOrphan represents a list of resources following orphan deletion stratecy