You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to provide a useful error when someone runs kluctl deploy on a repository but my discriminator expects that a target will be set.
Why do you need that?
With .kluctl.yaml containing:
discriminator: "example-{{ target.name }}"
Just running kluctl deploy results in invalid kubernetes objects. This is essentially a config issue on my end (example- is not a valid object and I'm running it wrongly).
But having a way to kick out an error to the user saying "select from the list of valid targets" when I know it is required would be handy.
The text was updated successfully, but these errors were encountered:
Hi @jcpunk, i just wanted to mention that i am using a similar discriminator and i got the same error. So it is probably a good idea to add some kind of warning.
Maybe we could add an option for a default target to .kluctl.yml and if it's not defined make -t required?
I'm also for not having a default target. IMHO it's better to have this as explicit as possible. But I'm also open to be convinced otherwise if good use-cases are brought up.
Command
Who are you?
Pat Riehecky, Computing Specialist at Fermilab
What do you want to do?
I'd like to provide a useful error when someone runs
kluctl deploy
on a repository but mydiscriminator
expects that atarget
will be set.Why do you need that?
With
.kluctl.yaml
containing:Just running
kluctl deploy
results in invalid kubernetes objects. This is essentially a config issue on my end (example-
is not a valid object and I'm running it wrongly).But having a way to kick out an error to the user saying "select from the list of valid targets" when I know it is required would be handy.
The text was updated successfully, but these errors were encountered: