diff --git a/keda/templates/10-keda-clusterrole.yaml b/keda/templates/10-keda-clusterrole.yaml index e93bfb4c..8ecc82b5 100644 --- a/keda/templates/10-keda-clusterrole.yaml +++ b/keda/templates/10-keda-clusterrole.yaml @@ -61,6 +61,16 @@ rules: - patch - update - watch +- apiGroups: + - apiregistration.k8s.io + resources: + - apiservices + verbs: + - get + - list + - patch + - update + - watch {{- end }} - apiGroups: - apps diff --git a/keda/templates/14-keda-deployment.yaml b/keda/templates/14-keda-deployment.yaml index 1fe26e8e..19366a28 100644 --- a/keda/templates/14-keda-deployment.yaml +++ b/keda/templates/14-keda-deployment.yaml @@ -139,7 +139,7 @@ spec: {{- end }} {{- if .Values.volumes.keda.extraVolumeMounts }} {{- toYaml .Values.volumes.keda.extraVolumeMounts | nindent 12 }} - {{- end }} + {{- end }} resources: {{- if .Values.resources.operator }} {{- toYaml .Values.resources.operator | nindent 12 }} diff --git a/keda/templates/22-metrics-deployment.yaml b/keda/templates/22-metrics-deployment.yaml index cd271649..e59b3375 100644 --- a/keda/templates/22-metrics-deployment.yaml +++ b/keda/templates/22-metrics-deployment.yaml @@ -107,6 +107,10 @@ spec: - --secure-port={{ .Values.service.portHttpsTarget }} - --logtostderr=true - --metrics-service-address={{ .Values.operator.name }}.{{ .Release.Namespace }}.svc.cluster.local:9666 + - --client-ca-file={{ .Values.certificates.mountPath }}/ca.crt + - --tls-cert-file={{ .Values.certificates.mountPath }}/tls.crt + - --tls-private-key-file={{ .Values.certificates.mountPath }}/tls.key + - --cert-dir={{ .Values.certificates.mountPath }} {{- if .Values.prometheus.metricServer.enabled }} - --metrics-port={{ .Values.prometheus.metricServer.port }} - --metrics-path={{ .Values.prometheus.metricServer.path }}