[Phase 0] flux: add postBuild.substituteFrom for grafana-admin secret (#97) #99
Reference in New Issue
Block a user
Delete Branch "feature/issue-97-flux-postbuild-substitutefrom"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds
postBuild.substituteFromtoflux/api-company-source/kustomization.yamlso that the Flux Kustomization injects thegrafana-adminsecret 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: addsspec.postBuild.substituteFromreferencinggrafana-adminSecret withoptional: falseflux/api-company/, nowflux/api-company-source/)Next steps
The live copy in
0xWheatyz/Talosattesting1/first-cluster/cluster/flux/api-company-source/kustomization.yamlmust also be updated with the same block (companion to issue #90 Talos PR).Closes leeworks-agents/api-company#97
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