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

Accept stdin as a "data values file" #486

Closed
pivotaljohn opened this issue Sep 17, 2021 · 2 comments
Closed

Accept stdin as a "data values file" #486

pivotaljohn opened this issue Sep 17, 2021 · 2 comments
Assignees
Labels
enhancement This issue is a feature request priority/important-soon Must be staffed and worked on currently or soon.

Comments

@pivotaljohn
Copy link
Contributor

pivotaljohn commented Sep 17, 2021

Describe the problem/challenge you have
I want to supply a plain YAML data values file on "standard input" (aka stdin) to my ytt invocation

(ex: https://kubernetes.slack.com/archives/CH8KCCKA5/p1631819726297200)

Describe the solution you'd like

$ generate-data-values | ytt -f config/ --data-values-file=-

where:

  • generate-data-values is some process that yields (to stdout) a plain YAML that is suitable as a data values file.
  • 🛑 If stdin is supplied both for a --file entry and --data-values-file, this should error out explaining that standard input can only be used once.

Anything else you would like to add:

  • 🏅 This (subtly) also improves the use of ytt in Windows environment where the same line can be used in Powershell.
  • 🤔 Consider the suggestion to explore how to reduce the total code paths while implementing this feature: can this kind of file handling (regardless of which flag is accepting the file) be centralized/turned into a core feature of the system?

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

@pivotaljohn pivotaljohn added enhancement This issue is a feature request priority/unprioritized-backlog Higher priority than priority/awaiting-more-evidence but not planned. Contributions are welcome. labels Sep 17, 2021
@pivotaljohn pivotaljohn added priority/important-soon Must be staffed and worked on currently or soon. and removed priority/unprioritized-backlog Higher priority than priority/awaiting-more-evidence but not planned. Contributions are welcome. labels Oct 25, 2021
@pivotaljohn
Copy link
Contributor Author

Maintainers have committed to staff this work. Changed priority accordingly.

@vmunishwar vmunishwar self-assigned this Feb 4, 2022
@aaronshurley
Copy link
Contributor

aaronshurley commented Mar 7, 2022

This will be available in the next version (v0.41.0).

@github-actions github-actions bot added carvel triage This issue has not yet been triaged for relevance and removed carvel triage This issue has not yet been triaged for relevance labels Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue is a feature request priority/important-soon Must be staffed and worked on currently or soon.
Projects
None yet
Development

No branches or pull requests

3 participants