apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: wavtool-ci-role
rules:
- apiGroups: ["", "extensions", "apps", "networking.k8s.io"]
  resources: ["deployments", "replicasets", "pods", "pods/attach", "pods/log", "jobs", "services", "ingresses"]
  verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["keda.sh"]
  resources: ["scaledjobs"]
  verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["batch"]
  resources: ["cronjobs"]
  verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: wavtool-ci-rolebinding
subjects:
- kind: Group
  name: wavtool:ci
  apiGroup: rbac.authorization.k8s.io
roleRef:
  kind: ClusterRole
  name: wavtool-ci-role
  apiGroup: rbac.authorization.k8s.io
