Add goplugin KV generator example.

This commit is contained in:
Jeffrey Regan
2019-03-26 17:49:11 -07:00
parent 99406d4412
commit 99391157ec
11 changed files with 319 additions and 38 deletions

View File

@@ -55,12 +55,12 @@ See https://sigs.k8s.io/kustomize
PluginConfig: plugin.DefaultPluginConfig(),
}
c.Flags().BoolVar(
c.PersistentFlags().BoolVar(
&genMetaArgs.PluginConfig.GoEnabled,
plugin.EnableGoPluginsFlagName,
false, plugin.EnableGoPluginsFlagHelp)
// Not advertising this alpha feature.
c.Flags().MarkHidden(plugin.EnableGoPluginsFlagName)
c.PersistentFlags().MarkHidden(plugin.EnableGoPluginsFlagName)
uf := kunstruct.NewKunstructuredFactoryWithGeneratorArgs(&genMetaArgs)

View File

@@ -23,6 +23,7 @@ import (
"runtime"
)
//noinspection GoSnakeCaseUsage
const (
XDG_CONFIG_HOME = "XDG_CONFIG_HOME"
defaultConfigSubdir = ".config"