bump DefaultCapabilities to 1.18

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
pull/8115/head
Matthew Fisher 5 years ago
parent bf12ae3934
commit bfb39c0c68
No known key found for this signature in database
GPG Key ID: 92AA783CBAAE8E3B

@ -71,8 +71,8 @@ metadata:
helm.sh/chart: "subchart1-0.1.0"
app.kubernetes.io/instance: "foobar-YWJj-baz"
kube-version/major: "1"
kube-version/minor: "16"
kube-version/version: "v1.16.0"
kube-version/minor: "18"
kube-version/version: "v1.18.0"
spec:
type: ClusterIP
ports:

@ -71,8 +71,8 @@ metadata:
helm.sh/chart: "subchart1-0.1.0"
app.kubernetes.io/instance: "RELEASE-NAME"
kube-version/major: "1"
kube-version/minor: "16"
kube-version/version: "v1.16.0"
kube-version/minor: "18"
kube-version/version: "v1.18.0"
spec:
type: ClusterIP
ports:

@ -8,8 +8,8 @@ metadata:
helm.sh/chart: "subchart1-0.1.0"
app.kubernetes.io/instance: "RELEASE-NAME"
kube-version/major: "1"
kube-version/minor: "16"
kube-version/version: "v1.16.0"
kube-version/minor: "18"
kube-version/version: "v1.18.0"
kube-api-version/test: v1
spec:
type: ClusterIP

@ -8,8 +8,8 @@ metadata:
helm.sh/chart: "subchart1-0.1.0"
app.kubernetes.io/instance: "RELEASE-NAME"
kube-version/major: "1"
kube-version/minor: "16"
kube-version/version: "v1.16.0"
kube-version/minor: "18"
kube-version/version: "v1.18.0"
kube-api-version/test: v1
spec:
type: ClusterIP

@ -71,8 +71,8 @@ metadata:
helm.sh/chart: "subchart1-0.1.0"
app.kubernetes.io/instance: "RELEASE-NAME"
kube-version/major: "1"
kube-version/minor: "16"
kube-version/version: "v1.16.0"
kube-version/minor: "18"
kube-version/version: "v1.18.0"
spec:
type: ClusterIP
ports:

@ -71,8 +71,8 @@ metadata:
helm.sh/chart: "subchart1-0.1.0"
app.kubernetes.io/instance: "RELEASE-NAME"
kube-version/major: "1"
kube-version/minor: "16"
kube-version/version: "v1.16.0"
kube-version/minor: "18"
kube-version/version: "v1.18.0"
kube-api-version/test: v1
spec:
type: ClusterIP

@ -87,8 +87,8 @@ metadata:
helm.sh/chart: "subchart1-0.1.0"
app.kubernetes.io/instance: "RELEASE-NAME"
kube-version/major: "1"
kube-version/minor: "16"
kube-version/version: "v1.16.0"
kube-version/minor: "18"
kube-version/version: "v1.18.0"
kube-api-version/test: v1
spec:
type: ClusterIP

@ -71,8 +71,8 @@ metadata:
helm.sh/chart: "subchart1-0.1.0"
app.kubernetes.io/instance: "RELEASE-NAME"
kube-version/major: "1"
kube-version/minor: "16"
kube-version/version: "v1.16.0"
kube-version/minor: "18"
kube-version/version: "v1.18.0"
spec:
type: ClusterIP
ports:

@ -29,9 +29,9 @@ var (
// DefaultCapabilities is the default set of capabilities.
DefaultCapabilities = &Capabilities{
KubeVersion: KubeVersion{
Version: "v1.16.0",
Version: "v1.18.0",
Major: "1",
Minor: "16",
Minor: "18",
},
APIVersions: DefaultVersionSet,
}

@ -42,19 +42,19 @@ func TestDefaultVersionSet(t *testing.T) {
func TestDefaultCapabilities(t *testing.T) {
kv := DefaultCapabilities.KubeVersion
if kv.String() != "v1.16.0" {
t.Errorf("Expected default KubeVersion.String() to be v1.16.0, got %q", kv.String())
if kv.String() != "v1.18.0" {
t.Errorf("Expected default KubeVersion.String() to be v1.18.0, got %q", kv.String())
}
if kv.Version != "v1.16.0" {
t.Errorf("Expected default KubeVersion.Version to be v1.16.0, got %q", kv.Version)
if kv.Version != "v1.18.0" {
t.Errorf("Expected default KubeVersion.Version to be v1.18.0, got %q", kv.Version)
}
if kv.GitVersion() != "v1.16.0" {
t.Errorf("Expected default KubeVersion.GitVersion() to be v1.16.0, got %q", kv.Version)
if kv.GitVersion() != "v1.18.0" {
t.Errorf("Expected default KubeVersion.GitVersion() to be v1.18.0, got %q", kv.Version)
}
if kv.Major != "1" {
t.Errorf("Expected default KubeVersion.Major to be 1, got %q", kv.Major)
}
if kv.Minor != "16" {
if kv.Minor != "18" {
t.Errorf("Expected default KubeVersion.Minor to be 16, got %q", kv.Minor)
}
}

Loading…
Cancel
Save