rancher-charts/charts/ui-plugin-operator/101.0.0+up0.1.0/templates/dashboardrole.yaml

34 lines
750 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ .Chart.Name }}-dashboard
namespace: {{ .Release.Namespace }}
labels:
app: {{ .Chart.Name }}
rules:
- apiGroups:
- ""
resources:
- services/proxy
resourceNames:
- "http:{{ .Chart.Name }}:{{ .Values.service.port }}"
- "https:{{ .Chart.Name }}:{{ .Values.service.port }}"
verbs:
- '*'
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ .Chart.Name }}-dashboard
namespace: {{ .Release.Namespace }}
labels:
app: {{ .Chart.Name }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ .Chart.Name }}-dashboard
subjects:
- kind: Group
name: system:authenticated
apiGroup: rbac.authorization.k8s.io