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: add logic for ApisixRoute v2beta1 #576

Merged
merged 8 commits into from
Jul 10, 2021
Merged

Conversation

gxthrj
Copy link
Contributor

@gxthrj gxthrj commented Jul 7, 2021

Please answer these questions before submitting a pull request


Bugfix

  • Description

  • How to fix?


New feature or improvement

  • Describe the details and related test reports.

Backport patches

  • Why need to backport?

  • Source branch

  • Related commits and pull requests

  • Target branch

@codecov-commenter
Copy link

codecov-commenter commented Jul 7, 2021

Codecov Report

Merging #576 (98bc2d2) into master (4b16e28) will increase coverage by 0.37%.
The diff coverage is 5.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #576      +/-   ##
==========================================
+ Coverage   35.03%   35.40%   +0.37%     
==========================================
  Files          54       54              
  Lines        4556     5332     +776     
==========================================
+ Hits         1596     1888     +292     
- Misses       2742     3222     +480     
- Partials      218      222       +4     
Impacted Files Coverage Δ
pkg/config/config.go 85.71% <ø> (+1.71%) ⬆️
pkg/ingress/apisix_route.go 0.00% <0.00%> (ø)
pkg/ingress/controller.go 1.29% <0.00%> (+0.17%) ⬆️
pkg/kube/translation/translator.go 47.00% <ø> (+1.11%) ⬆️
pkg/kube/translation/apisix_route.go 26.15% <0.61%> (-14.65%) ⬇️
pkg/kube/translation/util.go 39.84% <23.07%> (-9.62%) ⬇️
pkg/ingress/pod.go 31.57% <100.00%> (+1.14%) ⬆️
pkg/kube/translation/plugin.go 100.00% <100.00%> (ø)
pkg/apisix/nonexistentclient.go 46.42% <0.00%> (-3.58%) ⬇️
pkg/metrics/prometheus.go 81.57% <0.00%> (-0.24%) ⬇️
... and 52 more

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 4b16e28...98bc2d2. Read the comment docs.

test/e2e/ingress/stream.go Outdated Show resolved Hide resolved
pkg/ingress/pod.go Outdated Show resolved Hide resolved
return "", 0, err
}

if backend.ResolveGranularity == "service" && svc.Spec.ClusterIP == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

This check can be put before the for loop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I moved them to the line before loop, and ditto with the other two versions.

test/e2e/ingress/stream.go Show resolved Hide resolved
pkg/kube/translation/apisix_route.go Outdated Show resolved Hide resolved
test/e2e/ingress/stream.go Show resolved Hide resolved
@gxthrj gxthrj merged commit 1c17b41 into apache:master Jul 10, 2021
fgksgf pushed a commit to fgksgf/apisix-ingress-controller that referenced this pull request Aug 14, 2021
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

4 participants