Skip to content

Commit 567a38f

Browse files
authored
feat(chart): bump chart to 7.3.0 (#8896)
* bump chart to 7.3.0 * allow overriding csrfkey with custom value * nit: remove empty line from template
1 parent 6becc85 commit 567a38f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

charts/kubernetes-dashboard/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
apiVersion: v2
1616
name: kubernetes-dashboard
17-
version: 7.2.0
17+
version: 7.3.0
1818
description: General-purpose web UI for Kubernetes clusters
1919
keywords:
2020
- kubernetes

charts/kubernetes-dashboard/templates/_helpers.tpl

+3-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ app.kubernetes.io/part-of: {{ include "kubernetes-dashboard.name" . }}
7878
{{- define "kubernetes-dashboard.app.csrf.secret.value" -}}
7979
{{- $secretName := (include "kubernetes-dashboard.app.csrf.secret.name" .) -}}
8080
{{- $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") -}}
8284
private.key: {{ index $secret.data "private.key" }}
8385
{{- else -}}
8486
private.key: {{ randBytes 256 | b64enc | quote }}

charts/kubernetes-dashboard/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ app:
2626
# Ref: https://kubernetes.io/docs/user-guide/node-selection/
2727
nodeSelector: {}
2828
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: ~
2933
# SecurityContext to be added to pods
3034
# To disable set the following configuration to null:
3135
# securityContext: null

0 commit comments

Comments
 (0)