Skip to content

Commit e5a51ac

Browse files
committed
Merge branch 'master' of github.com:kubernetes/dashboard
2 parents 6673cdf + 6d9bbcf commit e5a51ac

File tree

8 files changed

+35
-9
lines changed

8 files changed

+35
-9
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.1.3
17+
version: 7.2.0
1818
description: General-purpose web UI for Kubernetes clusters
1919
keywords:
2020
- kubernetes

charts/kubernetes-dashboard/templates/_helpers.tpl

+10
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ app.kubernetes.io/part-of: {{ include "kubernetes-dashboard.name" . }}
7575
{{- printf "private.key" }}
7676
{{- end -}}
7777

78+
{{- define "kubernetes-dashboard.app.csrf.secret.value" -}}
79+
{{- $secretName := (include "kubernetes-dashboard.app.csrf.secret.name" .) -}}
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") -}}
82+
private.key: {{ index $secret.data "private.key" }}
83+
{{- else -}}
84+
private.key: {{ randBytes 256 | b64enc | quote }}
85+
{{- end -}}
86+
{{- end -}}
87+
7888
{{- define "kubernetes-dashboard.metrics-scraper.name" -}}
7989
{{- printf "%s-%s" ( include "kubernetes-dashboard.fullname" . ) ( .Values.metricsScraper.role )}}
8090
{{- end -}}

charts/kubernetes-dashboard/templates/deployments/api.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ spec:
4646
app.kubernetes.io/version: {{ .Values.api.image.tag }}
4747
app.kubernetes.io/component: {{ .Values.api.role }}
4848
annotations:
49-
{{/* Ensure that the deployment is rolled on upgrade since CSRF key will be regenerated. */}}
50-
rollme: {{ randAlphaNum 5 | quote }}
49+
checksum/config: {{ include (print $.Template.BasePath "/secrets/csrf.yaml") . | sha256sum }}
5150
{{- with .Values.api.annotations }}
5251
{{ toYaml . | nindent 8 }}
5352
{{- end }}
@@ -112,6 +111,10 @@ spec:
112111
{{ toYaml . | nindent 8 }}
113112
{{- end }}
114113

114+
{{- with .Values.app.priorityClassName }}
115+
priorityClassName: {{ . }}
116+
{{- end }}
117+
115118
{{- if or .Values.api.nodeSelector .Values.app.scheduling.nodeSelector }}
116119
nodeSelector:
117120
{{- with .Values.api.nodeSelector }}

charts/kubernetes-dashboard/templates/deployments/auth.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ spec:
4949
app.kubernetes.io/version: {{ .Values.auth.image.tag }}
5050
app.kubernetes.io/component: {{ .Values.auth.role }}
5151
annotations:
52-
{{/* Ensure that the deployment is rolled on upgrade since CSRF key will be regenerated. */}}
53-
rollme: {{ randAlphaNum 5 | quote }}
52+
checksum/config: {{ include (print $.Template.BasePath "/secrets/csrf.yaml") . | sha256sum }}
5453
{{- with .Values.auth.annotations }}
5554
{{ toYaml . | nindent 8 }}
5655
{{- end }}
@@ -113,6 +112,10 @@ spec:
113112
{{ toYaml . | nindent 8 }}
114113
{{- end }}
115114

115+
{{- with .Values.app.priorityClassName }}
116+
priorityClassName: {{ . }}
117+
{{- end }}
118+
116119
{{- if or .Values.auth.nodeSelector .Values.app.scheduling.nodeSelector }}
117120
nodeSelector:
118121
{{- with .Values.auth.nodeSelector }}

charts/kubernetes-dashboard/templates/deployments/metrics-scraper.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ spec:
110110
{{ toYaml . | nindent 8 }}
111111
{{- end }}
112112

113+
{{- with .Values.app.priorityClassName }}
114+
priorityClassName: {{ . }}
115+
{{- end }}
116+
113117
{{- if or .Values.metricsScraper.nodeSelector .Values.app.scheduling.nodeSelector }}
114118
nodeSelector:
115119
{{- with .Values.metricsScraper.nodeSelector }}

charts/kubernetes-dashboard/templates/deployments/web.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ spec:
107107
{{ toYaml . | nindent 8 }}
108108
{{- end }}
109109

110+
{{- with .Values.app.priorityClassName }}
111+
priorityClassName: {{ . }}
112+
{{- end }}
113+
110114
{{- if or .Values.web.nodeSelector .Values.app.scheduling.nodeSelector }}
111115
nodeSelector:
112116
{{- with .Values.web.nodeSelector }}

charts/kubernetes-dashboard/templates/secrets/csrf.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ metadata:
1919
{{- include "kubernetes-dashboard.labels" . | nindent 4 }}
2020
name: {{ template "kubernetes-dashboard.app.csrf.secret.name" . }}
2121
data:
22-
{{ template "kubernetes-dashboard.app.csrf.secret.key" . }}: {{ randBytes 256 | b64enc | quote }}
22+
{{ (include "kubernetes-dashboard.app.csrf.secret.value" . ) -}}

charts/kubernetes-dashboard/values.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ app:
5555
# Common labels & annotations shared across all deployed resources
5656
labels: {}
5757
annotations: {}
58+
# Common priority class used for all deployed resources
59+
priorityClassName: null
5860
settings:
5961
## Global dashboard settings
6062
global:
@@ -143,7 +145,7 @@ auth:
143145
limits:
144146
cpu: 250m
145147
memory: 400Mi
146-
automountServiceAccountToken: false
148+
automountServiceAccountToken: true
147149
volumes:
148150
# Create on-disk volume to store exec logs (required)
149151
- name: tmp-volume
@@ -158,7 +160,7 @@ api:
158160
role: api
159161
image:
160162
repository: docker.io/kubernetesui/dashboard-api
161-
tag: 1.4.0
163+
tag: 1.4.1
162164
scaling:
163165
replicas: 1
164166
revisionHistoryLimit: 10
@@ -341,7 +343,7 @@ kong:
341343
enabled: true
342344
## Configuration reference: https://docs.konghq.com/gateway/3.6.x/reference/configuration
343345
env:
344-
dns_order: A,CNAME,LAST,SRV
346+
dns_order: A,CNAME,LAST,AAAA,SRV
345347
plugins: 'off'
346348
nginx_worker_processes: 1
347349
ingressController:

0 commit comments

Comments
 (0)