mirror of
https://github.com/bitnami/charts.git
synced 2026-03-14 06:47:28 +08:00
[bitnami/mariadb-galera] adds appProtocol field to services (#14169)
* Adds appProtocol field to services Signed-off-by: Pedro Tavares de Carvalho <pcarvalho@cyral.com> * Bumbs chart version Signed-off-by: Pedro Tavares de Carvalho <pcarvalho@cyral.com> * Adds condition on appProtocol availability Signed-off-by: Pedro Tavares de Carvalho <pcarvalho@cyral.com> * Fixes condition on appProtocol availability Signed-off-by: Pedro Tavares de Carvalho <pcarvalho@cyral.com> Signed-off-by: Pedro Tavares de Carvalho <pcarvalho@cyral.com>
This commit is contained in:
committed by
GitHub
parent
e2654f1170
commit
c02304be1e
@@ -28,4 +28,4 @@ sources:
|
||||
- https://github.com/bitnami/containers/tree/main/bitnami/mariadb-galera
|
||||
- https://github.com/prometheus/mysqld_exporter
|
||||
- https://mariadb.org
|
||||
version: 7.4.10
|
||||
version: 7.4.11
|
||||
|
||||
@@ -20,14 +20,24 @@ spec:
|
||||
type: ClusterIP
|
||||
clusterIP: None
|
||||
ports:
|
||||
{{- $appProtocolAvailable := (semverCompare ">=1.20-0" (include "common.capabilities.kubeVersion" .)) }}
|
||||
- name: galera
|
||||
port: 4567
|
||||
targetPort: galera
|
||||
{{- if $appProtocolAvailable }}
|
||||
appProtocol: mysql
|
||||
{{- end }}
|
||||
- name: ist
|
||||
port: 4568
|
||||
targetPort: ist
|
||||
{{- if $appProtocolAvailable }}
|
||||
appProtocol: mysql
|
||||
{{- end }}
|
||||
- name: sst
|
||||
port: 4444
|
||||
targetPort: sst
|
||||
{{- if $appProtocolAvailable }}
|
||||
appProtocol: mysql
|
||||
{{- end }}
|
||||
publishNotReadyAddresses: {{ .Values.service.headless.publishNotReadyAddresses }}
|
||||
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
|
||||
|
||||
@@ -43,6 +43,10 @@ spec:
|
||||
- name: mysql
|
||||
port: {{ .Values.service.ports.mysql }}
|
||||
targetPort: mysql
|
||||
{{- $appProtocolAvailable := (semverCompare ">=1.20-0" (include "common.capabilities.kubeVersion" .)) }}
|
||||
{{- if $appProtocolAvailable }}
|
||||
appProtocol: mysql
|
||||
{{- end }}
|
||||
{{- if and .Values.service.nodePorts.mysql (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) }}
|
||||
nodePort: {{ .Values.service.nodePorts.mysql }}
|
||||
{{- else if eq .Values.service.type "ClusterIP" }}
|
||||
|
||||
Reference in New Issue
Block a user