Skip to content

Commit

Permalink
deprecate some cfg commands
Browse files Browse the repository at this point in the history
  • Loading branch information
natasha41575 committed Jul 8, 2021
1 parent e1804cb commit 64d16cf
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/config/internal/commands/annotate.go
Expand Up @@ -27,6 +27,7 @@ func NewAnnotateRunner(parent string) *AnnotateRunner {
Long: commands.AnnotateLong,
Example: commands.AnnotateExamples,
RunE: r.runE,
Deprecated: "use `commonAnnotations` field in kustomization instead.",
}
runner.FixDocs(parent, c)
r.Command = c
Expand Down
1 change: 1 addition & 0 deletions cmd/config/internal/commands/cmdcreatesetter.go
Expand Up @@ -32,6 +32,7 @@ func NewCreateSetterRunner(parent string) *CreateSetterRunner {
Example: commands.CreateSetterExamples,
PreRunE: r.preRunE,
RunE: r.runE,
Deprecated: "setter commands will no longer be available in kustomize v5 (use patches or replacements instead).",
}
set.Flags().StringVar(&r.FieldValue, "value", "",
"optional flag, alternative to specifying the value as an argument. e.g. used to specify values that start with '-'")
Expand Down
1 change: 1 addition & 0 deletions cmd/config/internal/commands/cmdcreatesubstitution.go
Expand Up @@ -23,6 +23,7 @@ func NewCreateSubstitutionRunner(parent string) *CreateSubstitutionRunner {
Args: cobra.ExactArgs(2),
PreRun: r.preRun,
RunE: r.runE,
Deprecated: "this will no longer be available in kustomize v5.",
}
cs.Flags().StringVar(&r.CreateSubstitution.FieldName, "field", "",
"name of the field to set -- e.g. --field image")
Expand Down
1 change: 1 addition & 0 deletions cmd/config/internal/commands/cmdinit.go
Expand Up @@ -26,6 +26,7 @@ func GetInitRunner(name string) *InitRunner {
Long: commands.InitLong,
Example: commands.InitExamples,
RunE: r.runE,
Deprecated: "setter commands will no longer be available in kustomize v5 (use patches or replacements instead).",
}
runner.FixDocs(name, c)
r.Command = c
Expand Down
1 change: 1 addition & 0 deletions cmd/config/internal/commands/cmdlistsetters.go
Expand Up @@ -31,6 +31,7 @@ func NewListSettersRunner(parent string) *ListSettersRunner {
Example: commands.ListSettersExamples,
PreRunE: r.preRunE,
RunE: r.runE,
Deprecated: "setter commands will no longer be available in kustomize v5 (use patches or replacements instead).",
}
c.Flags().BoolVar(&r.Markdown, "markdown", false,
"output as github markdown")
Expand Down
1 change: 1 addition & 0 deletions cmd/config/internal/commands/cmdset.go
Expand Up @@ -27,6 +27,7 @@ func NewSetRunner(parent string) *SetRunner {
Example: commands.SetExamples,
PreRunE: r.preRunE,
RunE: r.runE,
Deprecated: "setter commands will no longer be available in kustomize v5 (use patches or replacements instead).",
}
runner.FixDocs(parent, c)
r.Command = c
Expand Down
1 change: 1 addition & 0 deletions cmd/config/internal/commands/fmt.go
Expand Up @@ -25,6 +25,7 @@ func GetFmtRunner(name string) *FmtRunner {
Example: commands.FmtExamples,
RunE: r.runE,
PreRunE: r.preRunE,
Deprecated: "declare a formatting transformer in your kustomization instead.",
}
runner.FixDocs(name, c)
c.Flags().StringVar(&r.FilenamePattern, "pattern", filters.DefaultFilenamePattern,
Expand Down
1 change: 1 addition & 0 deletions cmd/config/internal/commands/merge.go
Expand Up @@ -19,6 +19,7 @@ func GetMergeRunner(name string) *MergeRunner {
Long: commands.MergeLong,
Example: commands.MergeExamples,
RunE: r.runE,
Deprecated: "this will no longer be available in kustomize v5.",
}
runner.FixDocs(name, c)
r.Command = c
Expand Down
1 change: 1 addition & 0 deletions cmd/config/internal/commands/merge3.go
Expand Up @@ -18,6 +18,7 @@ func GetMerge3Runner(name string) *Merge3Runner {
Long: commands.Merge3Long,
Example: commands.Merge3Examples,
RunE: r.runE,
Deprecated: "this will no longer be available in kustomize v5.",
}
runner.FixDocs(name, c)
c.Flags().StringVar(&r.ancestor, "ancestor", "",
Expand Down

0 comments on commit 64d16cf

Please sign in to comment.