[bitnami/etcd] only add the service to advertised addresses when it is enabled (#18211)

* [bitnami/etcd] only add the service to advertised addresses when it is enabled

Signed-off-by: Sven Wiltink <sven@wiltink.dev>

* bump chart version

Signed-off-by: Sven Wiltink <sven@wiltink.dev>

* Update bitnami/etcd/templates/statefulset.yaml

Co-authored-by: Fran de Paz Galán <fdepaz@vmware.com>
Signed-off-by: svenwiltink <sven@wiltink.dev>

---------

Signed-off-by: Sven Wiltink <sven@wiltink.dev>
Signed-off-by: svenwiltink <sven@wiltink.dev>
Co-authored-by: Fran de Paz Galán <fdepaz@vmware.com>
This commit is contained in:
svenwiltink
2023-08-09 11:49:34 +02:00
committed by GitHub
parent a53d1986fa
commit ece67e02c0
2 changed files with 2 additions and 2 deletions

View File

@@ -27,4 +27,4 @@ maintainers:
name: etcd
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/etcd
version: 9.1.0
version: 9.2.0

View File

@@ -179,7 +179,7 @@ spec:
{{- end }}
{{- end }}
- name: ETCD_ADVERTISE_CLIENT_URLS
value: "{{ $etcdClientProtocol }}://$(MY_POD_NAME).{{ $etcdHeadlessServiceName }}.{{ .Release.Namespace }}.svc.{{ $clusterDomain }}:{{ .Values.containerPorts.client }},{{ $etcdClientProtocol }}://{{ $etcdFullname }}.{{ .Release.Namespace }}.svc.{{ $clusterDomain }}:{{ coalesce .Values.service.ports.client .Values.service.port }}"
value: "{{ $etcdClientProtocol }}://$(MY_POD_NAME).{{ $etcdHeadlessServiceName }}.{{ .Release.Namespace }}.svc.{{ $clusterDomain }}:{{ .Values.containerPorts.client }}{{- if .Values.service.enabled }},{{ $etcdClientProtocol }}://{{ $etcdFullname }}.{{ .Release.Namespace }}.svc.{{ $clusterDomain }}:{{ coalesce .Values.service.ports.client .Values.service.port }}{{- end }}"
- name: ETCD_LISTEN_CLIENT_URLS
value: "{{ $etcdClientProtocol }}://0.0.0.0:{{ .Values.containerPorts.client }}"
- name: ETCD_INITIAL_ADVERTISE_PEER_URLS