Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use array in ingress actions #3910

Open
petercipriano-ms opened this issue Oct 23, 2024 · 3 comments
Open

Cannot use array in ingress actions #3910

petercipriano-ms opened this issue Oct 23, 2024 · 3 comments

Comments

@petercipriano-ms
Copy link

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

@shraddhabang
Copy link
Collaborator

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

@petercipriano-ms
Copy link
Author

petercipriano-ms commented Oct 24, 2024

@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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants