The podwatcher code is not used since a long time. It was introduced in the initial implementation before AWSIAMRole resources existed. Back then the controller watched the pods to check for role requirements, but in the current implementation it just looks at the AWSIAMRoles to reconcile what secrets need to be created/updated/removed.
Zalando ran without access to list pods for a long time, so the podWatcher code is really not needed.
The podwatcher code is not used since a long time. It was introduced in the initial implementation before
AWSIAMRole
resources existed. Back then the controller watched the pods to check for role requirements, but in the current implementation it just looks at the AWSIAMRoles to reconcile what secrets need to be created/updated/removed.Zalando ran without access to list pods for a long time, so the podWatcher code is really not needed.