Skip to content

Commit

Permalink
Merge pull request kube-logging#1633 from cmontemuino/check-prometheu…
Browse files Browse the repository at this point in the history
…s-capabilities

chore(chart): check CRDs available before installing ServiceMonitor
  • Loading branch information
pepov authored Jan 8, 2024
2 parents a866a85 + 54e4d7b commit 626812c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/logging-operator/templates/service_monitor.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if .Values.monitoring.serviceMonitor.enabled }}
{{ if and (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") .Values.monitoring.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down

0 comments on commit 626812c

Please sign in to comment.