mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Remove kv plugins from docs.
This commit is contained in:
@@ -10,18 +10,18 @@ import (
|
||||
"sigs.k8s.io/kustomize/plugin"
|
||||
)
|
||||
|
||||
func TestConfigMapGeneratorPlugin(t *testing.T) {
|
||||
func TestBashedConfigMapPlugin(t *testing.T) {
|
||||
tc := plugin.NewEnvForTest(t).Set()
|
||||
defer tc.Reset()
|
||||
|
||||
tc.BuildExecPlugin(
|
||||
"someteam.example.com", "v1", "ConfigMapGenerator")
|
||||
"someteam.example.com", "v1", "BashedConfigMap")
|
||||
|
||||
th := kusttest_test.NewKustTestPluginHarness(t, "/app")
|
||||
|
||||
m := th.LoadAndRunGenerator(`
|
||||
apiVersion: someteam.example.com/v1
|
||||
kind: ConfigMapGenerator
|
||||
kind: BashedConfigMap
|
||||
metadata:
|
||||
name: whatever
|
||||
argsOneLiner: alice myMomsMaidenName
|
||||
@@ -50,5 +50,4 @@ func (p *plugin) Generate() (resmap.ResMap, error) {
|
||||
}
|
||||
}
|
||||
return p.rf.FromSecretArgs(p.ldr, nil, args)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user