File tree Expand file tree Collapse file tree 4 files changed +22
-11
lines changed Expand file tree Collapse file tree 4 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ maintainers:
19
19
name : Jaime Piña
20
20
url : https://github.com/variadico
21
21
name : nats
22
- version : 0.13.4
22
+ version : 0.13.5
Original file line number Diff line number Diff line change @@ -482,11 +482,13 @@ data:
482
482
system_account: {{ . }}
483
483
{{- end }}
484
484
485
- {{- with .Values.auth.token }}
486
485
authorization {
487
- token: "{{ . }}"
488
-
489
-
486
+ {{- if .Values.auth.token }}
487
+ token: "{{ .Values.auth.token }}"
488
+ {{- else if .Values.auth.secret }}
489
+ token: $AUTH_TOKEN
490
+ {{- end }}
491
+
490
492
{{- if $.Values.auth.timeout }}
491
493
timeout: {{ $.Values.auth.timeout }}
492
494
{{- end }}
@@ -539,6 +541,4 @@ data:
539
541
accounts: {{- toRawJson . }}
540
542
{{- end }}
541
543
542
- {{- end }}
543
-
544
- {{- end }}
544
+ {{- end }}
Original file line number Diff line number Diff line change @@ -318,7 +318,6 @@ spec:
318
318
fieldPath : metadata.namespace
319
319
- name : CLUSTER_ADVERTISE
320
320
value : {{ include "nats.clusterAdvertise" . }}
321
-
322
321
{{- if .Values.nats.jetstream.enabled }}
323
322
{{- with .Values.nats.jetstream.encryption }}
324
323
{{- with .secret }}
@@ -330,6 +329,13 @@ spec:
330
329
{{- end }}
331
330
{{- end }}
332
331
{{- end }}
332
+ {{- if and .Values.auth.enabled .Values.auth.secret }}
333
+ - name : AUTH_TOKEN
334
+ valueFrom :
335
+ secretKeyRef :
336
+ name : {{ .Values.auth.secret.name }}
337
+ key : {{ .Values.auth.secret.key }}
338
+ {{- end }}
333
339
volumeMounts :
334
340
- name : config-volume
335
341
mountPath : /etc/nats-config
Original file line number Diff line number Diff line change @@ -531,8 +531,13 @@ auth:
531
531
# name: operator-jwt
532
532
# key: KO.jwt
533
533
534
- # Token authentication
535
- # token:
534
+ # Use key if you want to provide the token via Helm Values
535
+ # token:
536
+
537
+ # Use a secret reference if you want to get a token from a secret
538
+ # secret:
539
+ # name: "nats-token"
540
+ # key: "key"
536
541
537
542
# NKey authentication
538
543
# nkeys:
You can’t perform that action at this time.
0 commit comments