https://github.com/cilium/cilium
Raw File
Tip revision: 792ad58f5a0776cad5688506a758f9bdb2475096 authored by Maciej Kwiek on 10 August 2023, 12:21:00 UTC
Prepare for release v1.13.6
Tip revision: 792ad58
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