Skip to content

Instantly share code, notes, and snippets.

@estroz
Last active August 6, 2020 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save estroz/1b92102327817d198cb2dff97a730373 to your computer and use it in GitHub Desktop.
Save estroz/1b92102327817d198cb2dff97a730373 to your computer and use it in GitHub Desktop.
RBAC required to run a basic kuttl suite
apiVersion: v1
kind: ServiceAccount
metadata:
name: scorecard-kuttl
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: scorecard-kuttl
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: scorecard-kuttl
subjects:
- kind: ServiceAccount
name: scorecard-kuttl
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: scorecard-kuttl
rules:
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- apiGroups:
- events.k8s.io
resources:
- events
verbs:
- get
- list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment