From 3fd34c04e215db9fda8740db62101eaadba35c16 Mon Sep 17 00:00:00 2001 From: Andrey Senyaev Date: Wed, 19 Feb 2025 23:46:10 +0300 Subject: [PATCH] Add annotations for service in helm chart to support lb annotations --- charts/pgcat/Chart.yaml | 2 +- charts/pgcat/templates/service.yaml | 4 ++++ charts/pgcat/values.yaml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/pgcat/Chart.yaml b/charts/pgcat/Chart.yaml index 01294788..1681a8fc 100644 --- a/charts/pgcat/Chart.yaml +++ b/charts/pgcat/Chart.yaml @@ -5,4 +5,4 @@ maintainers: - name: PostgresML email: team@postgresml.org appVersion: "1.3.0" -version: 0.2.5 +version: 0.3.0 diff --git a/charts/pgcat/templates/service.yaml b/charts/pgcat/templates/service.yaml index 56c4be71..3cf91d13 100644 --- a/charts/pgcat/templates/service.yaml +++ b/charts/pgcat/templates/service.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "pgcat.fullname" . }} labels: {{- include "pgcat.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/charts/pgcat/values.yaml b/charts/pgcat/values.yaml index 3f933ca6..21b837d2 100644 --- a/charts/pgcat/values.yaml +++ b/charts/pgcat/values.yaml @@ -88,6 +88,7 @@ containerSecurityContext: {} ## @param service.type PgCat service type ## @param service.port PgCat service port service: + annotations: {} type: ClusterIP port: 6432