From b1f1ecfbc1953ef05e8e906303252aa2274a573b Mon Sep 17 00:00:00 2001 From: Max Goltzsche Date: Wed, 13 Sep 2023 01:15:07 +0200 Subject: [PATCH] chore: update test data Set latest k8s version during tests since the latest version of a chart used within the test requires it apparently. --- cmd/khelm/fn_test.go | 4 ++-- cmd/khelm/template_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/khelm/fn_test.go b/cmd/khelm/fn_test.go index a8189c9..33852a3 100644 --- a/cmd/khelm/fn_test.go +++ b/cmd/khelm/fn_test.go @@ -65,7 +65,7 @@ func TestKptFnCommand(t *testing.T) { Chart: "cert-manager", }, RendererConfig: config.RendererConfig{ - KubeVersion: "v1.21.0", + KubeVersion: "v1.27.0", }, }}, -1, []string{"acme.cert-manager.io"}, @@ -238,7 +238,7 @@ func TestKptFnCommand(t *testing.T) { }, OutputPath: "my/output/manifest.yaml", }, - 3, []string{" annotations:\n config.kubernetes.io/index: 1\n config.kubernetes.io/path: my/output/manifest.yaml\n"}, + 3, []string{" annotations:\n config.kubernetes.io/index: 0\n config.kubernetes.io/path: my/output/manifest.yaml\n"}, }, { "annotate output path when annotations empty", diff --git a/cmd/khelm/template_test.go b/cmd/khelm/template_test.go index 336f5a0..8c14238 100644 --- a/cmd/khelm/template_test.go +++ b/cmd/khelm/template_test.go @@ -26,7 +26,7 @@ func TestTemplateCommand(t *testing.T) { { "latest cluster scoped remote chart", []string{"cert-manager", "--repo=https://charts.jetstack.io", - "--trust-any-repo", "--kube-version=v1.21.0"}, + "--trust-any-repo", "--kube-version=v1.27.0"}, -1, "acme.cert-manager.io", }, {