You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See issue kubernetes-retired#16. To allow inclusive propagation of resources an
additional SyncornizationMode called 'Allow' which only enables
propagation when a selector is set is added. An 'all' selector is also addded.
Tested: e2e-testing covering secrets resource in 'Allow' mode and checking
propagation when selectors are set and unset ('select', 'treeSelect', 'none', 'all').
Unit testing is also modified to account for the new 'all' selection
Signed-off-by: mzeevi <[email protected]>
fmt.Printf("Switching directly from 'Ignore' to 'Propagate' mode or 'Allow' mode could cause existing %q objects in "+
53
53
"child namespaces to be overwritten by objects from ancestor namespaces.\n", resource)
54
54
fmt.Println("If you are sure you want to proceed with this operation, use the '--force' flag.")
55
55
fmt.Println("If you are not sure and would like to see what source objects would be overwritten,"+
@@ -78,7 +78,7 @@ var setResourceCmd = &cobra.Command{
78
78
79
79
funcnewSetResourceCmd() *cobra.Command {
80
80
setResourceCmd.Flags().String("group", "", "The group of the resource; may be omitted for core resources (or explicitly set to the empty string)")
81
-
setResourceCmd.Flags().String("mode", "", "The synchronization mode: one of Propagate, Remove or Ignore")
82
-
setResourceCmd.Flags().BoolP("force", "f", false, "Allow the synchronization mode to be changed directly from Ignore to Propagate despite the dangers of doing so")
81
+
setResourceCmd.Flags().String("mode", "", "The synchronization mode: one of Propagate, Remove, Ignore and Allow")
82
+
setResourceCmd.Flags().BoolP("force", "f", false, "Allow the synchronization mode to be changed directly from Ignore to Propagate or Allow despite the dangers of doing so")
0 commit comments