jtblin / kube2iam

kube2iam provides different AWS IAM roles for pods running on Kubernetes
BSD 3-Clause "New" or "Revised" License
1.98k stars 319 forks source link

Default role per namespace #236

Open jesstracy opened 4 years ago

jesstracy commented 4 years ago

It would be useful for us to have the ability to set a default role to assume per namespace in addition to the default role for everything in the cluster. i.e., if there is no iam.amazonaws.com/role annotation on the pod, default to the default role on the namespace that pod lives in. And if there is no default role set for the namespace, default to the default role for the cluster. If I tried making a PR for this, would that be a feature you'd consider merging in? thanks!!