Skip to content

Commit 73723cf

Browse files
committed
One-line output for nodes
1 parent aad9bc5 commit 73723cf

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="ERROR. ${OUTPUT}Node $node not ready\n"
167+
OUTPUT="${OUTPUT}Node $node not ready. "
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="WARN. ${OUTPUT} $node $condition\n"
175+
OUTPUT="${OUTPUT}$node $condition. "
176176
fi
177177
done
178178
done

0 commit comments

Comments
 (0)