- apiVersion: "v1"
  kindsRegexp: "^namespaces$"
  resourceNameRegexp: "^fleet-"
- apiVersion: "v1"
  kindsRegexp: "^namespaces$"
  labelSelectors:
    matchExpressions:
      - key: "app.kubernetes.io/managed-by"
        operator: "In"
        values: ["rancher"]
- apiVersion: "v1"
  kindsRegexp: "^serviceaccounts$"
  namespaceRegexp: "^cattle-fleet-|^fleet-"
  excludeResourceNameRegexp: "^default$"
- apiVersion: "v1"
  kindsRegexp: "^configmaps$"
  namespaceRegexp: "^cattle-fleet-|^fleet-"
- apiVersion: "rbac.authorization.k8s.io/v1"
  kindsRegexp: "^roles$|^rolebindings$"
  namespaceRegexp: "^cattle-fleet-|^fleet-"
- apiVersion: "rbac.authorization.k8s.io/v1"
  kindsRegexp: "^clusterrolebindings$"
  resourceNameRegexp: "^fleet-|^gitjob-"
- apiVersion: "rbac.authorization.k8s.io/v1"
  kindsRegexp: "^clusterroles$"
  resourceNameRegexp: "^fleet-"
  resourceNames:
    - "gitjob"
- apiVersion: "apiextensions.k8s.io/v1"
  kindsRegexp: "."
  resourceNameRegexp: "fleet.cattle.io$|gitjob.cattle.io$"
- apiVersion: "fleet.cattle.io/v1alpha1"
  kindsRegexp: "."
  excludeKinds:
    - "bundledeployments"
- apiVersion: "gitjob.cattle.io/v1"
  kindsRegexp: "."
- apiVersion: "apps/v1"
  kindsRegexp: "^deployments$"
  namespaceRegexp: "^cattle-fleet-|^fleet-"
  resourceNameRegexp: "^fleet-"
  resourceNames:
    - "gitjob"
- apiVersion: "apps/v1"
  kindsRegexp: "^services$"
  namespaceRegexp: "^cattle-fleet-|^fleet-"
  resourceNames:
    - "gitjob"
