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

Move generic client APIs into pkg/apis/ #86

Merged
merged 1 commit into from Nov 29, 2021
Merged

Conversation

LittleFox94
Copy link
Contributor

Description

This makes much more visible which APIs are supported by the generic client, makes it easier to have generic client supporting APIs not sharing any code with existing old clients and is a place where other big projects place their API definitions.

Release Note

Release note for CHANGELOG:

* NONE (unreleased feature)

References

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

This makes much more visible which APIs are supported by the generic client,
makes it easier to have generic client supporting APIs not sharing any code
with existing old clients and is a place where other big projects place their
API definitions.

Also adds code generator comments to the objects and fixes
lbaasv1.Frontend (which wasn't an object anymore - code gen test catched
it).
@codecov-commenter
Copy link

Codecov Report

Merging #86 (32ca322) into main (6e6d43e) will decrease coverage by 0.19%.
The diff coverage is 41.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #86      +/-   ##
==========================================
- Coverage   55.80%   55.61%   -0.20%     
==========================================
  Files          89       93       +4     
  Lines        4012     4051      +39     
==========================================
+ Hits         2239     2253      +14     
- Misses       1409     1433      +24     
- Partials      364      365       +1     
Flag Coverage Δ
integration 44.39% <9.16%> (-0.47%) ⬇️
unittests 28.11% <32.50%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/apis/lbaas/v1/frontend_genclient.go 0.00% <0.00%> (ø)
pkg/core/resource/api.go 100.00% <ø> (+48.00%) ⬆️
pkg/core/resource/resource.go 14.28% <ø> (ø)
pkg/lbaas/backend/api.go 100.00% <ø> (+27.27%) ⬆️
pkg/lbaas/backend/backend.go 43.70% <ø> (ø)
pkg/lbaas/frontend/api.go 100.00% <ø> (+86.66%) ⬆️
pkg/lbaas/frontend/frontend.go 42.95% <ø> (ø)
pkg/lbaas/loadbalancer/api.go 100.00% <ø> (+68.75%) ⬆️
pkg/lbaas/loadbalancer/loadbalancer.go 50.79% <ø> (ø)
pkg/apis/lbaas/v1/loadbalancer_genclient.go 18.75% <18.75%> (ø)
... and 2 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 6e6d43e...32ca322. Read the comment docs.

@LittleFox94 LittleFox94 merged commit 1bbb667 into main Nov 29, 2021
@LittleFox94 LittleFox94 deleted the generic-client-apis-pkg branch November 29, 2021 08:05
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