From f0fe09e428888a0710a568e89346b7d15a07aad0 Mon Sep 17 00:00:00 2001 From: Nicholas Blott Date: Wed, 23 Nov 2022 15:20:24 +0000 Subject: [PATCH 1/2] fix: Remove executable filemode Signed-off-by: Nicholas Blott --- keda/templates/13-keda-poddisruptionbudget.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 keda/templates/13-keda-poddisruptionbudget.yaml diff --git a/keda/templates/13-keda-poddisruptionbudget.yaml b/keda/templates/13-keda-poddisruptionbudget.yaml old mode 100755 new mode 100644 From 4fae1231ba0701f3bcb6644d6919762ad9786424 Mon Sep 17 00:00:00 2001 From: Nicholas Blott Date: Wed, 23 Nov 2022 15:20:04 +0000 Subject: [PATCH 2/2] fix: Standardise to LF line endings Signed-off-by: Nicholas Blott --- keda/templates/23-metrics-service.yaml | 60 +++++++++++------------ keda/templates/24-metrics-apiservice.yaml | 32 ++++++------ 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/keda/templates/23-metrics-service.yaml b/keda/templates/23-metrics-service.yaml index d8960580..6162a856 100644 --- a/keda/templates/23-metrics-service.yaml +++ b/keda/templates/23-metrics-service.yaml @@ -1,30 +1,30 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/name: {{ .Values.operator.name }}-metrics-apiserver - {{- include "keda.labels" . | indent 4 }} - name: {{ .Values.operator.name }}-metrics-apiserver - namespace: {{ .Release.Namespace }} - annotations: - {{- range $key, $value := .Values.service.annotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} -spec: - ports: - - name: https - port: {{ .Values.service.portHttps }} - targetPort: {{ .Values.service.portHttpsTarget }} - protocol: TCP - - name: http - port: {{ .Values.service.portHttp }} - targetPort: {{ .Values.service.portHttpTarget }} - protocol: TCP - {{- if .Values.prometheus.metricServer.enabled }} - - name: {{ .Values.prometheus.metricServer.portName }} - port: {{ .Values.prometheus.metricServer.port }} - targetPort: {{ .Values.prometheus.metricServer.port }} - protocol: TCP - {{- end }} - selector: - app: {{ .Values.operator.name }}-metrics-apiserver +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/name: {{ .Values.operator.name }}-metrics-apiserver + {{- include "keda.labels" . | indent 4 }} + name: {{ .Values.operator.name }}-metrics-apiserver + namespace: {{ .Release.Namespace }} + annotations: + {{- range $key, $value := .Values.service.annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} +spec: + ports: + - name: https + port: {{ .Values.service.portHttps }} + targetPort: {{ .Values.service.portHttpsTarget }} + protocol: TCP + - name: http + port: {{ .Values.service.portHttp }} + targetPort: {{ .Values.service.portHttpTarget }} + protocol: TCP + {{- if .Values.prometheus.metricServer.enabled }} + - name: {{ .Values.prometheus.metricServer.portName }} + port: {{ .Values.prometheus.metricServer.port }} + targetPort: {{ .Values.prometheus.metricServer.port }} + protocol: TCP + {{- end }} + selector: + app: {{ .Values.operator.name }}-metrics-apiserver diff --git a/keda/templates/24-metrics-apiservice.yaml b/keda/templates/24-metrics-apiservice.yaml index 6d38b285..c1af96a5 100644 --- a/keda/templates/24-metrics-apiservice.yaml +++ b/keda/templates/24-metrics-apiservice.yaml @@ -1,16 +1,16 @@ -apiVersion: apiregistration.k8s.io/v1 -kind: APIService -metadata: - labels: - app.kubernetes.io/name: v1beta1.external.metrics.k8s.io - {{- include "keda.labels" . | indent 4 }} - name: v1beta1.external.metrics.k8s.io -spec: - service: - name: {{ .Values.operator.name }}-metrics-apiserver - namespace: {{ .Release.Namespace }} - group: external.metrics.k8s.io - version: v1beta1 - insecureSkipTLSVerify: true - groupPriorityMinimum: 100 - versionPriority: 100 +apiVersion: apiregistration.k8s.io/v1 +kind: APIService +metadata: + labels: + app.kubernetes.io/name: v1beta1.external.metrics.k8s.io + {{- include "keda.labels" . | indent 4 }} + name: v1beta1.external.metrics.k8s.io +spec: + service: + name: {{ .Values.operator.name }}-metrics-apiserver + namespace: {{ .Release.Namespace }} + group: external.metrics.k8s.io + version: v1beta1 + insecureSkipTLSVerify: true + groupPriorityMinimum: 100 + versionPriority: 100