Support for kustomize vars/replacements source logic in postBuild #5621
Unanswered
aclerici38
asked this question in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a lot of flux kustomizations with the same entries in postBuild.substitute, like so
I could use kustomize replacements (or deprecated vars) to somewhat standardize adding this but both only accept a single source, so that would require a kubernetes kustomization for each flux kustomization which is not how my repo is structured.
I believe a good solution is for postBuild to support the same source-from-a-built-resource logic kustomize uses. The example above would become something like
And could obviously be extended to other resources built by the flux kustomization
This could easily be patched in, preventing the repetitive stanzas.
Using postBuild's var substiturion here would also work around an issue with replacements when there is no common delimiter kubernetes-sigs/kustomize#5616.
Caveats I can think of:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions