Skip to content

Commit

Permalink
apply PR 1175 to sn-platform chart (#1178)
Browse files Browse the repository at this point in the history
Signed-off-by: ericsyh <[email protected]>
(cherry picked from commit 813ae05)
  • Loading branch information
ericsyh committed Jun 28, 2024
1 parent 3bdc51c commit f83cabb
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 @@ -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;
Expand Down

0 comments on commit f83cabb

Please sign in to comment.