Skip to content

Commit

Permalink
apply PR 1175 to sn-platform chart
Browse files Browse the repository at this point in the history
Signed-off-by: ericsyh <[email protected]>
  • Loading branch information
ericsyh committed Jun 26, 2024
1 parent 39b260e commit 8643839
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,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;
Expand Down

0 comments on commit 8643839

Please sign in to comment.