kubernetes-sigs / aws-load-balancer-controller

A Kubernetes controller for Elastic Load Balancers
https://kubernetes-sigs.github.io/aws-load-balancer-controller/
Apache License 2.0
3.95k stars 1.47k forks source link

Cannot use array in ingress actions #3910

Open petercipriano-ms opened 1 month ago

petercipriano-ms commented 1 month ago

json: cannot unmarshal string into Go value of type ingress.Action

shraddhabang commented 4 weeks ago

@petercipriano-ms Can you please provide the manifest, controller logs and controller version?

petercipriano-ms commented 4 weeks ago

@shraddhabang sure.

Controller: image: public.ecr.aws/eks/aws-load-balancer-controller:v2.6.2

Just an info I'm trying below

alb.ingress.kubernetes.io/actions.{{ $fullName }}: > [{"type":"forward","targetGroupARN":"{{ $albSingleTargetGroup }}"},{"type":"fixed-response","fixedResponseConfig":{"contentType":"text/plain","statusCode":"200","messageBody":"Path is {{ $pathsStr }}" }}]

zac-nixon commented 4 weeks ago

I think you have to specify the annotation as a string (annotations AFAIK are always strings)