Skip to content

Commit

Permalink
Introduce graceful eviction feature gate and mark feature in alpha st…
Browse files Browse the repository at this point in the history
…ate.

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
  • Loading branch information
RainbowMango committed Aug 6, 2022
1 parent fcc994a commit 5bb852e
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 5bb852e

Please sign in to comment.