mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-23 01:49:06 +01:00
Support map users and roles to multiple groups (#424)
* Support map users and roles to multiple groups * Simplify code by rename `user_arn` to `userarn`, `role_arn` to `rolearn` * Next version should be 6.x because PR this is a breaking change. * Update example variables.tf * Change indent to 2 * Fix map-aws-auth.yaml maybe invalid yaml.
This commit is contained in:
@@ -1 +0,0 @@
|
||||
- "${account_number}"
|
||||
@@ -1,4 +0,0 @@
|
||||
- rolearn: ${role_arn}
|
||||
username: ${username}
|
||||
groups:
|
||||
- ${group}
|
||||
@@ -1,4 +0,0 @@
|
||||
- userarn: ${user_arn}
|
||||
username: ${username}
|
||||
groups:
|
||||
- ${group}
|
||||
@@ -6,8 +6,14 @@ metadata:
|
||||
data:
|
||||
mapRoles: |
|
||||
${worker_role_arn}
|
||||
${map_roles}
|
||||
%{if chomp(map_roles) != "[]" }
|
||||
${indent(4, map_roles)}
|
||||
%{ endif }
|
||||
%{if chomp(map_users) != "[]" }
|
||||
mapUsers: |
|
||||
${map_users}
|
||||
${indent(4, map_users)}
|
||||
%{ endif }
|
||||
%{if chomp(map_accounts) != "[]" }
|
||||
mapAccounts: |
|
||||
${map_accounts}
|
||||
${indent(4, map_accounts)}
|
||||
%{ endif }
|
||||
|
||||
Reference in New Issue
Block a user