https://pulumi.com logo
#general
Title
# general
i

incalculable-diamond-5088

09/20/2019, 5:50 PM
stable/prometheus-redis-exporter
helm chart fails to install
ServiceMonitor
. Probably because of the following line:
{{- if and ( .Capabilities.APIVersions.Has "<http://monitoring.coreos.com/v1|monitoring.coreos.com/v1>" ) ( .Values.serviceMonitor.enabled ) }}
in https://github.com/helm/charts/blob/master/stable/prometheus-redis-exporter/templates/servicemonitor.yaml Is there a workaruond?
g

gorgeous-egg-16927

09/20/2019, 6:57 PM
You should be able to set
{serviceMonitor: {enabled: true}}
under the Chart values
i

incalculable-diamond-5088

09/21/2019, 6:22 AM
@gorgeous-egg-16927 right, but
( .Capabilities.APIVersions.Has "<http://monitoring.coreos.com/v1|monitoring.coreos.com/v1>" )
will always return false as we’re using
helm template
3 Views