# Source: mongodb-atlas-operator/templates/roles.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: mongodb-atlas-operator
  labels:
    helm.sh/chart: mongodb-atlas-operator-0.2.2
    app.kubernetes.io/name: mongodb-atlas-operator
    app.kubernetes.io/instance: mongodb-atlas-operator
    app.kubernetes.io/version: "0.5.0"
    app.kubernetes.io/managed-by: Helm
    gitops.jenkins-x.io/pipeline: 'namespaces'
  annotations:
    meta.helm.sh/release-name: 'mongodb-atlas-operator'
  namespace: atlas-operator
rules:
  - apiGroups:
      - ""
    resources:
      - secrets
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - update
      - watch
  - apiGroups:
      - atlas.mongodb.com
    resources:
      - atlasclusters
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - update
      - watch
  - apiGroups:
      - atlas.mongodb.com
    resources:
      - atlasclusters/status
    verbs:
      - get
      - patch
      - update
  - apiGroups:
      - atlas.mongodb.com
    resources:
      - atlasdatabaseusers
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - update
      - watch
  - apiGroups:
      - atlas.mongodb.com
    resources:
      - atlasdatabaseusers/status
    verbs:
      - get
      - patch
      - update
  - apiGroups:
      - atlas.mongodb.com
    resources:
      - atlasprojects
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - update
      - watch
  - apiGroups:
      - atlas.mongodb.com
    resources:
      - atlasprojects/status
    verbs:
      - get
      - patch
      - update
