-
Notifications
You must be signed in to change notification settings - Fork 273
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]: Enhancement of Helm deployment status in Garden CLI #6563
Comments
Thanks for the feature request! We are in fact already working on improvements on this front and would love your feedback and suggestions once the first iteration is ready. EDIT: Am I right in assuming you're having these issues with Helm charts? In general we print the events and logs for the For the
|
Hi @eysi09 ! Thanks for your quick reply! Sorry for the confusion. I'll try to clarify everything..
I have this issue with Garden Some outputs for
Output from
Not sure if it matters, but currently, I use Garden v0.13.42 (also tested on v0.13.39) with
This looks very promising, indeed. How did you manage to get this output? Is it due to log level settings? Unfortunately, I don't think I have ever seen K8s events in the Garden output.. |
Thanks for the added context! And sorry for the late reply, had a few days off last week.
You should always get this if you are using a Deploy action of kind But we're currently on adding this output to Deploy actions of kind |
Irrespective of the above, hence the separate comment, but one other thing I noticed is that when using the This means that if a container won't start or an image pull secret is missing, it won't fail until it timeouts which by default is 300 seconds. So I'm also seeing if we can fail fast under those conditions. Unfortunately Helm itself isn't really helpful here but we can use similar heuristics as we do for "normal" K8s manifests although it probably won't work for all cases because a Helm chart can be a lot of things. We might make this opt-in behaviour to begin with since it's technically a change in how we install Helm charts. |
Good catch! I've just tested it with the kind of
Great! I believe this is exactly what I'm looking for. Can't wait to hear any updates on this matter :)
Correct. This is the current behavior, and we're just missing any output that could help in diagnosing the timeouted action.
I'm not sure if the @eysi09 thanks for your detailed replies! I appreciate it! |
I'm renaming the issue title to avoid further confusion :) |
Just a quick update, we're making good progress and getting this into review.
On closer inspection, turns out that this is what we used to do until recently, on this current Garden major version. The reason we changed it was not because of Garden failing fast but rather being "successful fast" and not always waiting for the Helm command to complete after all resources became healthy. We never received any reports about issues related to Garden failing fast, only a certain edge case that came up in the "successful" case and we were a bit overzealous in addressing it by applying With the changes I'm making I think we strike a good balance:
|
Amazing! Looking forward to see this in action :) |
Feature Request
Background / Motivation
Misconfigurations or missing Kubernetes resources (such as secrets) can cause Garden to timeout with unclear error messages like
context deadline exceeded
. These messages do not pinpoint the actual issue or provide useful guidance for resolution.What should the user be able to do?
The user should see the specific issue that caused the timeout, such as
Error: secret "my-service-secret"
not found.Why do they want to do this? What problem does it solve?
This feature removes the need to retrieve useful information from the Kubernetes API using external tools (such as
kubectl
, which Garden already uses). It consolidates the relevant information into a single source of truth (the Garden CLI output), which should reduce the time required to resolve issues. Additionally, some clusters, such as CI clusters, may not be accessible to end-users. Without this information available in the CLI output, users may be blocked from taking further action.Suggested Implementation(s)
The missing information can be retrieved from K8s events, such as:
How important is this feature for you/your team?
🌵 Not having this feature makes using Garden painful
The text was updated successfully, but these errors were encountered: