Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom rules for read-only mode #7152

Merged
merged 3 commits into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aio/deploy/helm-chart/kubernetes-dashboard/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

apiVersion: v2
name: kubernetes-dashboard
version: 5.8.0
version: 5.9.0
appVersion: 2.6.1
description: General-purpose web UI for Kubernetes clusters
keywords:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,7 @@ rules:
- get
- list
- watch
{{- with .Values.rbac.clusterReadOnlyRoleAdditionalRules -}}
{{ toYaml . | nindent 2 }}
{{- end }}
{{- end -}}
3 changes: 3 additions & 0 deletions aio/deploy/helm-chart/kubernetes-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ rbac:
#
# Independent from rbac.create parameter.
clusterReadOnlyRole: false
# It is possible to add additional rules if read only role is enabled.
# This can be useful, for example, to show CRD resources.
# clusterReadOnlyRoleAdditionalRules: []

serviceAccount:
# Specifies whether a service account should be created
Expand Down