Skip to content

Translation to Kong route for validation does not override by annotations #7344

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

Open
1 task done
randmonkey opened this issue Apr 14, 2025 · 0 comments · May be fixed by #7346
Open
1 task done

Translation to Kong route for validation does not override by annotations #7344

randmonkey opened this issue Apr 14, 2025 · 0 comments · May be fixed by #7346
Labels
bug Something isn't working

Comments

@randmonkey
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

From FTI-6622.
The customer adds annotation konghq.com/protocols:http,tcp to an ingress which are mutually exclusive in the protocols field in Kong routes. The ingress passes the KIC's validation webhook but causes invalid Kong configuration generated.
We found that when we translate the Ingress (and also HTTPRoute) to Kong routes for validation, we did not override the translated route for validation. So if the annotation causes the Kong route invalid, it passes the validation but is translated to invalid configuration when applying to Kong gateways.

Expected Behavior

The Ingress with invalid konghq.com/protocols is rejected in validation webhook.

Steps To Reproduce

1. Create an Ingress (say test-ingress)
2. Annotate the Ingress with the invalid protocol annotation konghq.com/protocols:http,tcp (kubectl annotate ingress/test-ingress konghq.com/protocols="http,tcp")
3. Run `kubectl describe ingress test-ingress`, you can see the `KongConfigurationApplyFailed` event.

Kong Ingress Controller version

3.4.4

Kubernetes version

Irrelevant.

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant