Skip to content

Commit 951d8b9

Browse files
authored
helm: add NAMESPACE env var to EPP deployment for pool namespace (#1610)
* helm: add NAMESPACE env var to EPP deployment for pool namespace fallback * remove comment
1 parent 526aa57 commit 951d8b9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

config/charts/inferencepool/templates/epp-deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ spec:
2525
args:
2626
- --pool-name
2727
- {{ .Release.Name }}
28-
- --pool-namespace
29-
- {{ .Release.Namespace }}
3028
{{- if ne .Values.inferencePool.apiVersion "inference.networking.k8s.io" }}
3129
- --pool-group
3230
- "{{ (split "/" .Values.inferencePool.apiVersion)._0 }}"
@@ -81,8 +79,12 @@ spec:
8179
{{- end }}
8280
initialDelaySeconds: 5
8381
periodSeconds: 10
84-
{{- if .Values.inferenceExtension.env }}
8582
env:
83+
- name: NAMESPACE
84+
valueFrom:
85+
fieldRef:
86+
fieldPath: metadata.namespace
87+
{{- if .Values.inferenceExtension.env }}
8688
{{- toYaml .Values.inferenceExtension.env | nindent 8 }}
8789
{{- end }}
8890
volumeMounts:

0 commit comments

Comments
 (0)