From 205ec3ac520145071654b267f7b94a6c99647d31 Mon Sep 17 00:00:00 2001 From: James Kinley Date: Tue, 7 Feb 2023 09:44:20 +0000 Subject: [PATCH 1/2] Fix post start hook with custom cluster domain --- charts/redpanda/templates/secrets.yaml | 2 +- charts/redpanda/templates/tests/test-kafka-produce-consume.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/redpanda/templates/secrets.yaml b/charts/redpanda/templates/secrets.yaml index d67296b2cc..002664b1c1 100644 --- a/charts/redpanda/templates/secrets.yaml +++ b/charts/redpanda/templates/secrets.yaml @@ -33,7 +33,7 @@ stringData: #!/usr/bin/env bash # the SERVICE_NAME comes from the metadata.name of the pod, essentially the POD_NAME - CURL_URL="{{ include "admin-http-protocol" . }}://${SERVICE_NAME}.{{ template "redpanda.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.listeners.admin.port }}" + CURL_URL="{{ include "admin-http-protocol" . }}://${SERVICE_NAME}.{{ template "redpanda.fullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain | trimSuffix "." }}:{{ .Values.listeners.admin.port }}" # commands used throughout CURL_NODE_ID_CMD="curl --silent --fail {{ include "admin-tls-curl-flags" . }} ${CURL_URL}/v1/node_config" diff --git a/charts/redpanda/templates/tests/test-kafka-produce-consume.yaml b/charts/redpanda/templates/tests/test-kafka-produce-consume.yaml index cccfd01239..232960e7ad 100644 --- a/charts/redpanda/templates/tests/test-kafka-produce-consume.yaml +++ b/charts/redpanda/templates/tests/test-kafka-produce-consume.yaml @@ -48,7 +48,7 @@ spec: image: {{ .Values.image.repository}}:{{ template "redpanda.tag" . }} env: - name: REDPANDA_BROKERS - value: "{{ include "redpanda.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.listeners.kafka.port }}" + value: "{{ include "redpanda.fullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain | trimSuffix "." }}:{{ .Values.listeners.kafka.port }}" - name: POD_NAME valueFrom: fieldRef: From 4f1adc23eeaac6bae2c4439a5948f02333a293e1 Mon Sep 17 00:00:00 2001 From: James Kinley Date: Tue, 7 Feb 2023 13:45:55 +0000 Subject: [PATCH 2/2] Bump chart version --- charts/redpanda/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/redpanda/Chart.yaml b/charts/redpanda/Chart.yaml index bd1d358d55..3289a943f1 100644 --- a/charts/redpanda/Chart.yaml +++ b/charts/redpanda/Chart.yaml @@ -23,7 +23,7 @@ type: application # The chart version and the app version are not the same and will not track # together. The chart version is a semver representation of changes to this # chart. -version: 2.8.0 +version: 2.8.1 # The app version is the default version of Redpanda to install. appVersion: v22.3.10