mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-01 15:03:06 +02:00
fix: Wrap local.configmap_roles.groups with tolist() to avoid panic (#846)
This commit is contained in:
@@ -48,13 +48,13 @@ locals {
|
|||||||
{
|
{
|
||||||
rolearn = role["worker_role_arn"]
|
rolearn = role["worker_role_arn"]
|
||||||
username = "system:node:{{EC2PrivateDNSName}}"
|
username = "system:node:{{EC2PrivateDNSName}}"
|
||||||
groups = concat(
|
groups = tolist(concat(
|
||||||
[
|
[
|
||||||
"system:bootstrappers",
|
"system:bootstrappers",
|
||||||
"system:nodes",
|
"system:nodes",
|
||||||
],
|
],
|
||||||
role["platform"] == "windows" ? ["eks:kube-proxy-windows"] : []
|
role["platform"] == "windows" ? ["eks:kube-proxy-windows"] : []
|
||||||
)
|
))
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user