-
Notifications
You must be signed in to change notification settings - Fork 589
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(konnect): account for config sync failures in reported node status #4029
Conversation
E2E (targeted) tests were started at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/5006144559 |
6baa1ee
to
1c1d482
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #4029 +/- ##
=======================================
+ Coverage 59.6% 59.9% +0.3%
=======================================
Files 149 149
Lines 16434 16462 +28
=======================================
+ Hits 9806 9873 +67
+ Misses 5995 5960 -35
+ Partials 633 629 -4
☔ View full report in Codecov by Sentry. |
5021770
to
9aa4cd7
Compare
667eff3
to
be6f805
Compare
E2E (targeted) tests were started at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/5012901967 |
It extends the config sync status reported to Konnect's Node API with values that take into account failures of syncing configuration with Konnect RG, effectively extending it with three new values (on the API surface level): - INGRESS_CONTROLLER_STATE_OPERATIONAL_KONNECT_OUT_OF_SYNC - INGRESS_CONTROLLER_STATE_PARTIAL_CONFIG_FAIL_KONNECT_OUT_OF_SYNC - INGRESS_CONTROLLER_STATE_INOPERABLE_KONNECT_OUT_OF_SYNC There's no strict contract for allowed values on the API level, however, there's an implicit contract between KIC and Konnect UI that directly consumes the Node object, therefore we're keeping the old values unchanged to make them backward-compatible.
be6f805
to
1dd0725
Compare
3c1b059
to
a74a800
Compare
What this PR does / why we need it:
It extends the config sync status reported to Konnect's Node API with values that take into account failures of syncing configuration with Konnect RG, effectively extending it with three new values (on the API surface level):
INGRESS_CONTROLLER_STATE_OPERATIONAL_KONNECT_OUT_OF_SYNC
INGRESS_CONTROLLER_STATE_PARTIAL_CONFIG_FAIL_KONNECT_OUT_OF_SYNC
INGRESS_CONTROLLER_STATE_INOPERABLE_KONNECT_OUT_OF_SYNC
There's no strict contract for allowed values on the API level, however, there's an implicit contract between KIC and Konnect UI that directly consumes the
Node
object, therefore we're keeping the old values unchanged to make them backward-compatible.Which issue this PR fixes:
Internal reference: K8-67.
PR Readiness Checklist:
Complete these before marking the PR as
ready to review
:CHANGELOG.md
release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR