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

Add support for 'expression' routes #108

Open
battlebyte opened this issue Jan 17, 2025 · 0 comments
Open

Add support for 'expression' routes #108

battlebyte opened this issue Jan 17, 2025 · 0 comments
Assignees

Comments

@battlebyte
Copy link

Currently, kong2tf generates the expresssion attribute if it is present in the kong configuration file, but Terraform fails to apply because it is currently not supported.

│ Error: Unsupported argument
│
│   on kevin-test-deck_merged.tf line 252, in resource "konnect_gateway_route" "capiexp-api-coxautoinc-com-widgets-__2":
│  252:   expression = "(lower(http.path) == \"/.widgets._-2\" || lower(http.path) ^= \"/.widgets._-2/\") && lower(http.host) == \"capiexp.api.coxautoinc.com\""
│
│ An argument named "expression" is not expected here.
╵
╷
│ Error: Unsupported argument
│
│   on kevin-test-deck_merged.tf line 255, in resource "konnect_gateway_route" "capiexp-api-coxautoinc-com-widgets-__2":
│  255:   priority = 0
│
│ An argument named "priority" is not expected here.

Expressions are supported in Konnect, but apparently not yet in the API as fas as can be seen in https://docs.konghq.com/konnect/api/control-plane-configuration/latest/#/Routes/create-route.

@mheap mheap self-assigned this Jan 31, 2025
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

2 participants