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

Init klog in NewNetworkPolicyController #57

Closed

Conversation

thomasferrandiz
Copy link
Collaborator

@thomasferrandiz thomasferrandiz commented Apr 6, 2023

Since we don't run kube-router's main in k3s, klog is not initalized in kube-router which means that log verbosity is not propagated properly.
This PR adds the initialization of klog in the NewNetworkPolicyController function so that the flags for klog are recognized when running the netpol controller.
We can then set the VLevel field in kube-router config in k3s code before starting the netpol controller to set the log verbosity as desired.

This allows us to propagate the log verbosity level from k3s to kube-router.

Signed-off-by: Thomas Ferrandiz <[email protected]>
@thomasferrandiz
Copy link
Collaborator Author

replaced by k3s-io/k3s#7303

@thomasferrandiz thomasferrandiz deleted the init-logs-netpol branch April 18, 2023 13:50
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.

1 participant