Open seswarrajan opened 2 years ago
This might a bit tricky and it's related to this issue https://github.com/kubernetes/kubernetes/issues/44954
Hi I want to work on this issue. Could you please assign it to me, it would be beneficial for my academics too. Thanks
@Ankurk99 I can work on this
Feel free to ask for any help here or on our slack
I was able to reproduce the bug. May i know where i can get the necessary files that i can modify to resolve the issue, i checked the whole repository. BTW i reproduced it on docker driver.
This discussion thread on k8s group makes it sufficiently clear that there is no way to get a cluster name using k8s client go APIs.
Our option is to allow the ability to pass the cluster-name as an option during installation and as part of config and the telemetry generator uses the name from there.
This should be applicable in the context of systemd mode of installation as well where cluster name could be used to refer to "instance groups" for example.
The point is, we simply pick the cluster name from the config entry and set it.
Tasks involved:
Extract cluster-name in kubearmor using client go API
General Information
To Reproduce
In output of karmor logs, the cluterName for each log is set to default
Expected behavior The log/alerts to have a valid cluster-name. For ex: in the attached screenshot, the cluster name is prod-cluster-onboarding. But it is set as default.
Screenshots