Skip to content

Commit

Permalink
Merge pull request #3828 from Poor12/add-feature-gate
Browse files Browse the repository at this point in the history
Add feature gate for policy preemption
  • Loading branch information
karmada-bot authored Jul 24, 2023
2 parents 58e99de + 1e1d67a commit 6ef427a
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 6ef427a

Please sign in to comment.