linkerd / linkerd2

Ultralight, security-first service mesh for Kubernetes. Main repo for Linkerd 2.x.
https://linkerd.io
Apache License 2.0
10.72k stars 1.28k forks source link

fix(test): ensure that the controller sets rate limit status #13377

Closed olix0r closed 6 days ago

olix0r commented 6 days ago

The http_local_rate_limit_policy test creates a resource with a status already hydrated, but status setting is a job of the controller.

This change updates the test to create a resource without a status and then to wait for the status to be set properly.

This will hopefully help us to avoid race conditions in this test whereby the API lookup can occur before the controller observes the resource creation.