-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Kubernetes 1.11 builds #2943
Changes from 1 commit
bfacb51
836aee0
29f6fde
6d4912a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,8 +205,17 @@ var versionSpecificOpts = []VersionedExtraOption{ | |
Key: "admission-control", | ||
Value: strings.Join(util.DefaultAdmissionControllers, ","), | ||
}, | ||
LessThanOrEqual: semver.MustParse("1.10.10"), | ||
GreaterThanOrEqual: semver.MustParse("1.9.0-alpha.0"), | ||
}, | ||
{ | ||
Option: util.ExtraOption{ | ||
Component: Apiserver, | ||
Key: "enable-admission-plugins", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this necessary? I got a working cluster with just removing the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not necessary, but we pass some different defaults than kubeadm. |
||
Value: strings.Join(util.DefaultAdmissionControllers, ","), | ||
}, | ||
GreaterThanOrEqual: semver.MustParse("1.11.0-alpha.0"), | ||
}, | ||
} | ||
|
||
func VersionIsBetween(version, gte, lte semver.Version) bool { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this break when there's a
1.10.11
? Doessemver.MustParse("1.10.*")
not work?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The semver library doesn't support *'s :(
I'll change to something like 1000