Skip to content

Commit

Permalink
Change default value of deleteOption (open-cluster-management-io#121)
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Qiu <[email protected]>
  • Loading branch information
qiujian16 authored Dec 20, 2021
1 parent fd74015 commit 8b5ab93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion work/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b5ab93

Please sign in to comment.