How to use the generated ConfigMap's suffix? #1436
-
|
Following the guide, I am using the Kustomize Controller to load a Is it possible to get Flux to automatically update the I can of course disable the suffix entirely: generatorOptions:
disableNameSuffixHash: trueBut since the guide includes it, I wondered if there is a way to automatically update it :) |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Yes that’s what the guide shows you, check out the |
Beta Was this translation helpful? Give feedback.
-
|
@gerryfletch @stefanprodan I can't figure this out :-( I am also using "disableNameSuffixHash" for it to work. Am I missing something ? I couldn't get it to us the suffix either. I also checked the guide. Any ideas ? |
Beta Was this translation helpful? Give feedback.
-
|
Here is what I am using in my release but without the following in the kustomization.yml then it fails saying can't find configmap For clarity, here is my configMapGenerator |
Beta Was this translation helpful? Give feedback.
-
|
I've created an example of using generated configmaps and secrets (with hash suffix) in a flux helmrelease valuesFrom. https://github.com/lancerushing/flux-helmrelease-with-generated-configmap There is ---
## Let Kustomize know how replace the nameReferences
nameReference:
- kind: ConfigMap
version: v1
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease
- kind: Secret
version: v1
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease |
Beta Was this translation helpful? Give feedback.
-
|
Starting with Flux 2.7, you no longer have to use kustomize generators to trigger a HelmRelease upgrade. If you label the ConfigMaps/Secrets with |
Beta Was this translation helpful? Give feedback.
Starting with Flux 2.7, you no longer have to use kustomize generators to trigger a HelmRelease upgrade. If you label the ConfigMaps/Secrets with
reconcile.fluxcd.io/watch: Enabled, helm-controller will automatically run an upgrade when avaluesFromobject changes.Docs here: https://fluxcd.io/flux/components/helm/helmreleases/#reacting-immediately-to-configuration-dependencies