c5a8f9f58c
Validate Flux manifests / kustomize-build (pull_request) Failing after 15s
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
26 lines
588 B
YAML
26 lines
588 B
YAML
# This manifest is FOR REFERENCE — the live version must be committed to
|
|
# 0xWheatyz/Talos at testing1/first-cluster/cluster/flux/api-company-source/
|
|
#
|
|
# See leeworks-agents/api-company#2
|
|
# See leeworks-agents/api-company#97
|
|
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: api-company
|
|
namespace: flux-system
|
|
spec:
|
|
interval: 5m
|
|
sourceRef:
|
|
kind: GitRepository
|
|
name: api-company
|
|
path: ./flux
|
|
prune: true
|
|
wait: true
|
|
timeout: 5m
|
|
postBuild:
|
|
substituteFrom:
|
|
- kind: Secret
|
|
name: grafana-admin
|
|
optional: false
|