diff --git a/charts/ix-chart/2010.0.1/templates/_containers.tpl b/charts/ix-chart/2010.0.1/templates/_containers.tpl index 95e9a2bc886..23b103dbab0 100644 --- a/charts/ix-chart/2010.0.1/templates/_containers.tpl +++ b/charts/ix-chart/2010.0.1/templates/_containers.tpl @@ -48,3 +48,15 @@ livenessProbe: periodSeconds: {{ .Values.periodSeconds }} {{- end }} {{- end }} + +{{/* +Container Ports +*/}} +{{- define "containerPorts" }} +{{- if .Values.portForwardingList }} +ports: + {{- range $index, $config := .Values.portForwardingList }} + - containerPort: {{ $config.containerPort }} + {{- end }} +{{- end }} +{{- end }} diff --git a/charts/ix-chart/2010.0.1/templates/_workload.tpl b/charts/ix-chart/2010.0.1/templates/_workload.tpl index 4762022eed0..494772c985a 100644 --- a/charts/ix-chart/2010.0.1/templates/_workload.tpl +++ b/charts/ix-chart/2010.0.1/templates/_workload.tpl @@ -62,6 +62,7 @@ containers: {{- include "containerArgs" . | indent 2 }} {{- include "containerEnvVariables" . | indent 2 }} {{- include "containerLivenssProbe" . | indent 2 }} + {{- include "containerPorts" . | indent 2 }} {{- include "volumeConfiguration" . }} {{- include "dnsConfiguration" . }} {{- end }} diff --git a/charts/ix-chart/2010.0.1/service.yaml b/charts/ix-chart/2010.0.1/templates/service.yaml similarity index 89% rename from charts/ix-chart/2010.0.1/service.yaml rename to charts/ix-chart/2010.0.1/templates/service.yaml index 21581585476..c68ba7ef833 100644 --- a/charts/ix-chart/2010.0.1/service.yaml +++ b/charts/ix-chart/2010.0.1/templates/service.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Service metadata: - name: {{- include "ix-chart.fullname" . }} + name: {{ include "ix-chart.fullname" . }} labels: {{- include "ix-chart.labels" . | nindent 4 }} spec: