Skip to content

Commit 446ad91

Browse files
authored
remove unused variables (#814)
Signed-off-by: Eugene Babichev <eugene.babichev@clickhouse.com>
1 parent 57fa712 commit 446ad91

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

keda/templates/metrics-server/serviceaccount.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ metadata:
55
labels:
66
app.kubernetes.io/name: {{ (.Values.serviceAccount.metricServer).name | default .Values.serviceAccount.name }}
77
{{- include "keda.labels" . | nindent 4 }}
8+
{{- if or .Values.additionalAnnotations ((.Values.serviceAccount.metricServer).annotations | default .Values.serviceAccount.annotations) }}
89
annotations:
910
{{- if .Values.additionalAnnotations }}
1011
{{- toYaml .Values.additionalAnnotations | nindent 4 }}
1112
{{- end }}
1213
{{- if (.Values.serviceAccount.metricServer).annotations | default .Values.serviceAccount.annotations }}
1314
{{- toYaml ((.Values.serviceAccount.metricServer).annotations | default .Values.serviceAccount.annotations) | nindent 4}}
1415
{{- end }}
16+
{{- end }}
1517
name: {{ (.Values.serviceAccount.metricServer).name | default .Values.serviceAccount.name }}
1618
namespace: {{ .Release.Namespace }}
1719
automountServiceAccountToken: {{ kindIs "invalid" (.Values.serviceAccount.metricServer).automountServiceAccountToken | ternary .Values.serviceAccount.automountServiceAccountToken (.Values.serviceAccount.metricServer).automountServiceAccountToken }}

keda/templates/webhooks/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v1
33
kind: Service
44
metadata:
5-
{{- if or .Values.prometheus.webhooks.enabled .Values.additionalAnnotations .Values.service.annotations }}
5+
{{- if or (and .Values.prometheus.webhooks.enabled (not .Values.prometheus.webhooks.serviceMonitor.enabled)) .Values.additionalAnnotations .Values.service.annotations }}
66
annotations:
77
{{- if and .Values.prometheus.webhooks.enabled ( not .Values.prometheus.webhooks.serviceMonitor.enabled ) }}
88
prometheus.io/scrape: "true"

keda/templates/webhooks/serviceaccount.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ metadata:
55
labels:
66
app.kubernetes.io/name: {{ (.Values.serviceAccount.webhooks).name | default .Values.serviceAccount.name }}
77
{{- include "keda.labels" . | nindent 4 }}
8+
{{- if or .Values.additionalAnnotations ((.Values.serviceAccount.webhooks).annotations | default .Values.serviceAccount.annotations) }}
89
annotations:
910
{{- if .Values.additionalAnnotations }}
1011
{{- toYaml .Values.additionalAnnotations | nindent 4 }}
1112
{{- end }}
1213
{{- if (.Values.serviceAccount.webhooks).annotations | default .Values.serviceAccount.annotations }}
1314
{{- toYaml ((.Values.serviceAccount.webhooks).annotations | default .Values.serviceAccount.annotations) | nindent 4}}
1415
{{- end }}
16+
{{- end }}
1517
name: {{ (.Values.serviceAccount.webhooks).name | default .Values.serviceAccount.name }}
1618
namespace: {{ .Release.Namespace }}
1719
automountServiceAccountToken: {{ kindIs "invalid" (.Values.serviceAccount.webhooks).automountServiceAccountToken | ternary .Values.serviceAccount.automountServiceAccountToken (.Values.serviceAccount.webhooks).automountServiceAccountToken }}

0 commit comments

Comments
 (0)