From f83cabb635094df57a17347ad9d9f7c2580a6eae Mon Sep 17 00:00:00 2001 From: Eric Shen Date: Fri, 28 Jun 2024 15:58:30 +0800 Subject: [PATCH] apply PR 1175 to sn-platform chart (#1178) Signed-off-by: ericsyh (cherry picked from commit 813ae05b0a6d3e2a7d93f5f8a641f05fa1cda3ce) --- .../templates/toolset/jwt-secret-init-job.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml b/charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml index 312067d97..8e70cec4a 100644 --- a/charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml +++ b/charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml @@ -79,18 +79,18 @@ spec: args: - | set -ex; - mkdir -p scripts/pulsar; - cp scripts/jwt-secret-config/* scripts/pulsar; - chmod +x scripts/pulsar/*; + mkdir -p /tmp/scripts/pulsar; + cp scripts/jwt-secret-config/* /tmp/scripts/pulsar; + chmod +x /tmp/scripts/pulsar/*; usingSecretKey={{ .Values.auth.authentication.jwt.usingSecretKey }}; - ls -lh scripts/pulsar/; + ls -lh /tmp/scripts/pulsar/; export KUBECTL_BIN=/tmp/binaries/kubectl; - export OUTPUT=scripts/pulsar/output; + export OUTPUT=/tmp/scripts/pulsar/output; mkdir ${OUTPUT}; if [ "${usingSecretKey}" = "true" ]; then - ./scripts/pulsar/prepare_helm_release.sh -n {{ template "pulsar.namespace" . }} -k {{ .Release.Name }} --symmetric; + /tmp/scripts/pulsar/prepare_helm_release.sh -n {{ template "pulsar.namespace" . }} -k {{ .Release.Name }} --symmetric; else - ./scripts/pulsar/prepare_helm_release.sh -n {{ template "pulsar.namespace" . }} -k {{ .Release.Name }}; + /tmp/scripts/pulsar/prepare_helm_release.sh -n {{ template "pulsar.namespace" . }} -k {{ .Release.Name }}; fi; curl -sf -XPOST http://127.0.0.1:15020/quitquitquit || true;