From 867fc4d67dccf584d62d8d8be4ca9146e901b113 Mon Sep 17 00:00:00 2001 From: Chris Thornton Date: Tue, 7 May 2024 11:22:03 -0700 Subject: [PATCH] [bitnami/redis] Add option to change port name in master service Addresses #25228 Signed-off-by: Chris Thornton --- bitnami/redis/Chart.yaml | 2 +- bitnami/redis/README.md | 3 ++- bitnami/redis/templates/master/service.yaml | 2 +- bitnami/redis/values.yaml | 4 ++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bitnami/redis/Chart.yaml b/bitnami/redis/Chart.yaml index 5ab060989ee307..d689f6af9c4d49 100644 --- a/bitnami/redis/Chart.yaml +++ b/bitnami/redis/Chart.yaml @@ -36,4 +36,4 @@ maintainers: name: redis sources: - https://github.com/bitnami/charts/tree/main/bitnami/redis -version: 19.2.0 +version: 19.3.0 diff --git a/bitnami/redis/README.md b/bitnami/redis/README.md index b1ea4eaa312837..162ca27b2b7691 100644 --- a/bitnami/redis/README.md +++ b/bitnami/redis/README.md @@ -584,6 +584,7 @@ helm install my-release --set master.persistence.existingClaim=PVC_NAME oci://RE | `master.persistentVolumeClaimRetentionPolicy.whenScaled` | Volume retention behavior when the replica count of the StatefulSet is reduced | `Retain` | | `master.persistentVolumeClaimRetentionPolicy.whenDeleted` | Volume retention behavior that applies when the StatefulSet is deleted | `Retain` | | `master.service.type` | Redis® master service type | `ClusterIP` | +| `master.service.portNames.redis` | Redis® master service port name | `tcp-redis` | | `master.service.ports.redis` | Redis® master service port | `6379` | | `master.service.nodePorts.redis` | Node port for Redis® master | `""` | | `master.service.externalTrafficPolicy` | Redis® master service external traffic policy | `Cluster` | @@ -1269,4 +1270,4 @@ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and -limitations under the License. \ No newline at end of file +limitations under the License. diff --git a/bitnami/redis/templates/master/service.yaml b/bitnami/redis/templates/master/service.yaml index 87b5601d9f532c..b9bf47dac18350 100644 --- a/bitnami/redis/templates/master/service.yaml +++ b/bitnami/redis/templates/master/service.yaml @@ -45,7 +45,7 @@ spec: externalIPs: {{- include "common.tplvalues.render" (dict "value" .Values.master.service.externalIPs "context" $) | nindent 4 }} {{- end }} ports: - - name: tcp-redis + - name: {{ .Values.master.service.portNames.redis }} port: {{ .Values.master.service.ports.redis }} targetPort: redis {{- if and (or (eq .Values.master.service.type "NodePort") (eq .Values.master.service.type "LoadBalancer")) .Values.master.service.nodePorts.redis}} diff --git a/bitnami/redis/values.yaml b/bitnami/redis/values.yaml index 0d1e72552e6173..0237089e522de5 100644 --- a/bitnami/redis/values.yaml +++ b/bitnami/redis/values.yaml @@ -533,6 +533,10 @@ master: ## @param master.service.type Redis® master service type ## type: ClusterIP + ## @param master.service.portNames.redis Redis® master service port name + ## + portNames: + redis: "tcp-redis" ## @param master.service.ports.redis Redis® master service port ## ports: