#!/usr/bin/env bash set -euo pipefail project_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd) version=${AUTHENTIK_CHART_VERSION:-2026.8.3} output=${1:?Usage: render.sh OUTPUT_FILE} chart=$(mktemp); trap 'rm -f "${chart}"' EXIT curl -fsSL -o "${chart}" "https://github.com/goauthentik/helm/releases/download/authentik-${version}/authentik-${version}.tgz" helm template authentik "${chart}" --namespace authentik --values "${project_dir}/values.yaml" > "${output}"