Skip to content

Commit

Permalink
add feature gate for policy preemption
Browse files Browse the repository at this point in the history
Signed-off-by: Poor12 <shentiecheng@huawei.com>
  • Loading branch information
Poor12 committed Jul 24, 2023
1 parent 48e9a5b commit 1e1d67a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/features/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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},
}
)

Expand Down

0 comments on commit 1e1d67a

Please sign in to comment.