Skip to content

Commit

Permalink
put output for labelling and tainting
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtigyro committed Oct 21, 2020
1 parent a4f83d0 commit 1fcbef7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kindadm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ if [[ "$COEFFICIENT_LABEL" != 'false' ]]; then
for ((i=1;i<="$NO_NODES_LABELLED";i++)); do
"$EXEC_DIR"/kubectl label node "${CLUSTER_WRKS[(i-1)]}" "$NODE_LABEL" >/dev/null 2>&1
done
echo -e "\n${LIGHT_GREEN}\u2713${NC} Cluster nodes - ${LIGHT_GREEN}labelled${NC}.\n"
fi

# Taint nodes with "NoExecute"
Expand All @@ -304,6 +305,7 @@ if [[ "$COEFFICIENT_TAINT" != 'false' ]]; then
"$EXEC_DIR"/kubectl taint node "${CLUSTER_WRKS[(i-1)]}" "$NODE_TAINT_LABEL":NoExecute >/dev/null 2>&1
fi
done
echo -e "\n${LIGHT_GREEN}\u2713${NC} Cluster nodes - ${LIGHT_GREEN}tainted${NC}.\n"
fi

if [[ "$REG_CFG" != 'false' ]]; then
Expand Down

0 comments on commit 1fcbef7

Please sign in to comment.