Skip to content

Add support for 'expression' routes #108

Open
@battlebyte

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions