How to use klog library for the controller?
Please share an example.. if it is possible or not.
/triage support
@alok87: The label(s) triage/support cannot be applied, because the repository doesn't have them
In response to this:
How to use klog library for the controller?
Please share an example.. if it is possible or not./triage support
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.
I do this by replacing the line ctrl.SetLogger(zap.New(zap.UseDevMode(true))) in main.go with ctrl.SetLogger(klogr.New()); the import is "k8s.io/klog/klogr"
I understand that it is sorted out as described above. So, I am closing this one. However, please feel free to ping us if you think that it should be re-opened.
It works, thanks @justinsb :)
Most helpful comment
I do this by replacing the line
ctrl.SetLogger(zap.New(zap.UseDevMode(true)))in main.go withctrl.SetLogger(klogr.New()); the import is"k8s.io/klog/klogr"