-
Notifications
You must be signed in to change notification settings - Fork 99
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
Go: berglas pkg/auto imports must panic on failure #18
Comments
What's actually bad in my case is that it leaves |
Hey @ahmetb This was an early design decision, the primary goal being portability between runtimes (e.g. the same code should work on GCP, locally, and on another cloud). Adding such behavior greatly impedes the local development process, especially since Go doesn't have a good way to conditionally include imports across environments. It's worth noting that Curious your thoughts? |
If I have an env var set to berglas:// it means I want it to be replaced for that, I can’t think of a scenario where silently failing is desired behavior. I can think of all the scenarios where failing ASAP makes a lot of sense. |
Thanks for fixing this! |
I'm doing
in my Go app and it starts/boots just fine (on Kubernetes, or on Cloud Run), only later I find out it actually printed some log lines with errors about secrets initialization.
As a user I expect app to crash ASAP as there's no point of moving the app forward if a requirement cannot be initialized. It's certain that app will crash, and crashing early is a very conventional readiness/health check (recognized by runtimes like Kubernetes or Cloud Run).
The text was updated successfully, but these errors were encountered: