apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

# Namespace is listed first and kustomize's kind ordering applies it ahead of the
# ServiceAccount/RoleBinding/Deployment, so `kubectl apply -k config` succeeds on
# a clean cluster without a separate namespace-creation step.
resources:
  - namespace.yaml
  - rbac/service_account.yaml
  - rbac/role.yaml
  - rbac/leader_election_role.yaml
  - rbac/leader_election_role_binding.yaml
  - manager/manager.yaml
