Skip to content

Conversation

@Manik2708
Copy link
Contributor

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:

Screenshot from 2024-07-24 22-57-47

@daemon1024
Copy link
Member

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

@Manik2708
Copy link
Contributor Author

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!

Screenshot from 2024-07-25 14-38-02

@Aryan-sharma11
Copy link
Member

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!

Screenshot from 2024-07-25 14-38-02

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

@Manik2708
Copy link
Contributor Author

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!
Screenshot from 2024-07-25 14-38-02

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!

@Manik2708
Copy link
Contributor Author

@daemon1024 Please review

@Manik2708
Copy link
Contributor Author

@daemon1024 @Aryan-sharma11 Please review!

@Manik2708
Copy link
Contributor Author

@Aryan-sharma11 @daemon1024 Is this PR still relevant?

@daemon1024
Copy link
Member

Yes this is still relevant.

@daemon1024
Copy link
Member

Sorry, I am not sure how the earlier pings got missed

@Manik2708
Copy link
Contributor Author

No issues, we can restart the work!

@daemon1024
Copy link
Member

Let me try it locally, the changes look mostly great. Can you squash the commits meanwhile?

@Manik2708
Copy link
Contributor Author

Sorry for this, as this was very old PR, cleaning this PR

@daemon1024
Copy link
Member

Please don't apologise, our fault for not reviewing it for long.
Take your time, Always appreciate your contribution

Signed-off-by: Manik2708 <[email protected]>
@Manik2708
Copy link
Contributor Author

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)

@Aryan-sharma11
Copy link
Member

Aryan-sharma11 commented Jan 18, 2025

@Manik2708 kindly share the final screenshots of the implementation

@Manik2708
Copy link
Contributor Author

@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!

Signed-off-by: Manik2708 <[email protected]>
@Manik2708
Copy link
Contributor Author

Sorry for being late, this is the screenshot for latest pull:
Screenshot from 2025-02-19 04-58-01

@Manik2708
Copy link
Contributor Author

@Aryan-sharma11 @daemon1024 Please review

@Aryan-sharma11
Copy link
Member

Aryan-sharma11 commented Feb 28, 2025

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

@Manik2708
Copy link
Contributor Author

Manik2708 commented Feb 28, 2025

image image @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!

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.

Show current status of daemonset in karmor install

3 participants