first commit
This commit is contained in:
41
templates/test-runner-rbac.yaml
Normal file
41
templates/test-runner-rbac.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: {{ include "helm-charts-k8s.fullname" . }}-test-runner
|
||||
labels:
|
||||
app.kubernetes.io/component: amd-gpu
|
||||
app.kubernetes.io/part-of: amd-gpu
|
||||
{{- include "helm-charts-k8s.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- events
|
||||
verbs:
|
||||
- create
|
||||
- get
|
||||
- list
|
||||
- update
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- nodes
|
||||
verbs:
|
||||
- patch
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ include "helm-charts-k8s.fullname" . }}-test-runner
|
||||
labels:
|
||||
app.kubernetes.io/component: amd-gpu
|
||||
app.kubernetes.io/part-of: amd-gpu
|
||||
{{- include "helm-charts-k8s.labels" . | nindent 4 }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: '{{ include "helm-charts-k8s.fullname" . }}-test-runner'
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: amd-gpu-operator-test-runner
|
||||
namespace: '{{ .Release.Namespace }}'
|
||||
Reference in New Issue
Block a user