Akin
04/29/2022, 5:27 AMNiv Weiss
05/10/2022, 10:08 AMaws-load-balancer-controller
:
Error: cannot patch "aws-load-balancer-controller" with kind ServiceAccount: ServiceAccount "aws-load-balancer-controller" is invalid: [metadata.annotations: Invalid value: "'<http://eks.amazonaws.com/role-arn|eks.amazonaws.com/role-arn>'": prefix part a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. '<http://example.com|example.com>', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*'), metadata.annotations: Invalid value: "'<http://eks.amazonaws.com/role-arn|eks.amazonaws.com/role-arn>'": name part must consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]')]
Itās happening because of this:
"serviceAccount.annotations.'eks\\.amazonaws\\.com/role-arn'"
Iām trying to do the same as in helm (when Iām running it just with helm itās work.
This is what I run with helm:
helm install aws-load-balancer-controller eks/aws-load-balancer-controller -n kube-system --set clusterName=staging --set serviceAccount.annotations.'eks\.amazonaws\.com/role-arn'="arn:aws:iam::12345678:role/alb-staging"
and this is my TF code:
resource "helm_release" "alb" {
name = "aws-load-balancer-controller"
repository = "<https://aws.github.io/eks-charts>"
chart = "aws-load-balancer-controller"
namespace = "kube-system"
set {
name = "clusterName"
value = module.eks.cluster_name
}
set {
name = "serviceAccount.annotations.'eks\\.amazonaws\\.com/role-arn'"
value = aws_iam_role.alb_role.arn
}
}
Iām trying to understand how can I do the same as I do in helm (ā\.ā) on TF.
someone have an idea?Karolina JunÄytÄ
05/12/2022, 3:11 PMLuca Galante
Tim Fischer
05/16/2022, 10:56 AMSilvia Rhodes
05/19/2022, 2:29 PMDominic Walt
05/24/2022, 1:54 PMKarolina JunÄytÄ
06/02/2022, 8:46 AMAndy Kelly
06/29/2022, 10:17 AMAdeel Ahmad
07/05/2022, 7:55 PMAlex Fitzgerald
07/12/2022, 10:32 AMDhiraj Narwani
07/13/2022, 3:37 PMTerry Davis
07/22/2022, 1:09 PMFortunato
07/26/2022, 12:45 PMManoj Kumar
07/30/2022, 8:17 PMDominic Walt
08/11/2022, 1:34 PMCruise Hall
08/14/2022, 8:52 PMLights On
08/24/2022, 3:57 PMLights On
08/24/2022, 3:58 PMKarolina JunÄytÄ
08/26/2022, 9:10 AMKarolina JunÄytÄ
08/29/2022, 4:55 PMCraig Rodrigues
08/31/2022, 6:05 PMLinda Shay
09/08/2022, 1:39 PMKarolina JunÄytÄ
09/27/2022, 10:47 AMNaya Kumar
10/04/2022, 2:12 PMLights On
10/11/2022, 11:24 PMLights On
10/12/2022, 1:53 PMLights On
10/31/2022, 11:09 PM