-
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 linkerd viz check
to have skip prom clusterrole checks when prom controller is disabled
#12889
Comments
Confirmed that when users encountered the issue documented above, they were setting the promURL via Helm (not linkerd CLI) |
I was not able to reproduce this issue. Here are the steps I used: Install linkerd-viz with helm, disabling prometheus and supplying a placeholder prometheusURL:
Run
The "prometheus is installed and configured correctly" check, which normally is after "viz extension proxies and cli versions match" and before "viz extension self-check" is skipped as intended because prometheus is disabled. The "viz extension self-check" fails as expected because linkerd.io is not a valid prometheus instance. |
The
It is this annotation which controls if the "prometheus is installed and configured correctly" check is skipped. I suggest verifying that the namespace annotation is set. |
What problem are you trying to solve?
When installing linkerd-viz via Helm and setting the
prometheus.enabled: false
flag, we should disable the linkerd viz check for the associated resources (cluster roles, bindings...etc) since there is no longer an expectation that they will be installed in the cluster. At the moment, linkerd viz check still shows a warning like so whenprometheus.enabled: false
is set:How should the problem be solved?
update linkerd-viz check
Any alternatives you've considered?
n/a
How would users interact with this feature?
linkerd viz check
Would you like to work on this feature?
None
The text was updated successfully, but these errors were encountered: