-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Bind log configuration flags by default in main.go #1517
Comments
Can we have some inputs on this issue? |
It would be to apply the changes made in kubernetes-sigs/controller-runtime#915 and kubernetes-sigs/controller-runtime#1035 |
It shows a follow up of : #1721 @georgettica would you like to help on this one? WDYT? |
I can and I will, as of v3 and my PR, you can get these configurations but the only difference is that the debug level is forced through the code and not the config. do you think moving all of the configs outside of the if you want help changing the code inside the template I can gladly assist / create the PR to make it a reality |
Those flags aren't actually needed since /close |
@estroz: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
+1 to close this one. However, if more community members think that would be better we scaffold the flags instead than, please feel free to raise an issue with this as RFE for we are able to address. |
Is there a way to set log levels via command-line flag with the scaffolded code? It looks like we're having to change the code to support this. |
You're looking for |
Description:
Update the
main.go
scaffold code to configure log options from command line flags viazap.BindFlags()
Example:
This way, the log options can be configured at runtime via flags in the manager’s deployment manifest e.g:
/kind feature
The text was updated successfully, but these errors were encountered: