https://github.com/cilium/cilium
Raw File
Tip revision: 87dd2b644528d8a8f74e041a64ee2bed85ce5605 authored by Tim Horner on 09 November 2023, 20:02:52 UTC
Prepare for release v1.14.4
Tip revision: 87dd2b6
init-container.sh
#!/bin/sh

# Check for CLEAN_CILIUM_BPF_STATE and CLEAN_CILIUM_STATE
# is there for backwards compatibility as we've used those
# two env vars in our old kubernetes yaml files.

if [ "${CILIUM_BPF_STATE}" = "true" ] \
   || [ "${CLEAN_CILIUM_BPF_STATE}" = "true" ]; then
	cilium cleanup -f --bpf-state
fi

if [ "${CILIUM_ALL_STATE}" = "true" ] \
    || [ "${CLEAN_CILIUM_STATE}" = "true" ]; then
	cilium cleanup -f --all-state
fi
back to top