Skip to content

Commit 328442c

Browse files
authoredAug 12, 2022
Remove server side call from podmonitoring template
The `.Capabilities.APIVersions.Has` is server side, which means it breaks in workflows where `helm template` is used (ArgoCD for example)
1 parent 4304880 commit 328442c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎deployments/kubernetes/chart/reloader/templates/podmonitor.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" ) ( .Values.reloader.podMonitor.enabled ) }}
1+
{{- if ( .Values.reloader.podMonitor.enabled ) }}
22
apiVersion: monitoring.coreos.com/v1
33
kind: PodMonitor
44
metadata:

0 commit comments

Comments
 (0)
Please sign in to comment.