forked from suse-edge/Factory
53 lines
1.8 KiB
YAML
53 lines
1.8 KiB
YAML
|
{{- if and .Values.master.enable .Values.master.rbac.create }}
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRoleBinding
|
||
|
metadata:
|
||
|
name: {{ include "node-feature-discovery.fullname" . }}
|
||
|
labels:
|
||
|
{{- include "node-feature-discovery.labels" . | nindent 4 }}
|
||
|
roleRef:
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
kind: ClusterRole
|
||
|
name: {{ include "node-feature-discovery.fullname" . }}
|
||
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: {{ include "node-feature-discovery.master.serviceAccountName" . }}
|
||
|
namespace: {{ include "node-feature-discovery.namespace" . }}
|
||
|
{{- end }}
|
||
|
|
||
|
{{- if and .Values.topologyUpdater.enable .Values.topologyUpdater.rbac.create }}
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRoleBinding
|
||
|
metadata:
|
||
|
name: {{ include "node-feature-discovery.fullname" . }}-topology-updater
|
||
|
labels:
|
||
|
{{- include "node-feature-discovery.labels" . | nindent 4 }}
|
||
|
roleRef:
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
kind: ClusterRole
|
||
|
name: {{ include "node-feature-discovery.fullname" . }}-topology-updater
|
||
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: {{ include "node-feature-discovery.topologyUpdater.serviceAccountName" . }}
|
||
|
namespace: {{ include "node-feature-discovery.namespace" . }}
|
||
|
{{- end }}
|
||
|
|
||
|
{{- if and .Values.gc.enable .Values.gc.rbac.create (or .Values.enableNodeFeatureApi .Values.topologyUpdater.enable) }}
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRoleBinding
|
||
|
metadata:
|
||
|
name: {{ include "node-feature-discovery.fullname" . }}-gc
|
||
|
labels:
|
||
|
{{- include "node-feature-discovery.labels" . | nindent 4 }}
|
||
|
roleRef:
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
kind: ClusterRole
|
||
|
name: {{ include "node-feature-discovery.fullname" . }}-gc
|
||
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: {{ include "node-feature-discovery.gc.serviceAccountName" . }}
|
||
|
namespace: {{ include "node-feature-discovery.namespace" . }}
|
||
|
{{- end }}
|