-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
kind/featureNew feature or requestNew feature or request
Description
What feature/behavior/change do you want?
When creating an IAMSerivceAccount you can reference wellKnownPolicies, e.g.:
iam:
withOIDC: true
serviceAccounts:
- metadata:
name: aws-load-balancer-controller
namespace: kube-system
wellKnownPolicies:
awsLoadBalancerController: truebut you can't do this for addons, depsite it creating an equiavlent IAMServiceAccount under the hood.
Example
The following config file:
addons:
- name: some-new-addon
wellKnownPolicies:
awsLoadBalancerController: trueShould result in the policies for awsLoadBalancerController getting added to the addons IAMServiceAccount. It should be equivalent to:
addons:
- name: some-new-addon
attachPolicy: # inline policy can be defined along with `attachPolicyARNs`
Version: "2012-10-17"
Statement:
- Effect: Allow
Action:
- "awsLoadBalancerController-actions"
...
Resource: '*'
....Why do you want this feature?
As more addons get introduced some of the existing wellKnownPolicies will be applicable, being able to use this is convienant
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/featureNew feature or requestNew feature or request