k8wiz
Kustomize
Hard
Concepts

A kustomization sets namespace: team-a and includes a ClusterRole. What happens to the ClusterRole?

Select your answer:

Show answer and explanation

Answer: Nothing, because cluster-scoped resources don't get a namespace

Explanation

Kustomize knows which built-in kinds are cluster-scoped, such as ClusterRole, Namespace and CustomResourceDefinition, and leaves them alone. Namespaced resources get team-a whatever the manifests said.