2019-09-20 20:45:56 +00:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2019-05-08 17:21:58 +00:00
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: longhorn-bind
|
2020-07-08 23:56:34 +00:00
|
|
|
labels: {{- include "longhorn.labels" . | nindent 4 }}
|
2019-05-08 17:21:58 +00:00
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: longhorn-role
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: longhorn-service-account
|
2020-12-03 15:02:28 +00:00
|
|
|
namespace: {{ include "release_namespace" . }}
|
2022-11-21 08:04:00 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: longhorn-support-bundle
|
|
|
|
labels: {{- include "longhorn.labels" . | nindent 4 }}
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: cluster-admin
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: longhorn-support-bundle
|
|
|
|
namespace: {{ include "release_namespace" . }}
|
2023-08-24 11:12:38 +00:00
|
|
|
{{- if .Values.openshift.enabled }}
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: longhorn-ocp-privileged-bind
|
|
|
|
labels: {{- include "longhorn.labels" . | nindent 4 }}
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: longhorn-ocp-privileged-role
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: longhorn-service-account
|
|
|
|
namespace: {{ include "release_namespace" . }}
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: longhorn-ui-service-account
|
|
|
|
namespace: {{ include "release_namespace" . }}
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: default # supportbundle-agent-support-bundle uses default sa
|
|
|
|
namespace: {{ include "release_namespace" . }}
|
|
|
|
{{- end }}
|