Skip to content

Commit

Permalink
Update jwt-secret-init-job.yaml (#1175)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat committed Jun 18, 2024
1 parent 8e4b083 commit 3bdc51c
Showing 1 changed file with 8 additions and 8 deletions.
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;
{{- if .Values.toolset.resources }}
Expand All @@ -106,4 +106,4 @@ spec:
{{- if .Values.toolset.securityContext }}
securityContext: {{- toYaml .Values.toolset.securityContext | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 3bdc51c

Please sign in to comment.