-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Find a replacement for drone/envsubst (not maintained anymore) #8325
Comments
At a first glance sound reasonable to me. Probably would be better if we replace it everywhere (including e.g. clusterctl) |
@sbueringer thank you for your feedback. I hope I have time to create a PR during the next weeks. |
👍 a8m/envsubst also seems to be the more healthier project, having more recent commits. |
I think this would be a "good first issue". Does anyone have a young and motivated intern at hand? |
If I'm not wrong with the proposed replacement we are going to lose a couple of the syntax supported by the current library (https://github.com/drone/envsubst vs https://github.com/a8m/envsubst#docs), this will be breaking for the users. Have you considered contributing the syntax you are looking to into drone/envsubst? |
/triage accepted |
drone/envsubst does not provide an issue-tracker or any other way to provide feedback. That's why I created a PR to their README to make this clear to everybody. Up to now noone left a comment in my PR. For me this means the maintainers of drone/envsubst are not interested in a conversation with users: https://github.com/drone/envsubst/pull/33/files I guess that a8m/envsubst is accepting PRs to get feature parity. I guess that should not be that difficult, since both are written in Go an both have the MIT license. |
If drone stopped accepting issues it is a piece of bad news. |
I had a look at it. But bad news: a8m/envsubst replaces vars like I created a PR to the corruently used repo drone/envsubst. Let's see if they accept it. |
This issue has not been updated in over 1 year, and should be re-triaged. You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
/priority important-longterm |
Note: https://github.com/a8m/envsubst also seems not to be that much maintained currently. (last commit 9 months ago, last release in february 2023) |
BTW, fluxcd incoporated envsubst. But up to now only as package. It does not contain a main yet. I asked the maintainers if they are interested in adding a main package, so that envsubst can be installed as an executable. This contains my PR to the unmaintained upstream: drone/envsubst#34 |
The flux project won't create a main package for What do you think? |
What would you like to be added (User Story)?
As a developer, I would like tools to fail if an environment variable is missing.
Detailed Description
At some places drone/envsubst gets used (for example
hack/tools/bin/envsubst
)Up to now this tools silently replaces missing environment variables with an empty string.
Unfortunately this tool does not support an option to fail if an variable is not set.
I searched and found a8m/envsubst which supports failing on missing env variables.
Wasting time because missing env vars got silently replaced with empty strings is not fun.
The authors of drone/envsubst are a bit un-welcoming: They don't provide an issue tracker. This signals to me that it would be better to switch to a package which supports this feature, instead of adding this feature to drone/envsubst.
Label(s) to be applied
/kind feature
/area/code-organization
The text was updated successfully, but these errors were encountered: