Files
cilium-kubernetes/render.sh
T
feedc0de f5117b5088
Validate and deploy Cilium / Render and validate (push) Successful in 16s
Validate and deploy Cilium / Deploy to Kubernetes (push) Successful in 1m38s
Introduce CI for this Repo too
2026-09-04 16:07:26 +02:00

29 lines
837 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
project_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
cilium_version=${CILIUM_VERSION:-1.20.0}
cilium_chart_sha256=${CILIUM_CHART_SHA256:-c5f013912360d1a334f44ef25f36da59ba3414cdb48f466ee12d0c4fdff27883}
output=${1:?Usage: render.sh OUTPUT_FILE}
for command in curl helm sha256sum; do
if ! command -v "${command}" >/dev/null 2>&1; then
echo "Required command not found: ${command}" >&2
exit 1
fi
done
chart=$(mktemp)
trap 'rm -f "${chart}"' EXIT
curl --fail --silent --show-error --location \
--output "${chart}" \
"https://helm.cilium.io/cilium-${cilium_version}.tgz"
printf '%s %s\n' "${cilium_chart_sha256}" "${chart}" | sha256sum --check >&2
helm template cilium "${chart}" \
--namespace kube-system \
--values "${project_dir}/values.yaml" \
> "${output}"