Skip to content

Konnect push fails instead of throttling on HTTP 429 #3959

@mflendrich

Description

@mflendrich

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

If the Konnect config push results in a HTTP 429 (meaning that KIC hit Konnect's rate limit), this gets reported back to the user as an error

time="2023-05-02T11:03:53-07:00" level=error msg="Failed pushing configuration to Konnect" error="performing update for https://us.kic.api.konghq.com/kic/api/runtime_groups/REDACTED failed: failed getting current state for https://us.kic.api.konghq.com/kic/api/runtime_groups/REDACTED: loading configuration from kong: acls: HTTP status 429 (message: \"API rate limit exceeded\")"

Expected Behavior

HTTP 429 should cause KIC to throttle the config push rather than to fail.

@GGabriele says we can achieve this by leveraging an equivalent of Kong/deck#705.

Steps To Reproduce

No response

Kong Ingress Controller version

2.9.*

Kubernetes version

n/a

Anything else?

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions