Skip to content

Commit

Permalink
deprecate flag component-config
Browse files Browse the repository at this point in the history
Signed-off-by: laxmikantbpandhare <laxmikantpandhare@gmail.com>
  • Loading branch information
laxmikantbpandhare committed Oct 17, 2022
1 parent 169c743 commit d16c6c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pkg/plugins/common/kustomize/v1/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ type createSubcommand struct {
force bool
}

func (p *createSubcommand) BindFlags(fs *pflag.FlagSet) { p.flagSet = fs }
func (p *createSubcommand) BindFlags(fs *pflag.FlagSet) {
p.flagSet = fs
_ = fs.MarkDeprecated("component-config", "component-config flag will be deprecated in upcoming releases")
}

func (p *createSubcommand) InjectConfig(c config.Config) error {
p.config = c
Expand Down
5 changes: 4 additions & 1 deletion pkg/plugins/common/kustomize/v2-alpha/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ type createSubcommand struct {
force bool
}

func (p *createSubcommand) BindFlags(fs *pflag.FlagSet) { p.flagSet = fs }
func (p *createSubcommand) BindFlags(fs *pflag.FlagSet) {
p.flagSet = fs
_ = fs.MarkDeprecated("component-config", "component-config flag will be deprecated in upcoming releases")
}

func (p *createSubcommand) InjectConfig(c config.Config) error {
p.config = c
Expand Down

0 comments on commit d16c6c2

Please sign in to comment.