Repository navigation
Commit d6ca4b7
feat: grant a default set of admin roles cluster access on every cluster (#82)
* feat: grant a default set of admin roles cluster access on every cluster
Adds eks_default_admin_role_names (default admin-dply-terraform, comet-admin). The
roles are looked up by name in the cluster's account, so the ARN carries the role's
path (role/system/comet-admin) and a missing role fails at plan, not at
CreateAccessEntry. They are merged with eks_admin_role_arns into one ARN-keyed set, so
existing entries keep their keys and a principal listed in both gets one entry.
Wrappers get the baseline on the version bump; set the variable to [] or a shorter
list where a role doesn't exist (e.g. a cluster in another account).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix: skip the default admin role lookup in CONFIG_MAP mode
CONFIG_MAP clusters have no access entries, so the defaults can't apply there and the
lookup would only add a way for the plan to fail.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 67f51b8 commit d6ca4b7
4 files changed
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | | - | |
| 166 | + | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| |||
1075 | 1077 | | |
1076 | 1078 | | |
1077 | 1079 | | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1078 | 1087 | | |
1079 | 1088 | | |
1080 | 1089 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
443 | 449 | | |
444 | 450 | | |
445 | 451 | | |
| |||
0 commit comments