apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: role
rules:
  - apiGroups: ["apps"]
    resources: ["deployments", "statefulset"]
    verbs: ["*"]
  - apiGroups: [""]
    resources: ["secrets", "configmaps", "serviceaccounts", "services"]
    verbs: ["*"]
  - apiGroups: ["batch"]
    resources: ["cronjobs","jobs"]
    verbs: ["*"]
  - apiGroups: ["route.openshift.io"]
    resources: ["routes"]
    verbs: ["*"]
