From 01246d65f01cf8485a111b6e1593adc7658166c3 Mon Sep 17 00:00:00 2001 From: Fabio Date: Thu, 3 Nov 2022 15:34:43 -0300 Subject: [PATCH] Allow annotations & loadBalancerIP for postfix svc --- charts/postfix/v0.1.0/templates/service.yaml | 3 +++ charts/postfix/v0.1.0/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/postfix/v0.1.0/templates/service.yaml b/charts/postfix/v0.1.0/templates/service.yaml index 78a9030..385f838 100644 --- a/charts/postfix/v0.1.0/templates/service.yaml +++ b/charts/postfix/v0.1.0/templates/service.yaml @@ -4,6 +4,8 @@ metadata: name: {{ include "postfix.fullname" . }} labels: {{- include "postfix.labels" . | nindent 4 }} + annotations: + {{- toYaml .Values.service.annotations | nindent 4 }} spec: type: {{ .Values.service.type }} ports: @@ -13,3 +15,4 @@ spec: name: smtp selector: {{- include "postfix.selectorLabels" . | nindent 4 }} + loadBalancerIP: {{ .Values.service.loadBalancerIP }} \ No newline at end of file diff --git a/charts/postfix/v0.1.0/values.yaml b/charts/postfix/v0.1.0/values.yaml index b98d399..7052838 100644 --- a/charts/postfix/v0.1.0/values.yaml +++ b/charts/postfix/v0.1.0/values.yaml @@ -30,6 +30,8 @@ securityContext: {} service: type: ClusterIP port: 25 + annotations: {} + loadBalancerIP: "" resources: {} # limits: