Closed
Description
https://toolkit.fluxcd.io/guides/flux-v1-migration/ gives instructions for migrating a Flux v1 installation to Flux v2, if you are either syncing plain YAMLs, or using .flux.yaml to run kustomize. There is a constituency of people who use .flux.yaml to run things other than kustomize -- e.g., envsubst. It would be good to give those people a plausible path to migrate.
The key bit will be to have something runs an arbitrary command, and can be hooked up to GOTK controllers. Tekton and GitHub Actions spring to mind, and have different strengths.
- Try to find (from the community) some examples of
.flux.yamlwithout kustomize. We know some people wanted to use it with envsubst, so that might be a decent example to start with, albeit fairly simple. - Make worked examples for your chosen technologies from above -- e.g., construct a Tekton pipeline that is triggered by new commits, runs envsubst, and stashes the result somewhere for kustomize-controller to pick up.
- Generalise the examples into guides -- perhaps one for each of the technologies -- showing how to migrate from a Flux v1 configuration using .flux.yaml, to Flux v2 plus the pipeline-running technology.