mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
14 lines
557 B
YAML
14 lines
557 B
YAML
{{- if and .Values.rbacEnable .Values.singleNamespaceInstall .Values.crNamespacedRbacEnable }}
|
|
{{- $watchNamespaces := default (list .Release.Namespace) .Values.watchNamespace }}
|
|
{{- range $namespace := $watchNamespaces }}
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: {{ include "kuberay-operator.fullname" $ }}
|
|
namespace: {{ $namespace }}
|
|
labels: {{ include "kuberay-operator.labels" $ | nindent 4 }}
|
|
{{ include "role.consistentRules" (dict "batchSchedulerEnabled" $.Values.batchScheduler.enabled) }}
|
|
{{- end }}
|
|
{{- end }}
|