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: support GatewayClass, refactor gateway modules #1079

Merged
merged 12 commits into from
Jun 16, 2022

Conversation

lingsamuel
Copy link
Member

Signed-off-by: Ling Samuel lingsamuelgrace@gmail.com

Type of change:

  • New feature provided

Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
@tao12345666333
Copy link
Member

please fix CI errors.

Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Jun 10, 2022

Codecov Report

Merging #1079 (15ad0d3) into master (8d76428) will increase coverage by 1.25%.
The diff coverage is 21.83%.

@@            Coverage Diff             @@
##           master    #1079      +/-   ##
==========================================
+ Coverage   30.83%   32.08%   +1.25%     
==========================================
  Files          77       78       +1     
  Lines        9140     8795     -345     
==========================================
+ Hits         2818     2822       +4     
+ Misses       6019     5666     -353     
- Partials      303      307       +4     
Impacted Files Coverage Δ
pkg/ingress/apisix_pluginconfig.go 0.00% <0.00%> (ø)
pkg/ingress/apisix_route.go 0.00% <0.00%> (ø)
pkg/ingress/compare.go 0.00% <0.00%> (ø)
pkg/ingress/endpoint.go 0.00% <0.00%> (ø)
pkg/ingress/gateway/translation/translator.go 0.00% <0.00%> (ø)
pkg/ingress/ingress.go 6.54% <0.00%> (ø)
pkg/ingress/status.go 0.00% <0.00%> (ø)
pkg/ingress/utils/executor.go 0.00% <0.00%> (ø)
pkg/ingress/utils/ingress_status.go 0.00% <0.00%> (ø)
pkg/ingress/utils/string.go 0.00% <0.00%> (ø)
... and 12 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 f0d64b6...15ad0d3. Read the comment docs.

@tao12345666333 tao12345666333 self-assigned this Jun 11, 2022
Comment on lines +32 to +33
// FIXME: Controller should be the Core Part,
// Provider should act as "EventHandler", register there functions to Controller
Copy link
Member

Choose a reason for hiding this comment

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

Will it be implemented in a follow-up PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. The core concept here is that the providers shouldn't interact directly with the controller's field, for example add event handlers directly to the informers.

pkg/ingress/namespace/provider.go Outdated Show resolved Hide resolved
Co-authored-by: Jintao Zhang <tao12345666333@163.com>
@tao12345666333 tao12345666333 merged commit c48a62a into apache:master Jun 16, 2022
@tao12345666333 tao12345666333 mentioned this pull request Jul 15, 2022
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants