k3s/scripts/symlink-k8s.sh

17 lines
344 B
Bash
Raw Normal View History

2019-01-01 08:23:01 +00:00
#!/bin/bash
if [ ! -d $1/staging/src/k8s.io ]; then
echo Kubernetes source not found at $1
exit 1
fi
cd $(dirname $0)/../vendor/k8s.io
for i in $1/staging/src/k8s.io/*; do
rm -rf $(basename $i)
ln -s $i .
done
rm -rf kubernetes
mkdir -p kubernetes
cd kubernetes
2019-01-26 04:56:20 +00:00
ln -s $1/{cmd,pkg,plugin,third_party,openapi.json,openapi.pb} .