-
Notifications
You must be signed in to change notification settings - Fork 43
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
Only create service with serviceMonitor #1317
Only create service with serviceMonitor #1317
Conversation
I don't get what the check tries to tell me here:
|
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.
CI needs fixing
Only create the service when `serviceMonitor.create` is set. The service is useless otherwise. I have a project where I can only use the `prometheusRules.enabled=true` but only want to use the prometheus rules, not the service monitor. Also, it creates a conflict in our deployment because we already have a similar service with that name `vault-monitoring`.
I quickly tested these CI commands offline. It seems be working when I set |
The `ct lint` command fails with a nil pointer. I assume it cannot find some directory.
f5685d4
to
d791995
Compare
I think there's a bug in that "Pluto" magic stuff. $ tail -n1 ./hack/pluto.sh
helm template $chart_dir | pluto detect - $ helm template ./charts/vault-monitoring
Error: template: vault-monitoring/templates/service.yaml:1:14: executing "vault-monitoring/templates/service.yaml" at <.Values.serviceMonitor.create>: nil pointer evaluating interface {}.create
Use --debug flag to render out invalid YAML |
@eyenx the |
Only create the service when
serviceMonitor.create
is set. The service is useless otherwise.Background: I have a project where I can only use the
prometheusRules.enabled=true
but only want to use the prometheus rules, not the service monitor. Also, it creates a conflict in our deployment, because we already have a similar service with that namevault-monitoring
.