let the disable-automountserviceaccounttoken Kyverno policy apply on existing ns/SAs
Closes #1736 (closed)
The disable-automountserviceaccounttoken Kyverno policy is modified to apply on already created resources.
A side benefit is that the namespace-defs unit does not need to depend on kyverno-policies anymore, which simplifies our dependency graph and will help unlock a circular dependency issue in !2962 (merged).
result (from the CI pipelines in this MRà:
kind: ServiceAccount
metadata:
namespace: kube-system
name: default
automountServiceAccountToken: false <<<<<<<<<<<
Edited by Thomas Morin