Skip to content

up local command: add flag operator-flags#264

Merged
fanminshi merged 1 commit intooperator-framework:masterfrom
shawn-hurley:issue-255
May 18, 2018
Merged

up local command: add flag operator-flags#264
fanminshi merged 1 commit intooperator-framework:masterfrom
shawn-hurley:issue-255

Conversation

@shawn-hurley
Copy link
Copy Markdown
Member

@shawn-hurley shawn-hurley commented May 17, 2018

operator-flags gives the ability to pass flags to the local operator.

Fixes #255

Comment thread commands/operator-sdk/cmd/up/local.go Outdated
}

upLocalCmd.Flags().StringVar(&kubeConfig, "kubeconfig", "", "The file path to kubernetes configuration file; defaults to $HOME/.kube/config")
upLocalCmd.Flags().StringVar(&passThroughFlags, "extra-flags", "", "The extra flags that your operator will need. Example: \"--namespace test\"")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might want to make "extra-flags" more explicit such as "operator-flags"

I think change the description to:
"The flags that the operator needs. Example: \"--flag1=value1 --flag2=value2 ...\""
sounds a bit more formal to avoid your and will.

Comment thread commands/operator-sdk/cmd/up/local.go Outdated
var (
kubeConfig string
kubeConfig string
passThroughFlags string
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest to use operatorFlags instead of passThroughFlags.

@fanminshi
Copy link
Copy Markdown
Contributor

lgtm

@fanminshi fanminshi changed the title up local command: add flag extra-flags up local command: add flag operator-flags May 18, 2018
@fanminshi
Copy link
Copy Markdown
Contributor

One last nit, could you update the commit title to use operator-flags instead of extra-flags?

extra-flags gives the ability to pass flags to the local operator.

Fixes operator-framework#255
@fanminshi fanminshi merged commit 49a0718 into operator-framework:master May 18, 2018
@shawn-hurley shawn-hurley deleted the issue-255 branch October 17, 2018 15:07
m1kola pushed a commit to m1kola/operator-sdk that referenced this pull request Jun 7, 2024
…-master

Bug 2100001: Merge upstream tag v1.22.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants