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

Implement repeatable -f flag #727

Open
timothysmith0609 opened this issue Jun 30, 2020 · 7 comments
Open

Implement repeatable -f flag #727

timothysmith0609 opened this issue Jun 30, 2020 · 7 comments

Comments

@timothysmith0609
Copy link
Contributor

Feature request

In following our attempt to mimic, as much as possible, kubectl syntax, we should make the --filenames | -f flag repeatable. This is simple to do (simply set repeatable: true for the option). However, rails/thor#715 needs to be released before this will actually work as intended. To observe why this fails, simply run the CLI tests and observe the failure outputs.

@airhorns
Copy link
Contributor

This would be really handy for deploying via krane render | krane deploy and including ejson secrets in that deploy. Currently, render doesn't render secrets (which I think makes sense), so if you want to deploy them you have to deploy them separately and figure out on your own how to manage purging.

@dturn
Copy link
Contributor

dturn commented Jul 20, 2020

This would be really handy for deploying via krane render | krane deploy and including ejson secrets in that deploy.

As an fyi: you can do krane render ... | krane deploy ... --stdin -f path/to/secrets.ejson

@airhorns
Copy link
Contributor

--stdin is deprecated now though right? Users are asked to use -f -, hence the need for repeatable -fs to get the same behaviour without a warning.

@timothysmith0609
Copy link
Contributor Author

This is blocked on an upcoming Thor release (PR there is already merged).

@simi
Copy link

simi commented Apr 16, 2022

This is blocked on an upcoming Thor release (PR there is already merged).

That PR seems merged. Is there any way to specify -f secrets.ejson combined with --stdin which is not deprecated now? Any plans to implement this? Is there anything I can help with?

@simi
Copy link

simi commented Apr 16, 2022

It seems -f secrets.ejson - works now. Anyway --stdin seems more explicit to me. Is there any reason why --stdin is deprecated?

I did a quick test and it is possible really easily enable multiple -f flags, I can send a PR if welcomed. It would be also nice to update README.md to make it clear it is possible to use -f with both stdin and secrets. If I understand it well, it is currently stating it is actually not possible.

@timothysmith0609
Copy link
Contributor Author

Is there any reason why --stdin is deprecated?

The original desire was to keep the flags similar to kubectl apply.

I did a quick test and it is possible really easily enable multiple -f flags, I can send a PR if welcomed.

That would be very welcome. It's been a long time since I touched this issue, and I'm sure things have changed since then :) If you're able to pick this up I would really appreciate it!

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

4 participants