Skip to content

Commit

Permalink
Merge pull request #2340 from RainbowMango/pr_graceful_eviction_gate
Browse files Browse the repository at this point in the history
Introduce graceful eviction feature gate and mark feature in alpha state
  • Loading branch information
karmada-bot authored Aug 8, 2022
2 parents fcc994a + 5bb852e commit a0a8b69
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/features/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import (
const (
// Failover indicates if scheduler should reschedule on cluster failure.
Failover featuregate.Feature = "Failover"

// GracefulEviction indicates if enable grace eviction.
// Takes effect only when the Failover feature is enabled.
GracefulEviction featuregate.Feature = "GracefulEviction"

// PropagateDeps indicates if relevant resources should be propagated automatically
PropagateDeps featuregate.Feature = "PropagateDeps"
)
Expand All @@ -17,8 +22,9 @@ var (
FeatureGate featuregate.MutableFeatureGate = featuregate.NewFeatureGate()

defaultFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{
Failover: {Default: false, PreRelease: featuregate.Alpha},
PropagateDeps: {Default: false, PreRelease: featuregate.Alpha},
Failover: {Default: false, PreRelease: featuregate.Alpha},
GracefulEviction: {Default: false, PreRelease: featuregate.Alpha},
PropagateDeps: {Default: false, PreRelease: featuregate.Alpha},
}
)

Expand Down

0 comments on commit a0a8b69

Please sign in to comment.