Skip to content
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/flat error events #189

Closed
wants to merge 48 commits into from
Closed

Feat/flat error events #189

wants to merge 48 commits into from

Conversation

rainest
Copy link
Owner

@rainest rainest commented Feb 9, 2023

Test PR to run against unreleased Kong in CI

rainest and others added 30 commits December 7, 2022 13:45
Add tags to generated resources indicating their source Kubernetes
resource. (WIP: Ingress v1 only for now)

When OnUpdateInMemoryMode receives a configuration rejected error from
the /config endpoint, parse the new tagged flat error array into a list
of errors associated with their source Kubernetes resource.

Generate a Kubernetes Event for all configuration rejection errors
associated with the source Kubernetes resource.
Add a utility function to generate Kubernetes resource metadata Kong
tags from a client.Object.

Use the utility to add tags to resources generated by the parser.
Track the parent xRoute/Ingress/etc. when populating services.

For cases where there is no proper Kubernetes Service to indicate as the
cause of a problem (multi-Service backends and default backends), add
tags indicating the parent route as the source of the Kong resource.

Handle a newly-discovered edge case in service generation that would
break service tag addition with a TODO. The bug predates this change,
but was apparently benign until this change.
These aren't even my changes golangci-lint! Begone!
@codecov-commenter
Copy link

Codecov Report

Base: 73.7% // Head: 72.6% // Decreases project coverage by -1.2% ⚠️

Coverage data is based on head (bf4c1e9) compared to base (4f2aaf7).
Patch coverage: 64.1% of modified lines in pull request are covered.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #189     +/-   ##
=======================================
- Coverage   73.7%   72.6%   -1.2%     
=======================================
  Files        111     122     +11     
  Lines      13285   14581   +1296     
=======================================
+ Hits        9803   10587    +784     
- Misses      2852    3318    +466     
- Partials     630     676     +46     
Impacted Files Coverage Δ
internal/adminapi/konnect.go 0.0% <0.0%> (ø)
internal/admission/utils.go 81.0% <0.0%> (ø)
...ntrollers/configuration/kongadminapi_controller.go 0.0% <0.0%> (ø)
internal/controllers/reference/reference.go 41.0% <0.0%> (ø)
internal/dataplane/parser/translators/httproute.go 94.9% <ø> (ø)
internal/dataplane/parser/wrappers_refchecker.go 64.4% <ø> (+9.2%) ⬆️
internal/diagnostics/server.go 70.1% <0.0%> (+0.8%) ⬆️
internal/konnect/client.go 0.0% <0.0%> (ø)
internal/konnect/node_agent.go 0.0% <0.0%> (ø)
internal/manager/controllerdef.go 98.7% <ø> (+<0.1%) ⬆️
... and 102 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rainest rainest closed this Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants