Add a way to provide default vars layer for libraries? #1037
Closed
funbiscuit
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
Can you check if https://kluctl.io/docs/kluctl/templating/variable-sources/#nooverride already solves your requirement? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Closing as proposed feature already exists |
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
-
Currently if we include kluctl library in our deployment, we can provide some vars. Like so (for example assume library is somewhere locally):
Contents of
lib-values.yml
:And assume in library deployment we have something like this:
Contents of
defaults.yml
:Since
defaults.yml
is included later, it will overwrite all values that we passed to library. Which makes vars field somewhat useless. I know that args is preferred way to work with libraries, but it would be very great to provide vars and overwrite anything that is present in library deployments. Since libraries are meant to be used outside and we should be able to overwrite their configuration.Maybe we could add
vars
on library level? And then all passed vars will overwrite them. Or some other way to include vars in library with lowest priority so passed vars will overwrite them.So this is more like a feature request, but I wanted to ask what do you think before opening actual issue.
Beta Was this translation helpful? Give feedback.
All reactions