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

Attention: Patch coverage is 5.11811% with 241 lines in your changes missing coverage. Please review.

Project coverage is 35.40%. Comparing base (4b16e28) to head (98bc2d2).
Report is 613 commits behind head on master.

Files with missing lines Patch % Lines
pkg/kube/translation/apisix_route.go 0.61% 162 Missing ⚠️
pkg/ingress/apisix_route.go 0.00% 43 Missing ⚠️
pkg/kube/translation/util.go 23.07% 30 Missing ⚠️
pkg/ingress/controller.go 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

4 participants