diff --git a/src/test/resources/fixtures/kube_objects/kube_object_commonapigateways.json b/src/test/resources/fixtures/kube_objects/kube_object_commonapigateways.json index 3f417e1a..a3eb4c3e 100644 --- a/src/test/resources/fixtures/kube_objects/kube_object_commonapigateways.json +++ b/src/test/resources/fixtures/kube_objects/kube_object_commonapigateways.json @@ -1175,7 +1175,7 @@ { "apiVersion": "configuration.konghq.com/v1", "config": { - "header": "hello-world", + "header_name": "hello-world", "limit_by": "header", "minute": 60 }, diff --git a/templates/common_api_gateway.jsonnet b/templates/common_api_gateway.jsonnet index 73392ec0..1535b7ad 100644 --- a/templates/common_api_gateway.jsonnet +++ b/templates/common_api_gateway.jsonnet @@ -163,7 +163,7 @@ local create_kong_rate_limiter(environment, servicePrefix, typeIdentifier, gatew minute: rule.limit, limit_by: '%s' % rule.options, [if rule.options == 'path' then 'path' else null]: '%s' % forTheGateway, - [if rule.options == 'header' then 'header' else null]: '%s' % rule.header, + [if rule.options == 'header' then 'header_name' else null]: '%s' % rule.header, }, } for rule in rateLimitRules], };