aboutsummaryrefslogtreecommitdiffstats
path: root/tools/k8s/cluster-deployment/uscni/entrypoint.sh
blob: 0658f1503a924755b729ee9f61d97904dee4dc24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Always exit on errors.
set -e

# Check if /opt/cni/bin directory exists
if [ ! -d "/host/opt/cni/bin" ]
then
    echo "Directory /opt/cni/bin/ does not exists."
    exit 1;
fi

# Copy cni-plugin on host machine
cp -f /userspace /host/opt/cni/bin/

# Sleep for 50 years.
# sleep infinity is not available in alpine;
sleep 2147483647