# Source: jx-test/templates/gc-jobs-role.yaml
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: jx-test-gc
  annotations:
    meta.helm.sh/release-name: 'x-test'
  namespace: jx
  labels:
    gitops.jenkins-x.io/pipeline: 'namespaces'
rules:
  - apiGroups:
      - tf.isaaguilar.com
    resources:
      - terraforms
    verbs:
      - get
      - list
      - watch
      - create
      - delete
  - apiGroups:
      - coordination.k8s.io
    resources:
      - leases
    verbs:
      - get
      - list
      - watch
      - delete
  - apiGroups: ["batch", "extensions"]
    resources:
      - jobs
    verbs:
      - get
      - list
      - watch
      - delete
  - apiGroups:
      - ""
    resources:
      - pods
      - configmaps
      - secrets
    verbs:
      - get
      - list
      - watch
      - delete
