mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 08:09:58 +00:00
kubeadm: Supports() return true for all alpha/beta/ga/deprecated
This commit is contained in:
parent
6a867eacd8
commit
0951204298
@ -205,7 +205,6 @@ func enforceRequirements(flags *applyPlanFlags, args []string, dryRun bool, upgr
|
|||||||
for _, m := range msg {
|
for _, m := range msg {
|
||||||
printer.Printf("[upgrade/config] %s\n", m)
|
printer.Printf("[upgrade/config] %s\n", m)
|
||||||
}
|
}
|
||||||
return nil, nil, nil, errors.New("[upgrade/config] FATAL. Unable to upgrade a cluster using deprecated feature-gate flags. Please see the release notes")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the user told us to print this information out; do it!
|
// If the user told us to print this information out; do it!
|
||||||
|
@ -91,9 +91,9 @@ func Enabled(featureList map[string]bool, featureName string) bool {
|
|||||||
// Supports indicates whether a feature name is supported on the given
|
// Supports indicates whether a feature name is supported on the given
|
||||||
// feature set
|
// feature set
|
||||||
func Supports(featureList FeatureList, featureName string) bool {
|
func Supports(featureList FeatureList, featureName string) bool {
|
||||||
for k, v := range featureList {
|
for k := range featureList {
|
||||||
if featureName == k {
|
if featureName == k {
|
||||||
return v.PreRelease != featuregate.Deprecated
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user