Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: set default parameters for subcommands #1853

Closed
lemaral opened this issue May 17, 2021 · 3 comments
Closed

Feature request: set default parameters for subcommands #1853

lemaral opened this issue May 17, 2021 · 3 comments

Comments

@lemaral
Copy link

lemaral commented May 17, 2021

It would nice to be able to specify default parameters for each subcommand.
For instance (this is useful if you really want to the diff inside configurations stored as secrets)
diff: --show-secrets
would use this parameter for every call to helmfile diff (instead of having to use helmfile diff --args --show-secrets every time)
It could be in helmDefaults or even maybe per release

Thanks

@mumoshu
Copy link
Collaborator

mumoshu commented May 18, 2021

@lemaral Hey! Are you trying to use --args? Please don't use it. Instead, raise separate feature requests add specific flags to specific helmfile sub-command. More context in #1804

In your case, could it be helmfile diff --show-secrets, which already exists?

If you literally meant a way to configure default subcommand flags in helmfile.yaml- helmfile isn't designed that way. helmfile's motto is letting the user to provide operational concerts via command-line flags, and provide desired state of your helm releases in helmfile.yaml.

@mumoshu mumoshu closed this as completed May 18, 2021
@lemaral
Copy link
Author

lemaral commented May 18, 2021

Yes, thanks, the helmfile --show-secrets option is more recent than my use of it :) I have upgraded and will use it now.
I understand the philosophy, but it seems less flexible for me, as for instance we will have to wait for a new helmfile version every time there is a change in the upstream (this is the situation which forced me to use diff --args --show-secrets). Anyway, thanks for this great product, and I will look to your terraform provider now :)

@mumoshu
Copy link
Collaborator

mumoshu commented May 18, 2021

it seems less flexible for me, as for instance we will have to wait for a new helmfile version every time there is a change in the upstream

@lemaral Thansk for your feedback. That's actually a good point!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants