-
Notifications
You must be signed in to change notification settings - Fork 593
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
feat: populate Programmed condition for KongConsumer #4409
Conversation
e0b4c92
to
d6c2c27
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #4409 +/- ##
=======================================
+ Coverage 66.5% 66.8% +0.2%
=======================================
Files 158 159 +1
Lines 18556 18624 +68
=======================================
+ Hits 12352 12442 +90
+ Misses 5454 5428 -26
- Partials 750 754 +4
☔ View full report in Codecov by Sentry. |
d6c2c27
to
180d86a
Compare
What was the need for moving the referred objects update in the controllers? After that change, integration tests that involve Secrets are failing because the Secrets never get added to the store. Referred object updates (which tell the Secret controller to track the Secrets referenced by the Ingress or whatever) used to happen at line 404. The controller now exits and doesn't hit the referred update's new location at 429 because it's requeuing after seeing that the Ingress isn't configured in the proxy:
They never get configured because the parser can't find the Secrets they require:
|
fac6062
to
9b15fe4
Compare
Yeah... I see. The motivation was that once a Consumer's referred Secret doesn't exist, we will never get I fixed this by making the order depend on |
9b15fe4
to
a6390d2
Compare
c604f6c
to
ca1749d
Compare
ca1749d
to
cd6a62e
Compare
An envtest run encountered a data race: https://github.com/Kong/kubernetes-ingress-controller/actions/runs/5671617909/attempts/1?pr=4409 and https://gist.github.com/rainest/c65f15ad9fe052fb8981a224a9c7ab16 The failing code was added in https://github.com/Kong/kubernetes-ingress-controller/pull/4398/files, though this PR also includes a similar The race occurs in the depths of controller-runtime library code, and it's unclear if we actually did something wrong or if there's a bug in the underlying library. Reached out to CR chat to try and see: https://kubernetes.slack.com/archives/C02MRBMN00Z/p1690394875569169 We can presumably avoid this by manually managing our own locks to prevent invoking Not blocking this on that since the offending code is already in main, and because it's only a race in test harness code that wouldn't matter for release artifacts. |
It's being addressed in #4413. |
What this PR does / why we need it:
Populates
Programmed
condition forKongConsumer
objects.Which issue this PR fixes:
Part of #3344.
CHANGELOG.md
release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR