Support reusable replacements.yaml #5902
skissane-medallia
started this conversation in
Ideas
Replies: 1 comment
-
You can put your replacement in a resource of kind Component then include your Component in your overlays |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Use case: I have a
replacements.yaml
file. Its contents is the same for every overlay, and I manually duplicate it to each overlay, and then include it in each overlay'skustomize.yaml
using:I'd really like to create this file just once in the base.
I thought about using a symlink, but then I discovered kustomize rejects symlinks pointing outside of the overlay.
I thought about doing:
But that results in a very similar error message.
If I put the replacements.yaml in the base, it doesn't work properly, because it is pulling source values from the settings changed by other parts of the overlay's
kustomization.yaml
.So it looks like there isn't actually a solution here, I'm just forced to manually keep on copying this
replacements.yaml
file everywhere.Still, it would be great if
kustomize
could provide a better solution for this.Beta Was this translation helpful? Give feedback.
All reactions