-
Notifications
You must be signed in to change notification settings - Fork 558
Conversation
As per v1.8.11 release notes, rev'd the kube-dns version |
versions := make([]string, 0, len(AllKubernetesWindowsSupportedVersions)) | ||
for k := range AllKubernetesWindowsSupportedVersions { | ||
versions = append(versions, k) | ||
var versions []string |
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.
This fixes a bug,as prior it was returning all versions regardless of the bool value.
(admittedly AllKubernetesWindowsSupportedVersions
isn't the best name for a hash table that includes explicitly not supported versions)
GetAllSupportedKubernetesVersions() should not return if a version is disabled
for k := range AllKubernetesSupportedVersions { | ||
versions = append(versions, k) | ||
var versions []string | ||
for ver, supported := range AllKubernetesSupportedVersions { |
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.
see below
t.Errorf( | ||
"should not error on valid Windows version: %v", err, | ||
) | ||
for _, version := range common.GetAllSupportedKubernetesVersionsWindows() { |
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.
using a bunch of static versions was not maintainable, actually enumerating through known supported list now to test validation
} | ||
|
||
p = getK8sDefaultProperties(false) | ||
p.OrchestratorProfile.OrchestratorVersion = "1.9.7" |
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.
nice
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.
lgtm
* add support for k8s v1.8.11, rationalize version tests * update kube-dns to v1.14.9 as per release notes * should only return enabled versions GetAllSupportedKubernetesVersions() should not return if a version is disabled # Conflicts: # pkg/api/vlabs/validate_test.go
What this PR does / why we need it: Kubernetes v1.8.11:
https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.8.md#v1811
Also rationalize version tests
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
If applicable:
Release note: