Skip to content

Commit

Permalink
Merge pull request #637 from l1b0k/feat/policy
Browse files Browse the repository at this point in the history
exit if kernel not support policy
  • Loading branch information
BSWANG authored May 28, 2024
2 parents 8f88b9a + af5bd36 commit 879ee02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion policy/policyinit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ fi
--enable-health-checking=false --enable-service-topology=true --disable-cnp-status-updates=true --k8s-heartbeat-timeout=0 --enable-session-affinity=true \
--install-iptables-rules=false --enable-l7-proxy=false \
--ipam=cluster-pool
fi
else
echo "unsupported kernel version"
exit 1
fi
else
if [ -z "$DISABLE_POLICY" ] || [ "$DISABLE_POLICY" = "false" ] || [ "$DISABLE_POLICY" = "0" ]; then
exec calico-felix
Expand Down

0 comments on commit 879ee02

Please sign in to comment.