-
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
🌱 improve deploy_observability for Tilt #6079
🌱 improve deploy_observability for Tilt #6079
Conversation
eaa1def
to
a754ca3
Compare
Tested it locally, works as expected! Thx! /lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working for me locally
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nice change. 🙂
Just nits.
@@ -322,11 +322,17 @@ def deploy_provider_crds(): | |||
) | |||
|
|||
def deploy_observability(): | |||
k8s_yaml(read_file("./.tiltbuild/yaml/observability.tools.yaml")) | |||
if "promtail" in settings.get("deploy_observability", []): | |||
k8s_yaml(read_file("./.tiltbuild/yaml/promtail.observability.yaml"), allow_duplicates = True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a review but out of curiosity: why are we doing allow_duplicates=true
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After installing promtail helm chart I was getting errors due to duplicated objects, this was the suggested fix; quoting the Tilt documentation:
allow_duplicates ( bool ) – If you try to register the same Kubernetes resource twice, this function will assume this is a mistake and emit an error. Set allow_duplicates=True to allow duplicates. There are some Helm charts that have duplicate resources for esoteric reasons.
😄 for esoteric reasons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Namespace
resource is duplicated between all three observability tools, so that could explain the issues.
a754ca3
to
b6efec5
Compare
/lgtm |
/lgtm |
@fabriziopandini (cc @apricote) |
There is a slight dependency of The same situation will occur with Prometheus |
Very good point. I think we try to limit the dependencies in the Tiltfile to the more problematic ones, like promtail=>loki because promtail without loki doesn't make sense at all. |
That's true, but what I'm trying with this PR is to move us away from all or nothing, because installing too many tools makes the developer flow slow, requires unnecessary resources etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This PR makes tilt_setting options more flexible by allowing to specify which observability tool do you want (vs all or nothing)