# helm-provider-rbac.yaml
apiVersion: kubernetes.crossplane.io/v1alpha2
kind: Object
metadata:
  name: helm-provider-clusterrole
  namespace: crossplane-system
spec:
  providerConfigRef:
    name: kubernetes-provider
  forProvider:
    manifest:
      apiVersion: rbac.authorization.k8s.io/v1
      kind: ClusterRole
      metadata:
        name: crossplane-provider-helm-admin
      rules:
      - apiGroups:
        - "*"
        resources:
        - "*"
        verbs:
        - "*"
---
apiVersion: kubernetes.crossplane.io/v1alpha2
kind: Object
metadata:
  name: helm-provider-binding
  namespace: crossplane-system
spec:
  providerConfigRef:
    name: kubernetes-provider
  forProvider:
    manifest:
      apiVersion: rbac.authorization.k8s.io/v1
      kind: ClusterRoleBinding
      metadata:
        name: crossplane-provider-helm-admin-binding
      subjects:
      - kind: ServiceAccount
        name: provider-helm-9fcd9ac09d15
        namespace: crossplane-system
      roleRef:
        kind: ClusterRole
        name: crossplane-provider-helm-admin
        apiGroup: rbac.authorization.k8s.io
