From 69eaec3f046b130253f314f428dc2d87eb03180d Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Fri, 4 Jul 2025 21:26:43 +0530 Subject: [PATCH] minor corrections --- clusters/default/apps/gitea/templates/gitea-svc.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clusters/default/apps/gitea/templates/gitea-svc.yaml b/clusters/default/apps/gitea/templates/gitea-svc.yaml index f15f63a..3ded64a 100644 --- a/clusters/default/apps/gitea/templates/gitea-svc.yaml +++ b/clusters/default/apps/gitea/templates/gitea-svc.yaml @@ -5,9 +5,9 @@ metadata: name: "{{ .Values.name }}-service" namespace: {{ .Values.namespace }} spec: - {{- if .Values.service.app.type "LoadBalancer" }} + {{- if eq .Values.service.app.type "LoadBalancer" }} type: LoadBalancer - {{- else if .Values.service.app.type "NodePort" }} + {{- else if eq .Values.service.app.type "NodePort" }} type: NodePort {{- end }} selector: @@ -15,9 +15,9 @@ spec: ports: - targetPort: 3000 protocol: TCP - {{- if .Values.service.app.type "LoadBalancer" }} + {{- if eq .Values.service.app.type "LoadBalancer" }} port: {{ .Values.service.app.port }} - {{- else if .Values.service.app.type "NodePort" }} + {{- else if eq .Values.service.app.type "NodePort" }} nodePort: {{ .Values.service.app.nodePort }} {{- end }}