Skip to content

Commit

Permalink
fix: add missing POD_NAMESPACE environment variable to deployments (#…
Browse files Browse the repository at this point in the history
…405

Signed-off-by: Michi U <[email protected]>
  • Loading branch information
michemache authored Mar 13, 2023
1 parent 6f4b8f5 commit 06ce12c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions keda/templates/14-keda-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions keda/templates/22-metrics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion keda/templates/30-webhooks-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 06ce12c

Please sign in to comment.