The better way to get the print date/time is by setting the BuildDate as var as part of the Makefile and then using it in the code. Check how the discovery-engine handles the setting of BuildDate and other aspects from its Makefile and then subsequently uses the vars in the code.
General Information
Environment description (GKE, VM-Kubeadm, vagrant-dev-env, minikube, microk8s, ...)
All environments
Kernel version (run uname -a)
Any
Orchestration system version in use (e.g. kubectl version, ...)
Any
To Reproduce
Run kubearmor as k8s pod
Check the kubearmor logs
Expected behavior
The build time should be the time when the container image was built.
Bug Report
On kubearmor startup, the kubearmor is printing the build time.
However, the build time is printing the creation time of kubearmor binary which is not the same as build time.
The better way to get the print date/time is by setting the BuildDate as var as part of the Makefile and then using it in the code. Check how the discovery-engine handles the setting of BuildDate and other aspects from its Makefile and then subsequently uses the vars in the code.
General Information
uname -a
) Anykubectl version
, ...) AnyTo Reproduce
Expected behavior
The build time should be the time when the container image was built.