2022-10-10 08:21:17 -04:00
|
|
|
#!/usr/bin/env bash
|
2022-08-12 04:20:19 -04:00
|
|
|
|
2022-11-10 04:28:35 -05:00
|
|
|
set -euo pipefail
|
|
|
|
shopt -s inherit_errexit
|
|
|
|
|
|
|
|
calldir=$(pwd)
|
|
|
|
ciliumTmpDir=$(mktemp -d)
|
2022-11-18 04:05:02 -05:00
|
|
|
pushd "${ciliumTmpDir}"
|
|
|
|
git clone --filter=blob:none --no-checkout --sparse --depth 1 -b 1.12.1 https://github.com/cilium/cilium.git
|
|
|
|
pushd cilium
|
|
|
|
|
|
|
|
git sparse-checkout add install/kubernetes/cilium
|
|
|
|
git checkout
|
|
|
|
|
2022-11-10 04:28:35 -05:00
|
|
|
git apply "${calldir}"/cilium.patch
|
|
|
|
cp -r install/kubernetes/cilium "${calldir}"/charts
|
2022-11-18 04:05:02 -05:00
|
|
|
|
|
|
|
popd
|
|
|
|
popd
|
2022-11-10 04:28:35 -05:00
|
|
|
rm -r "${ciliumTmpDir}"
|