Skip to content

Commit

Permalink
remove cap condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit Zafran committed Sep 4, 2024
1 parent 3ffa4ed commit 608a089
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/cache/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") $.Values.metrics.enabled $.Values.metrics.serviceMonitor.enabled }}
{{- if and $.Values.metrics.enabled $.Values.metrics.serviceMonitor.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
Expand Down
2 changes: 1 addition & 1 deletion charts/consumer/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") $.Values.metrics.enabled $.Values.metrics.serviceMonitor.enabled }}
{{- if and $.Values.metrics.enabled $.Values.metrics.serviceMonitor.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
Expand Down
2 changes: 1 addition & 1 deletion charts/provider/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") $.Values.metrics.enabled $.Values.metrics.serviceMonitor.enabled }}
{{- if and $.Values.metrics.enabled $.Values.metrics.serviceMonitor.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
Expand Down

0 comments on commit 608a089

Please sign in to comment.