k8wiz
Flux CD
Medium
Security

A Kustomization in namespace team-a sets spec.decryption.secretRef.name: sops-age. Where does kustomize-controller look for that Secret?

Select your answer:

Show answer and explanation

Answer: In team-a, the Kustomization's own namespace

Explanation

secretRef is a local object reference with only a name, so the Secret must be in the same namespace as the Kustomization. targetNamespace only changes where the applied resources go. Only the global --sops-age-secret flag reads a Secret from the controller's own namespace.

Read more about Flux CD