Is it possible to configure postBuild to disable variable substitution by default? #1266
-
|
Hi, we are using kustomization's postBuild feature to configure sub resources with variables. Some of our resources contain similar syntax embedded in string literals that we do not want substituted. We have the ability to go through the resources that have this problem and setting the substitute annotation to "false" and this works well for us. However I think I would prefer if the substitute behavior would default to disabled and then enable it where necessary. Is it possible to configure postBuild to disable variable substitution by default? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
From docs https://toolkit.fluxcd.io/components/kustomize/kustomization/#variable-substitution
|
Beta Was this translation helpful? Give feedback.
-
|
just came across this discussion and i'm wondering how i'm currently facing a similar issue where i want to deploy grafana alerts and dashboard with the same kustomization. yes i can disable it for dashboards and looks like this is working. but we have a couple of other kustomizations where at some point substitution would be useful but thats only a very small portion in this kustomization so configuring the variables and disable it by default would be great to have more control where substitution is going to happen and where not. so i would like to vote again for "disable by default" and "enable on specific kustomization/resource" thanks |
Beta Was this translation helpful? Give feedback.
From docs https://toolkit.fluxcd.io/components/kustomize/kustomization/#variable-substitution