File tree 3 files changed +8
-2
lines changed
charts/kubernetes-dashboard
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 14
14
15
15
apiVersion : v2
16
16
name : kubernetes-dashboard
17
- version : 7.2 .0
17
+ version : 7.3 .0
18
18
description : General-purpose web UI for Kubernetes clusters
19
19
keywords :
20
20
- kubernetes
Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ app.kubernetes.io/part-of: {{ include "kubernetes-dashboard.name" . }}
78
78
{ {- define " kubernetes-dashboard.app.csrf.secret.value" -} }
79
79
{ {- $secretName := (include " kubernetes-dashboard.app.csrf.secret.name" .) -} }
80
80
{ {- $secret := lookup " v1" " Secret" .Release.Namespace $secretName -} }
81
- { {- if and $secret (hasKey $secret " data" ) (hasKey $secret .data " private.key" ) (index $secret .data " private.key" ) -} }
81
+ { {- if .Values.app.security.csrfKey -} }
82
+ private.key: { { .Values.app.security.csrfKey | b64enc | quote } }
83
+ { {- else if and $secret (hasKey $secret " data" ) (hasKey $secret .data " private.key" ) (index $secret .data " private.key" ) -} }
82
84
private.key: { { index $secret .data " private.key" } }
83
85
{ {- else -} }
84
86
private.key: { { randBytes 256 | b64enc | quote } }
Original file line number Diff line number Diff line change 26
26
# Ref: https://kubernetes.io/docs/user-guide/node-selection/
27
27
nodeSelector : {}
28
28
security :
29
+ # Allow overriding csrfKey used by API/Auth containers.
30
+ # It has to be base64 encoded random 256 bytes string.
31
+ # If empty, it will be autogenerated.
32
+ csrfKey : ~
29
33
# SecurityContext to be added to pods
30
34
# To disable set the following configuration to null:
31
35
# securityContext: null
You can’t perform that action at this time.
0 commit comments