github.com/noironetworks/cilium-net@v1.6.12/contrib/packaging/docker/init-container.sh (about)

     1  #!/bin/sh
     2  
     3  # Check for CLEAN_CILIUM_BPF_STATE and CLEAN_CILIUM_STATE
     4  # is there for backwards compatibility as we've used those
     5  # two env vars in our old kubernetes yaml files.
     6  
     7  if [ "${CILIUM_BPF_STATE}" = "true" ] \
     8     || [ "${CLEAN_CILIUM_BPF_STATE}" = "true" ]; then
     9  	cilium cleanup -f --bpf-state
    10  fi
    11  
    12  if [ "${CILIUM_ALL_STATE}" = "true" ] \
    13      || [ "${CLEAN_CILIUM_STATE}" = "true" ]; then
    14  	cilium cleanup -f --all-state
    15  fi
    16  
    17  if [ "${CILIUM_WAIT_BPF_MOUNT}" = "true" ]; then
    18  	until mount | grep "/sys/fs/bpf type bpf"; do echo "BPF filesystem is not mounted yet"; sleep 1; done
    19  fi;