mirror of
https://github.com/allaunthefox/SilverSight.git
synced 2026-07-30 17:16:16 +00:00
fix(webhook): configure in-cluster service account authentication and remove KUBECONFIG dependency
This commit is contained in:
parent
b40dd896bb
commit
69a8176538
2 changed files with 2 additions and 5 deletions
|
|
@ -9,7 +9,6 @@ fi
|
|||
|
||||
export SOPS_AGE_KEY_FILE="/secrets/age.agekey"
|
||||
SECRETS_DIR="/repos/SilverSight/infra/secrets"
|
||||
KUBECONFIG="/etc/rancher/k3s/k3s.yaml"
|
||||
|
||||
log() { echo "[$(date -u +%H:%M:%S)] $*"; }
|
||||
|
||||
|
|
@ -27,7 +26,7 @@ case "$REPO" in
|
|||
log "Deploying Homarr..."
|
||||
sops --decrypt --output-type yaml "$SECRETS_DIR/homarr-values.enc.yaml" > /tmp/homarr-values.yaml
|
||||
helm upgrade --install homarr oci://ghcr.io/homarr-labs/charts/homarr \
|
||||
--namespace homarr --kubeconfig "$KUBECONFIG" \
|
||||
--namespace homarr \
|
||||
-f /tmp/homarr-values.yaml --wait --timeout 4m
|
||||
rm -f /tmp/homarr-values.yaml
|
||||
log "Homarr deployed ✅"
|
||||
|
|
@ -38,7 +37,7 @@ case "$REPO" in
|
|||
log "Deploying Authentik..."
|
||||
sops --decrypt --output-type yaml "$SECRETS_DIR/authentik-values.enc.yaml" > /tmp/authentik-values.yaml
|
||||
helm upgrade --install authentik oci://ghcr.io/goauthentik/helm-charts/authentik \
|
||||
--namespace authentik --kubeconfig "$KUBECONFIG" \
|
||||
--namespace authentik \
|
||||
-f /tmp/authentik-values.yaml --wait --timeout 8m
|
||||
rm -f /tmp/authentik-values.yaml
|
||||
log "Authentik deployed ✅"
|
||||
|
|
|
|||
|
|
@ -45,8 +45,6 @@ spec:
|
|||
key: webhook-secret
|
||||
- name: SOPS_AGE_KEY_FILE
|
||||
value: /secrets/age.agekey
|
||||
- name: KUBECONFIG
|
||||
value: /etc/rancher/k3s/k3s.yaml
|
||||
volumeMounts:
|
||||
- name: hooks-config
|
||||
mountPath: /config
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue