constellation/cli/internal/helm/generateCilium.sh

14 lines
336 B
Bash
Raw Normal View History

2022-10-10 08:21:17 -04:00
#!/usr/bin/env bash
2022-08-12 04:20:19 -04:00
set -euo pipefail
shopt -s inherit_errexit
calldir=$(pwd)
ciliumTmpDir=$(mktemp -d)
cd "${ciliumTmpDir}" || exit 1
git clone --depth 1 -b 1.12.1 https://github.com/cilium/cilium.git
cd cilium || exit 1
git apply "${calldir}"/cilium.patch
cp -r install/kubernetes/cilium "${calldir}"/charts
rm -r "${ciliumTmpDir}"