You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is cool but it would be nice if it is not in this state for the output error message to output what state it is in:
imagePullBackoff
pending
CrashLoopBackOff
Error
etc
For example...given this input config:
- ttype: podChecksname: Checks that the pod is in a running statedescription: Allows you to check for various aspects of a podnamespace: hos-m2# Input values for this specific checkvalues:
checksEnabled:
state:
# The pod name to act on. This is a regex field.
- podName: healthapp-caregaps-*desiredState: Running
- podName: healthapp-caregaps-*desiredState: CrashLoopBackOff
- podName: foodesiredState: CrashLoopBackOff
The output is:
+------------------+-----------------------------------------+--------+------------------------------------------------------------------------------------------+
| podChecks | Checks for various aspects of a service | false | * Pod healthapp-caregaps-697d57788b-86j8c is in Running state |
| | | | |
| | | | * Pod healthapp-caregaps-697d57788b-86j8c is NOT in CrashLoopBackOff state |
| | | | |
| | | | * Did not find pod: foo |
| | | | |
| | | | |
+------------------+-----------------------------------------+--------+------------------------------------------------------------------------------------------+
We are able to check for a certain state of a pod per this check: https://github.com/anthem-ai/kubernetes-state-checker/blob/main/conf.sample.yaml#L72
That is cool but it would be nice if it is not in this state for the output error message to output what state it is in:
For example...given this input config:
The output is:
For the second check:
The output message should be more descriptive...like what state did it find it in.
The text was updated successfully, but these errors were encountered: