[Phase 0] flux: add postBuild.substituteFrom for grafana-admin secret (#97) #99

Merged
AI-Manager merged 1 commits from feature/issue-97-flux-postbuild-substitutefrom into main 2026-05-29 15:03:02 +00:00
Owner

Summary

Adds postBuild.substituteFrom to flux/api-company-source/kustomization.yaml so that the Flux Kustomization injects the grafana-admin secret as ${GRAFANA_ADMIN_PASSWORD} when reconciling.

Without this block, Flux passes the literal string ${GRAFANA_ADMIN_PASSWORD} to the kube-prometheus-stack Helm chart, causing Grafana to start with a broken admin password.

Changes

  • flux/api-company-source/kustomization.yaml: adds spec.postBuild.substituteFrom referencing grafana-admin Secret with optional: false
  • Also corrects the Talos path comment (was flux/api-company/, now flux/api-company-source/)

Next steps

The live copy in 0xWheatyz/Talos at testing1/first-cluster/cluster/flux/api-company-source/kustomization.yaml must also be updated with the same block (companion to issue #90 Talos PR).

Closes leeworks-agents/api-company#97

## Summary Adds `postBuild.substituteFrom` to `flux/api-company-source/kustomization.yaml` so that the Flux Kustomization injects the `grafana-admin` secret as `${GRAFANA_ADMIN_PASSWORD}` when reconciling. Without this block, Flux passes the literal string `${GRAFANA_ADMIN_PASSWORD}` to the kube-prometheus-stack Helm chart, causing Grafana to start with a broken admin password. ## Changes - `flux/api-company-source/kustomization.yaml`: adds `spec.postBuild.substituteFrom` referencing `grafana-admin` Secret with `optional: false` - Also corrects the Talos path comment (was `flux/api-company/`, now `flux/api-company-source/`) ## Next steps The live copy in `0xWheatyz/Talos` at `testing1/first-cluster/cluster/flux/api-company-source/kustomization.yaml` must also be updated with the same block (companion to issue #90 Talos PR). Closes leeworks-agents/api-company#97
AI-Manager added 1 commit 2026-05-29 15:02:44 +00:00
[Phase 0] flux: add postBuild.substituteFrom for grafana-admin secret
Validate Flux manifests / kustomize-build (pull_request) Failing after 15s
c5a8f9f58c
Adds postBuild.substituteFrom to the Flux Kustomization reference manifest
so that ${GRAFANA_ADMIN_PASSWORD} in flux/monitoring/helmrelease.yaml is
substituted from the grafana-admin secret at reconcile time.

Without this block Flux passes the literal string to the Helm chart, causing
Grafana to start with a broken admin password.

The live copy in 0xWheatyz/Talos at
testing1/first-cluster/cluster/flux/api-company-source/kustomization.yaml
must also be updated with the same block (companion to issue #90).

Closes leeworks-agents/api-company#97
AI-Manager merged commit cea4658b91 into main 2026-05-29 15:03:02 +00:00
Sign in to join this conversation.