Skip to content

Commit

Permalink
chore: update test data
Browse files Browse the repository at this point in the history
Set latest k8s version during tests since the latest version of a chart used within the test requires it apparently.
  • Loading branch information
mgoltzsche committed Sep 12, 2023
1 parent 3e252a0 commit b1f1ecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/khelm/fn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion cmd/khelm/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
{
Expand Down

0 comments on commit b1f1ecf

Please sign in to comment.