Skip to content

Commit 0da1ce3

Browse files
authored
Fix conditional syntax for API version checks (#77)
1 parent b8b6007 commit 0da1ce3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/alloy-operator/templates/rbac/alloy-objects.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
- apiGroups: ["autoscaling"]
1212
resources: ["horizontalpodautoscalers"]
1313
verbs: ["*"]
14-
{{- if .Capabilities.APIVersions.Has "autoscaling.k8s.io/v1" -}}
14+
{{- if .Capabilities.APIVersions.Has "autoscaling.k8s.io/v1" }}
1515
# Rules which allow the management of VerticalPodAutoscalers.
1616
- apiGroups: ["autoscaling.k8s.io"]
1717
resources: ["verticalpodautoscalers"]
1818
verbs: ["*"]
1919
{{- end }}
20-
{{- if .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" -}}
20+
{{- if .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" }}
2121
# Rules which allow the management of ServiceMonitor.
2222
- apiGroups: ["monitoring.coreos.com"]
2323
resources: ["servicemonitors"]

0 commit comments

Comments
 (0)