Skip to content

Commit

Permalink
Remove Capabilities.APIVersions for Kustomize to parse file (#7829)
Browse files Browse the repository at this point in the history
  • Loading branch information
stoupance committed Feb 1, 2022
1 parent a2a0e67 commit 0f46433
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" ) .Values.controller.metrics.enabled .Values.controller.metrics.serviceMonitor.enabled -}}
{{- if and .Values.controller.metrics.enabled .Values.controller.metrics.serviceMonitor.enabled -}}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down

1 comment on commit 0f46433

@rcorredera
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.