We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb6461f commit 5321758Copy full SHA for 5321758
check_kubernetes.sh
@@ -164,10 +164,10 @@ mode_apicert() {
164
echo "APICERT expires in $d days"
165
if [ "$d" -gt "$WARN" ]; then
166
echo "APICERT is OK"
167
- elif [ $d -le $WARN ] && [ $d -gt $CRIT ]; then
+ elif [ "$d" -le "$WARN" ] && [ $d -gt "$CRIT" ]; then
168
echo "APICERT is in WARN"
169
EXITCODE=1
170
- elif [ $d -le $CRIT ]; then
+ elif [ "$d" -le "$CRIT" ]; then
171
echo "APICERT is in CRIT"
172
EXITCODE=2
173
fi
0 commit comments