Skip to content

Instantly share code, notes, and snippets.

@mszostok
Created August 30, 2023 12:24
Show Gist options
  • Save mszostok/9768dccc1fd707f63c1bae83b73af949 to your computer and use it in GitHub Desktop.
Save mszostok/9768dccc1fd707f63c1bae83b73af949 to your computer and use it in GitHub Desktop.
ClusterRole and Binding for the Botkube Flux plugin
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: flux-read-patch
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["get", "watch", "list", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: flux-read-patch
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: flux-read-patch
subjects:
- kind: Group
name: flux-read-patch
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment