Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

up local command: add flag operator-flags #264

Merged
merged 1 commit into from
May 18, 2018

Conversation

shawn-hurley
Copy link
Member

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

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

Fixes #255

kubernetes cluster using a kubeconfig file.
`,
Run: upLocalFunc,
}

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
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.


return upLocalCmd
}

var (
kubeConfig string
kubeConfig string
passThroughFlags string
Copy link
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
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
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.

None yet

2 participants