mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 08:20:59 +00:00
Make plugin dir match Go conventions.
This commit is contained in:
@@ -27,7 +27,7 @@ import (
|
||||
// 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.
|
||||
//
|
||||
//
|
||||
// The helm chart used is downloaded from
|
||||
// https://github.com/helm/charts/tree/master/stable/minecraft
|
||||
// with each test run, so it's a bit brittle as that
|
||||
@@ -36,13 +36,13 @@ import (
|
||||
// This test requires having the helm binary on the PATH.
|
||||
//
|
||||
// TODO: Download and inflate the chart, and check that
|
||||
// in for the test.
|
||||
// in for the test.
|
||||
func TestChartInflatorExecPlugin(t *testing.T) {
|
||||
tc := plugintest_test.NewPluginTestEnv(t).Set()
|
||||
defer tc.Reset()
|
||||
|
||||
tc.BuildExecPlugin(
|
||||
"kustomize.config.k8s.io", "v1", "ChartInflatorExec")
|
||||
"builtin", "", "ChartInflatorExec")
|
||||
|
||||
th := NewKustTestHarnessWithPluginConfig(
|
||||
t, "/app", plugin.ActivePluginConfig())
|
||||
@@ -53,7 +53,7 @@ namePrefix: LOOOOOOOONG-
|
||||
`)
|
||||
|
||||
th.writeF("/app/chartInflatorExec.yaml", `
|
||||
apiVersion: kustomize.config.k8s.io/v1
|
||||
apiVersion: builtin
|
||||
kind: ChartInflatorExec
|
||||
metadata:
|
||||
name: notImportantHere
|
||||
|
||||
@@ -67,7 +67,7 @@ spec:
|
||||
|
||||
func writeSecretGeneratorConfig(th *KustTestHarness, root string) {
|
||||
th.writeF(filepath.Join(root, "secretGenerator.yaml"), `
|
||||
apiVersion: kustomize.config.k8s.io/v1
|
||||
apiVersion: builtin
|
||||
kind: SecretGenerator
|
||||
metadata:
|
||||
name: secretGenerator
|
||||
@@ -102,7 +102,7 @@ func TestSecretGenerator(t *testing.T) {
|
||||
defer tc.Reset()
|
||||
|
||||
tc.BuildGoPlugin(
|
||||
"kustomize.config.k8s.io", "v1", "SecretGenerator")
|
||||
"builtin", "", "SecretGenerator")
|
||||
|
||||
th := NewKustTestHarnessWithPluginConfig(
|
||||
t, "/app", plugin.ActivePluginConfig())
|
||||
|
||||
Reference in New Issue
Block a user