How to generate secrets into multiple namespaces? (without .flux.yaml) #872
-
Problem While flux v2 mostly brought improvements, it discarded the ability to run arbitrary shell commands as generators via flux.yaml. Current solution (Flux 1) .flux.yaml version: 1
commandUpdated:
generators:
- command: bash certificates/emit-tls-certs.sh
- command: bash registries/emit-registries.sh The bash scripts read a list of target namespaces and generate secretes into all of them. Solution for Flux 2? The question is how to solve this with flux v2 / kustomize? What is the kustomize way to do this? I'd like to avoid bringing in yet another tool such as kubed for such a basic task. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Place your secret in a base dir, then include it in the overlays that contain a namespace. |
Beta Was this translation helpful? Give feedback.
Place your secret in a base dir, then include it in the overlays that contain a namespace.