Skip to content

Commit 14a884e

Browse files
committed
helm: add NAMESPACE env var to EPP deployment for pool namespace fallback
1 parent deccda0 commit 14a884e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ spec:
2525
args:
2626
- --pool-name
2727
- {{ .Release.Name }}
28-
- --pool-namespace
29-
- {{ .Release.Namespace }}
28+
# The pool namespace is now set via the NAMESPACE environment variable, not as a flag.
3029
{{- if ne .Values.inferencePool.apiVersion "inference.networking.k8s.io" }}
3130
- --pool-group
3231
- "{{ (split "/" .Values.inferencePool.apiVersion)._0 }}"
@@ -81,8 +80,12 @@ spec:
8180
{{- end }}
8281
initialDelaySeconds: 5
8382
periodSeconds: 10
84-
{{- if .Values.inferenceExtension.env }}
8583
env:
84+
- name: NAMESPACE
85+
valueFrom:
86+
fieldRef:
87+
fieldPath: metadata.namespace
88+
{{- if .Values.inferenceExtension.env }}
8689
{{- toYaml .Values.inferenceExtension.env | nindent 8 }}
8790
{{- end }}
8891
volumeMounts:

0 commit comments

Comments
 (0)