kubearmor-client
kubearmor-client copied to clipboard
Fix: Show current status of daemonset in karmor install
Fixes: #443
This change will now show the status of pods. The only doubt is what to do in Pending state of pod? Currently it will wait for the pod to be Running or Failed. If Pod is running but container is not (due to CrashLoopBackOff or something else) it will mark pod as not running and show the reason and break the loop! Please see this for reference:
Thanks for the quick PR. There's no point of having the Verifiying logic run if the pod is in CrashLoopBackOff. We should skip that check if the Pod is not running
Thanks for the quick PR. There's no point of having the Verifiying logic run if the pod is in CrashLoopBackOff. We should skip that check if the Pod is not running
Done!
Thanks for the quick PR. There's no point of having the Verifiying logic run if the pod is in CrashLoopBackOff. We should skip that check if the Pod is not running
Done!
The output should be something like in following order if pod.status == runinng { print(" verifying kubearmor functionality") } else { print(" failed to verify kubearmor functionality, kubearmor daemonset failed to start" , pod. status.reason) } cc: @daemon1024
Thanks for the quick PR. There's no point of having the Verifiying logic run if the pod is in CrashLoopBackOff. We should skip that check if the Pod is not running
Done!
The output should be something like in following order if pod.status == runinng { print(" verifying kubearmor functionality") } else { print(" failed to verify kubearmor functionality, kubearmor daemonset failed to start" , pod. status.reason) } cc: @daemon1024
Resolved!
@daemon1024 Please review
@daemon1024 @Aryan-sharma11 Please review!
@Aryan-sharma11 @daemon1024 Is this PR still relevant?
Yes this is still relevant.
Sorry, I am not sure how the earlier pings got missed
No issues, we can restart the work!
Let me try it locally, the changes look mostly great. Can you squash the commits meanwhile?
Sorry for this, as this was very old PR, cleaning this PR
Please don't apologise, our fault for not reviewing it for long. Take your time, Always appreciate your contribution
Please don't apologise, our fault for not reviewing it for long. Take your time, Always appreciate your contribution
Thanks for your time, have cleaned this PR. Please see if it is ready to merge. To test it you might have to create a situation where pods are in some error or waiting state (probably by increasing the load and reducing the available resources for the pods)
@Manik2708 kindly share the final screenshots of the implementation
@Manik2708 kindly share the final screenshots of the implementation
Sorry for late reply, was caught up in some work! I would need some time as I have to recreate the environment in order to fail the containers!
Sorry for being late, this is the screenshot for latest pull:
@Aryan-sharma11 @daemon1024 Please review
@Manik2708, getting this log when kubearmor image doesn't exist.
Also, if no pods are found why are we verifying the functionality?
![]()
@Manik2708, getting this log when kubearmor image doesn't exist. Also, if no pods are found why are we verifying the functionality?
Ok, will look into it and get back to you!

@Manik2708, getting this log when kubearmor image doesn't exist. Also, if no pods are found why are we verifying the functionality?