apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: crd-controller rules: - apiGroups: ['source.fluxcd.io'] resources: ['*'] verbs: ['*'] - apiGroups: ['kustomize.fluxcd.io'] resources: ['*'] verbs: ['*'] - apiGroups: - "" resources: - configmaps - configmaps/status verbs: ['*'] - apiGroups: - "" resources: - events verbs: - create --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: crd-controller roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: crd-controller subjects: - kind: ServiceAccount name: default namespace: system