Reusing fieldSpecs accross transformers in overlays #6112
Replies: 1 comment
-
|
Ok, so I ended up with somehow hacky way to do this. The basic idea is to have a separate kustomize build for the transformers that fed into the main kustomize build. Let me explain: in and in the overlays patch like So now when I need to generate the yamls I need to do it in two steps. First generate transformers for given overlay:
Second generate the actual yamls
Hacky, but it works and avoids duplication in the transformers. Feels like it should be better way of doing this..... |
Beta Was this translation helpful? Give feedback.
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 the following directory structure:
root/overlays/development/transformers/envSuffixer.yaml and
root/overlays/acceptance/transformers/envSuffixer.yaml are almost identical:
Is there any way I can get rid of the duplication between those transfomers? Can I somehow reuse at least the fieldSpecs? Or structure things differently so that this reuse is possible?
Beta Was this translation helpful? Give feedback.
All reactions