add feature gate for policy preemption

Signed-off-by: Poor12 <shentiecheng@huawei.com>
This commit is contained in:
Poor12 2023-07-21 16:56:16 +08:00
parent 48e9a5b551
commit 1e1d67a686
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,9 @@ const (
// CustomizedClusterResourceModeling indicates if enable cluster resource custom modeling.
CustomizedClusterResourceModeling featuregate.Feature = "CustomizedClusterResourceModeling"
// PolicyPreemption indicates if high-priority PropagationPolicy/ClusterPropagationPolicy could preempt resource templates which are matched by low-priority PropagationPolicy/ClusterPropagationPolicy.
PolicyPreemption featuregate.Feature = "PropagationPolicyPreemption"
)
var (
@ -30,6 +33,7 @@ var (
GracefulEviction: {Default: true, PreRelease: featuregate.Beta},
PropagateDeps: {Default: true, PreRelease: featuregate.Beta},
CustomizedClusterResourceModeling: {Default: true, PreRelease: featuregate.Beta},
PolicyPreemption: {Default: false, PreRelease: featuregate.Alpha},
}
)