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 4320362 commit f0d0a6bCopy full SHA for f0d0a6b
check_kubernetes.sh
@@ -164,15 +164,15 @@ mode_nodes() {
164
.status")"
165
if [ "$ready" != True ]; then
166
EXITCODE=2
167
- OUTPUT="${OUTPUT}Node $node not ready. "
+ OUTPUT="ERROR. ${OUTPUT}Node $node not ready\n"
168
fi
169
for condition in OutOfDisk MemoryPressure DiskPressure; do
170
state="$(echo "$data" | jq -r ".items[] | select(.metadata.name==\"$node\") | \
171
.status.conditions[] | select(.type==\"$condition\") | \
172
173
if [ "$state" = True ]; then
174
[ $EXITCODE -lt 1 ] && EXITCODE=1
175
- OUTPUT="${OUTPUT} $node $condition. "
+ OUTPUT="WARN. ${OUTPUT} $node $condition\n"
176
177
done
178
0 commit comments