mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Update chartinflatorexecplugin_test.go
This commit is contained in:
@@ -24,15 +24,19 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/k8sdeps/kv/plugin"
|
"sigs.k8s.io/kustomize/k8sdeps/kv/plugin"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: Make this test less brittle.
|
// This is an example of using a helm chart as a base,
|
||||||
|
// inflating it and then customizing it with a nameprefix
|
||||||
|
// applied to all its resources.
|
||||||
//
|
//
|
||||||
// To test ChartInflatorExec, it downloads the latest
|
// The helm chart used is downloaded from
|
||||||
// stable minecraft chart, inflates it with default values,
|
// https://github.com/helm/charts/tree/master/stable/minecraft
|
||||||
// and demands an exact match.
|
// with each test run, so it's a bit brittle as that
|
||||||
// Maybe just grep for particular strings instead.
|
// chart could change obviously and break the test.
|
||||||
//
|
//
|
||||||
// This test requires having the helm binary on the PATH.
|
// This test requires having the helm binary on the PATH.
|
||||||
//
|
//
|
||||||
|
// TODO: Download and inflate the chart, and check that
|
||||||
|
// in for the test.
|
||||||
func TestChartInflatorExecPlugin(t *testing.T) {
|
func TestChartInflatorExecPlugin(t *testing.T) {
|
||||||
tc := plugintest_test.NewPluginTestEnv(t).Set()
|
tc := plugintest_test.NewPluginTestEnv(t).Set()
|
||||||
defer tc.Reset()
|
defer tc.Reset()
|
||||||
|
|||||||
Reference in New Issue
Block a user