Skip to content

Commit 8d621fd

Browse files
cmd/operator-sdk: fix run local flags (#2478) (#2539)
* CHANGELOG.md: update for next release Co-authored-by: Liran Polak <[email protected]>
1 parent d2205b9 commit 8d621fd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
### Bug Fixes
1313

14+
- 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))
15+
1416
## v0.15.1
1517

1618
### Bug Fixes

cmd/operator-sdk/run/local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type runLocalArgs struct {
4848
helmOperatorFlags *hoflags.HelmOperatorFlags
4949
}
5050

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

0 commit comments

Comments
 (0)