github.com/jenkins-x/test-infra@v0.0.7/prow/cluster/hook_rbac.yaml (about) 1 apiVersion: v1 2 kind: ServiceAccount 3 metadata: 4 namespace: default 5 name: "hook" 6 --- 7 kind: Role 8 apiVersion: rbac.authorization.k8s.io/v1beta1 9 metadata: 10 namespace: default 11 name: "hook" 12 rules: 13 - apiGroups: 14 - "prow.k8s.io" 15 resources: 16 - prowjobs 17 verbs: 18 - create 19 - get 20 - apiGroups: 21 - "" 22 resources: 23 - configmaps 24 verbs: 25 - create 26 - update 27 --- 28 kind: RoleBinding 29 apiVersion: rbac.authorization.k8s.io/v1beta1 30 metadata: 31 namespace: default 32 name: "hook" 33 roleRef: 34 apiGroup: rbac.authorization.k8s.io 35 kind: Role 36 name: "hook" 37 subjects: 38 - kind: ServiceAccount 39 name: "hook"