[bitnami/postgresql-ha] Adds custom service labels (#4251)

* [bitnami/postgresql-ha] Adds custom service labels

* Move serviceLabel to service block, added to the README.md

* Add `component: pgpool` to pgpool's service labels.

* Bump chart version

Co-authored-by: rafael <rafael@bitnami.com>
This commit is contained in:
Rafael Ríos Saavedra
2020-12-18 17:56:09 +01:00
committed by GitHub
parent bb352caf42
commit 3795365e25
6 changed files with 25 additions and 1 deletions

View File

@@ -3,9 +3,14 @@ kind: Service
metadata:
name: {{ include "postgresql-ha.pgpool" . }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: pgpool
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.pgpool.serviceLabels }}
{{ toYaml .Values.service.serviceLabels | indent 4 }}
{{- end }}
annotations:
{{- if .Values.service.annotations }}
{{- include "common.tplvalues.render" (dict "value" .Values.service.annotations "context" $) | nindent 4 }}

View File

@@ -7,6 +7,10 @@ metadata:
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.service.serviceLabels }}
{{ toYaml .Values.postgresql.serviceLabels | indent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}