weizhouapache commented on code in PR #14773:
URL: https://github.com/apache/cloudstack/pull/14773#discussion_r4660141325
##########
plugins/integrations/kubernetes-service/src/main/resources/script/validate-cks-node:
##########
@@ -36,10 +36,16 @@ else
done
fi
+if [[ $(cat /proc/sys/net/ipv4/ip_forward 2>/dev/null) != "1" ]]; then
+ echo "net.ipv4.ip_forward is not set to 1 on the node"
+ IP_FORWARD_DISABLED=1
+fi
+
echo ${#MISSING_PACKAGES[@]}
if (( ${#MISSING_PACKAGES[@]} )); then
echo "Following packages are missing in the node template:
${MISSING_PACKAGES[@]}"
exit 1
else
echo 0
+ exit ${IP_FORWARD_DISABLED:-0}
Review Comment:
this is ok.
but if there are more checks in the future, this is not a good way.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]