Skip to content

Commit

Permalink
deprecate fn wrap, xargs, sink, source commands
Browse files Browse the repository at this point in the history
  • Loading branch information
natasha41575 committed Jul 30, 2021
1 parent 3ebdb3f commit d12b32c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/config/internal/commands/cmdwrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ Environment Variables:
SilenceUsage: true,
FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
Args: cobra.MinimumNArgs(1),
Deprecated: "this will no longer be available in kustomize v5.\n" +
"See discussion in https://github.com/kubernetes-sigs/kustomize/issues/3953.",
}
r.Command = c
r.XArgs = GetXArgsRunner()
Expand Down
2 changes: 2 additions & 0 deletions cmd/config/internal/commands/cmdxargs.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ $ kyaml cat pkg/ --function-config config.yaml --wrap-kind ResourceList | kyaml
SilenceUsage: true,
FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
Args: cobra.MinimumNArgs(1),
Deprecated: "this will no longer be available in kustomize v5.\n" +
"See discussion in https://github.com/kubernetes-sigs/kustomize/issues/3953.",
}
r.Command = c
r.Command.Flags().BoolVar(&r.EnvOnly, "env-only", false, "only add env vars, not flags")
Expand Down
2 changes: 2 additions & 0 deletions cmd/config/internal/commands/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ func GetSinkRunner(name string) *SinkRunner {
Example: commands.SinkExamples,
RunE: r.runE,
Args: cobra.MaximumNArgs(1),
Deprecated: "this will no longer be available in kustomize v5.\n" +
"See discussion in https://github.com/kubernetes-sigs/kustomize/issues/3953.",
}
runner.FixDocs(name, c)
r.Command = c
Expand Down
2 changes: 2 additions & 0 deletions cmd/config/internal/commands/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ func GetSourceRunner(name string) *SourceRunner {
Long: commands.SourceLong,
Example: commands.SourceExamples,
RunE: r.runE,
Deprecated: "this will no longer be available in kustomize v5.\n" +
"See discussion in https://github.com/kubernetes-sigs/kustomize/issues/3953.",
}
runner.FixDocs(name, c)
c.Flags().StringVar(&r.WrapKind, "wrap-kind", kio.ResourceListKind,
Expand Down

0 comments on commit d12b32c

Please sign in to comment.