k8wiz
Flux CD
Medium
Security

What does the --no-cross-namespace-refs=true flag on the Flux controllers do?

Select your answer:

Show answer and explanation

Answer: Stops Flux objects from referring to sources or objects in other namespaces

Explanation

Without the flag, a Kustomization in a tenant namespace can point at a GitRepository in another namespace. With it, references must stay in the object's own namespace, which is a key step in locking down a multi-tenant cluster.