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

Expose klog flags in cobra flag set #85

Merged
merged 1 commit into from
Oct 7, 2019

Conversation

nckturner
Copy link
Contributor

Description of changes:
Currently there is no way of setting logging verbosity. This PR fixes that by exposing klog flags.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -150,3 +161,19 @@ func getConfig() (controllerConfig, error) {
},
}, nil
}

// addKlogFlags adds flags from k8s.io/klog
func addKlogFlags(fs *flag.FlagSet) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

I would add add the default verbosity level to the deployment yaml as an example for users

@nckturner nckturner merged commit 21de627 into aws:master Oct 7, 2019
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.

3 participants