ae679ab587
Keep local/default terragrunt runs pointed at the real public URL; set the goauthentik#954 ClusterIP workaround via TF_VAR_authentik_url in the CI environment blocks instead of as a terragrunt input.
25 lines
944 B
YAML
25 lines
944 B
YAML
when:
|
|
- event: pull_request
|
|
|
|
steps:
|
|
- name: plan
|
|
image: git.unkin.net/unkin/almalinux9-opentofu:20260606
|
|
environment:
|
|
VAULT_AUTH_METHOD: kubernetes
|
|
VAULT_VERSION: "1.20.0"
|
|
# ClusterIP + sessionAffinity pins CI to one replica (goauthentik#954).
|
|
TF_VAR_authentik_url: http://authentik-server.authentik.svc.cluster.local
|
|
commands:
|
|
- curl -fsSL -o /tmp/vault.zip "https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/hashicorp-releases/vault/$${VAULT_VERSION}/vault_$${VAULT_VERSION}_linux_amd64.zip" && python3 -m zipfile -e /tmp/vault.zip /tmp/ && install -m0755 /tmp/vault /usr/local/bin/vault && rm -f /tmp/vault.zip /tmp/vault /tmp/LICENSE.txt
|
|
- make plan
|
|
backend_options:
|
|
kubernetes:
|
|
serviceAccountName: terraform-authentik
|
|
resources:
|
|
requests:
|
|
memory: 512Mi
|
|
cpu: 1
|
|
limits:
|
|
memory: 2Gi
|
|
cpu: 2
|