mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
When releasing, allow certain replacements.
This commit is contained in:
@@ -37,6 +37,10 @@ var (
|
||||
"releasing",
|
||||
"site",
|
||||
}
|
||||
// TODO: make this a PATH-like flag
|
||||
allowedReplacements = []string {
|
||||
"gopkg.in/yaml.v3",
|
||||
}
|
||||
)
|
||||
|
||||
type Command int
|
||||
@@ -64,6 +68,14 @@ func (a *Args) GetCommand() Command {
|
||||
return a.cmd
|
||||
}
|
||||
|
||||
func (a *Args) AllowedReplacements() (result []string) {
|
||||
// Make sure the list has no repeats.
|
||||
for k := range utils.SliceToSet(allowedReplacements) {
|
||||
result = append(result, k)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (a *Args) Bump() semver.SvBump {
|
||||
return a.bump
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user