From e12203056be236dd774ba6177d2d290410718976 Mon Sep 17 00:00:00 2001 From: Mohamad Berjawi Date: Tue, 22 Oct 2024 17:33:41 +0300 Subject: [PATCH] (base) fix service account target port --- charts/base/Chart.yaml | 2 +- charts/base/templates/service.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/base/Chart.yaml b/charts/base/Chart.yaml index 8d64361..b63952f 100644 --- a/charts/base/Chart.yaml +++ b/charts/base/Chart.yaml @@ -14,5 +14,5 @@ maintainers: url: https://github.com/jordanopensource/charts/ sources: - https://github.com/jordanopensource/charts/tree/main/charts/base -version: 1.0.3 +version: 1.0.4 appVersion: 1.0.1 diff --git a/charts/base/templates/service.yaml b/charts/base/templates/service.yaml index 4d69d98..f2e5099 100644 --- a/charts/base/templates/service.yaml +++ b/charts/base/templates/service.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Service metadata: - name: {{ include "base.serviceAccountName" . }} + name: {{ include "base.names.fullname" . }} namespace: {{ include "base.names.namespace" . | quote }} labels: {{- include "base.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} {{- if or .Values.workload.service.annotations .Values.commonAnnotations }} @@ -12,7 +12,7 @@ spec: type: {{.Values.workload.service.type}} ports: - port: {{ .Values.workload.service.port }} - targetPort: http + targetPort: {{ .Values.workload.containerPort }} protocol: TCP name: http {{- $podLabels := include "base.tplvalues.merge" ( dict "values" ( list .Values.workload.podLabels .Values.commonLabels ) "context" . ) }}