From 8ca2d5d8c9cc8a1c828b23b4e57e9d32097635b4 Mon Sep 17 00:00:00 2001 From: Faraaz Khan Date: Wed, 20 Mar 2019 19:45:37 -0400 Subject: [PATCH] ensure service name is always within char limit (#12034) Signed-off-by: Faraaz Khan --- stable/rabbitmq-ha/Chart.yaml | 2 +- stable/rabbitmq-ha/templates/service-discovery.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/rabbitmq-ha/Chart.yaml b/stable/rabbitmq-ha/Chart.yaml index ea15f8c67d..e7220e149f 100644 --- a/stable/rabbitmq-ha/Chart.yaml +++ b/stable/rabbitmq-ha/Chart.yaml @@ -1,7 +1,7 @@ name: rabbitmq-ha apiVersion: v1 appVersion: 3.7.12 -version: 1.22.1 +version: 1.22.2 description: Highly available RabbitMQ cluster, the open source message broker software that implements the Advanced Message Queuing Protocol (AMQP). keywords: diff --git a/stable/rabbitmq-ha/templates/service-discovery.yaml b/stable/rabbitmq-ha/templates/service-discovery.yaml index 442fe5c513..60c5358b5a 100644 --- a/stable/rabbitmq-ha/templates/service-discovery.yaml +++ b/stable/rabbitmq-ha/templates/service-discovery.yaml @@ -6,7 +6,7 @@ metadata: {{- if .Values.service.annotations }} {{ toYaml .Values.service.annotations | indent 4 }} {{- end }} - name: {{ template "rabbitmq-ha.fullname" . }}-discovery + name: {{ printf "%s-discovery" (include "rabbitmq-ha.fullname" .) | trunc 63 | trimSuffix "-" }} labels: app: {{ template "rabbitmq-ha.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}