mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
No more plugin pinning.
This commit is contained in:
@@ -26,14 +26,14 @@ var (
|
|||||||
|
|
||||||
// TODO: make this a PATH-like flag
|
// TODO: make this a PATH-like flag
|
||||||
// e.g.: --excludes ".git:.idea:site:docs"
|
// e.g.: --excludes ".git:.idea:site:docs"
|
||||||
excSlice = []string{
|
exclusions = []string{
|
||||||
".git",
|
".git",
|
||||||
".github",
|
".github",
|
||||||
".idea",
|
".idea",
|
||||||
"docs",
|
"docs",
|
||||||
"examples",
|
"examples",
|
||||||
"hack",
|
"hack",
|
||||||
// "plugin",
|
"plugin",
|
||||||
"releasing",
|
"releasing",
|
||||||
"site",
|
"site",
|
||||||
}
|
}
|
||||||
@@ -94,7 +94,7 @@ func (a *Args) ConditionalModule() misc.ModuleShortName {
|
|||||||
|
|
||||||
func (a *Args) Exclusions() (result []string) {
|
func (a *Args) Exclusions() (result []string) {
|
||||||
// Make sure the list has no repeats.
|
// Make sure the list has no repeats.
|
||||||
for k := range utils.SliceToSet(excSlice) {
|
for k := range utils.SliceToSet(exclusions) {
|
||||||
result = append(result, k)
|
result = append(result, k)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user