Remove some duped code.

This commit is contained in:
jregan
2019-04-06 16:04:04 -07:00
parent 38029d1836
commit b32e041bfe
11 changed files with 106 additions and 129 deletions

View File

@@ -32,8 +32,8 @@ type Registry struct {
}
const (
TransformerSymbol = "Transformer"
PluginsDir = "plugins"
PluginSymbol = "KustomizePlugin"
PluginRoot = "plugins"
pluginTypeGo = types.PluginType("go")
pluginTypeBuiltIn = types.PluginType("builtin")
)
@@ -48,7 +48,7 @@ func DefaultPluginConfig() *types.PluginConfig {
return &types.PluginConfig{
GoEnabled: false,
DirectoryPath: filepath.Join(
pgmconfig.ConfigRoot(), PluginsDir),
pgmconfig.ConfigRoot(), PluginRoot),
}
}