Skip to content

Commit 315c17e

Browse files
authored
fix(nginx): add namespace to nodePort and loadBalancer services (#2273)
Signed-off-by: Rory Z <16801068+Rory-Z@users.noreply.github.com>
1 parent d2c922c commit 315c17e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/nginx/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ spec:
3838
{{- else if eq .Values.expose.type "nodePort" }}
3939
{{- $nodePort := .Values.expose.nodePort }}
4040
name: {{ $nodePort.name }}
41+
namespace: {{ .Release.Namespace | quote }}
4142
labels:
4243
{{ include "harbor.labels" . | indent 4 }}
4344
{{- if .Values.expose.nodePort.labels }}
@@ -67,6 +68,7 @@ spec:
6768
{{- else if eq .Values.expose.type "loadBalancer" }}
6869
{{- $loadBalancer := .Values.expose.loadBalancer }}
6970
name: {{ $loadBalancer.name }}
71+
namespace: {{ .Release.Namespace | quote }}
7072
labels:
7173
{{ include "harbor.labels" . | indent 4 }}
7274
{{- if .Values.expose.loadBalancer.labels }}

0 commit comments

Comments
 (0)