Skip to content

Commit f0d0a6b

Browse files
committed
improve messages
1 parent 4320362 commit f0d0a6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check_kubernetes.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,15 @@ mode_nodes() {
164164
.status")"
165165
if [ "$ready" != True ]; then
166166
EXITCODE=2
167-
OUTPUT="${OUTPUT}Node $node not ready. "
167+
OUTPUT="ERROR. ${OUTPUT}Node $node not ready\n"
168168
fi
169169
for condition in OutOfDisk MemoryPressure DiskPressure; do
170170
state="$(echo "$data" | jq -r ".items[] | select(.metadata.name==\"$node\") | \
171171
.status.conditions[] | select(.type==\"$condition\") | \
172172
.status")"
173173
if [ "$state" = True ]; then
174174
[ $EXITCODE -lt 1 ] && EXITCODE=1
175-
OUTPUT="${OUTPUT} $node $condition. "
175+
OUTPUT="WARN. ${OUTPUT} $node $condition\n"
176176
fi
177177
done
178178
done

0 commit comments

Comments
 (0)