diff --git a/keda/templates/14-keda-deployment.yaml b/keda/templates/14-keda-deployment.yaml index c9104dae..bc005961 100644 --- a/keda/templates/14-keda-deployment.yaml +++ b/keda/templates/14-keda-deployment.yaml @@ -108,6 +108,10 @@ spec: valueFrom: fieldRef: fieldPath: metadata.name + - name: POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace - name: OPERATOR_NAME value: {{ .Values.operator.name }} - name: KEDA_HTTP_DEFAULT_TIMEOUT diff --git a/keda/templates/22-metrics-deployment.yaml b/keda/templates/22-metrics-deployment.yaml index 0741c2a3..3e7cbf2e 100644 --- a/keda/templates/22-metrics-deployment.yaml +++ b/keda/templates/22-metrics-deployment.yaml @@ -86,6 +86,10 @@ spec: env: - name: WATCH_NAMESPACE value: {{ .Values.watchNamespace | quote }} + - name: POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace - name: KEDA_HTTP_DEFAULT_TIMEOUT value: {{ .Values.http.timeout | quote }} - name: KEDA_HTTP_MIN_TLS_VERSION diff --git a/keda/templates/30-webhooks-deployment.yaml b/keda/templates/30-webhooks-deployment.yaml index 8d512ba8..6a621a00 100644 --- a/keda/templates/30-webhooks-deployment.yaml +++ b/keda/templates/30-webhooks-deployment.yaml @@ -101,7 +101,11 @@ spec: - name: POD_NAME valueFrom: fieldRef: - fieldPath: metadata.name + fieldPath: metadata.name + - name: POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace {{- if .Values.env }} {{- toYaml .Values.env | nindent 12 -}} {{- end }}