mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[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:
committed by
GitHub
parent
bb352caf42
commit
3795365e25
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user