Skip to content

Commit 2e900bc

Browse files
committed
fix(cluster): replace InventTree setup job with env var SSO config
InvenTree supports INVENTREE_* env vars as setting overrides — no need for a Job that polls the API. Adds INVENTREE_LOGIN_ENABLE_SSO and INVENTREE_LOGIN_ENABLE_SSO_REG to HelmRelease env, deletes setup-job.yaml. Also adds nix cache initialization TODO to plan.md.
1 parent 166dcb0 commit 2e900bc

File tree

4 files changed

+13
-64
lines changed

4 files changed

+13
-64
lines changed

cluster/docs/plan.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ are not found"`. Added `kubectl wait --for=condition=Established` before Cilium
104104
- [ ] **Gatus: remove direct HTTPRoute** — Once Authentik proxy outpost is confirmed working,
105105
remove the direct HTTPRoute from `k8s/gatus/` (proxy route in `authentik-proxy-routes/`
106106
takes over)
107+
- [ ] **Nix cache: initialize Attic cache** — Attic server is running but has no caches
108+
created (empty `cache` table). `cache.allegedly.works/nix-cache-info` returns 404
109+
because Attic serves that endpoint per-cache at `/<name>/nix-cache-info`. Fix: run
110+
`atticadm make-token` to generate an admin JWT, then `attic cache create main` and
111+
`attic cache configure main --public`. Either add an init Job to the chart/kustomization
112+
or run interactively once. The `atticadm` binary may not be in the current image
113+
(`ghcr.io/zhaofengli/attic:latest`) — check and potentially use a different tag or
114+
generate the token from the JWT secret directly. Gatus probe should use
115+
`cache.allegedly.works/main/nix-cache-info` once cache exists.
107116
- [ ] **Deploy headscale**, test with a device
108117
- [ ] **OpenClaw: eliminate one-time token entry** — currently the user must retrieve
109118
the auto-generated gateway token (`kubectl get secret openclaw-gateway-token ...`)

cluster/k8s/applications/inventree/helmrelease.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,12 @@ spec:
6767
plugins:
6868
enabled: true
6969

70-
# Auto-enable rai_plugin without requiring a UI toggle.
71-
# INVENTREE_PLUGINS_MANDATORY makes the plugin always active (like builtin mandatory plugins).
7270
env:
71+
# Auto-enable rai_plugin (always active, like builtin mandatory plugins)
7372
INVENTREE_PLUGINS_MANDATORY: "raiplugin"
73+
# SSO settings (env vars override DB, read-only in UI)
74+
INVENTREE_LOGIN_ENABLE_SSO: "true"
75+
INVENTREE_LOGIN_ENABLE_SSO_REG: "true"
7476

7577
# Pin server to Proxmox nodes (PVE)
7678
nodeSelector:

cluster/k8s/applications/inventree/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ resources:
55
- postgres-service.yaml
66
- helmrelease.yaml
77
- httproute.yaml
8-
- setup-job.yaml

cluster/k8s/applications/inventree/setup-job.yaml

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)