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
|
2023-03-29 07:58:37 -04:00
|
|
|
set -o errtrace
|
2022-11-10 04:28:35 -05:00
|
|
|
shopt -s inherit_errexit
|
|
|
|
|
2023-03-29 07:58:37 -04:00
|
|
|
echo "Pulling Cilium Helm chart..."
|
|
|
|
|
|
|
|
function cleanup {
|
|
|
|
rm -r "${ciliumTmpDir}"
|
|
|
|
}
|
|
|
|
|
|
|
|
trap cleanup EXIT
|
|
|
|
|
2022-11-10 04:28:35 -05:00
|
|
|
calldir=$(pwd)
|
|
|
|
ciliumTmpDir=$(mktemp -d)
|
2023-03-29 07:58:37 -04:00
|
|
|
cd "${ciliumTmpDir}"
|
|
|
|
|
|
|
|
git clone \
|
|
|
|
--filter=blob:none \
|
|
|
|
--no-checkout \
|
|
|
|
--sparse \
|
|
|
|
--depth 1 \
|
2023-10-16 13:14:53 -04:00
|
|
|
-b 1.15.0-pre.2 \
|
2023-03-29 07:58:37 -04:00
|
|
|
https://github.com/cilium/cilium.git
|
|
|
|
cd cilium
|
2022-11-18 04:05:02 -05:00
|
|
|
|
|
|
|
git sparse-checkout add install/kubernetes/cilium
|
|
|
|
git checkout
|
|
|
|
|
2023-03-29 07:58:37 -04:00
|
|
|
git apply "${calldir}/cilium.patch"
|
|
|
|
cp -r install/kubernetes/cilium "${calldir}/charts"
|
2022-11-18 04:05:02 -05:00
|
|
|
|
2023-03-29 07:58:37 -04:00
|
|
|
echo # final newline
|