mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
17 lines
344 B
Bash
Executable File
17 lines
344 B
Bash
Executable File
#!/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
|
|
ln -s $1/{cmd,pkg,plugin,third_party,openapi.json,openapi.pb} .
|