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

fix(kuma-cp) disable zone #2884

Merged
merged 3 commits into from
Oct 5, 2021
Merged

fix(kuma-cp) disable zone #2884

merged 3 commits into from
Oct 5, 2021

Conversation

lobkovilya
Copy link
Contributor

Summary

A bug that didn't allow users to disable a zone.

Full changelog

  • add e2e test
  • fix the bug

Issues resolved

N/A

Documentation

N/A

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Backwards compatibility

  • Add backport-to-stable label if the code is backwards compatible. Otherwise, list breaking changes.

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
consecutive = 0
}
return consecutive == 20
}, "30s", "10ms").Should(BeTrue())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should use CollectResponsesByInstance instead of rebuilding the logic.

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
@codecov-commenter
Copy link

Codecov Report

Merging #2884 (97be4ad) into master (be56c7c) will increase coverage by 0.00%.
The diff coverage is 14.28%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2884   +/-   ##
=======================================
  Coverage   52.31%   52.31%           
=======================================
  Files         900      900           
  Lines       52295    52315   +20     
=======================================
+ Hits        27356    27369   +13     
- Misses      22761    22767    +6     
- Partials     2178     2179    +1     
Impacted Files Coverage Δ
test/e2e/deploy/kuma_deploy_universal.go 0.00% <0.00%> (ø)
pkg/kds/util/resource.go 53.62% <33.33%> (-2.63%) ⬇️
pkg/kds/context/context.go 52.63% <50.00%> (+2.63%) ⬆️
pkg/xds/generator/direct_access_proxy_generator.go 82.75% <0.00%> (-1.15%) ⬇️
pkg/mads/server/server.go 84.25% <0.00%> (+1.85%) ⬆️
pkg/core/resources/manager/cache.go 81.81% <0.00%> (+2.59%) ⬆️
pkg/core/bootstrap/autoconfig.go 54.46% <0.00%> (+8.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be56c7c...97be4ad. Read the comment docs.

@lobkovilya lobkovilya merged commit 9fffa21 into master Oct 5, 2021
@lobkovilya lobkovilya deleted the fix/disable-zone branch October 5, 2021 11:08
mergify bot pushed a commit that referenced this pull request Oct 5, 2021
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
(cherry picked from commit 9fffa21)
lobkovilya added a commit that referenced this pull request Oct 5, 2021
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
(cherry picked from commit 9fffa21)

Co-authored-by: Ilya Lobkov <ilya.lobkov@konghq.com>
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.

None yet

3 participants