Skip to content

Commit

Permalink
cmd/operator-sdk: fix run local flags (#2478) (#2539)
Browse files Browse the repository at this point in the history
* CHANGELOG.md: update for next release

Co-authored-by: Liran Polak <[email protected]>
  • Loading branch information
camilamacedo86 and liranp authored Feb 11, 2020
1 parent d2205b9 commit 8d621fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

### Bug Fixes

- Fixed a regression in the `operator-sdk run` command that caused `--local` flags to be ignored ([#2478](https://github.com/operator-framework/operator-sdk/issues/2478))

## v0.15.1

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion cmd/operator-sdk/run/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type runLocalArgs struct {
helmOperatorFlags *hoflags.HelmOperatorFlags
}

func (c runLocalArgs) addToFlags(fs *pflag.FlagSet) {
func (c *runLocalArgs) addToFlags(fs *pflag.FlagSet) {
prefix := "[local only] "
fs.StringVar(&c.operatorFlags, "operator-flags", "",
prefix+"The flags that the operator needs. Example: \"--flag1 value1 --flag2=value2\"")
Expand Down

0 comments on commit 8d621fd

Please sign in to comment.