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

RFC for K8S Commons library #28

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

chentex
Copy link
Member

@chentex chentex commented Jul 21, 2023

Type of change

  • Refactor
  • New feature
  • Bug fix
  • Optimization
  • Documentation Update

Description

Trying to create Commons methods that could be used simply by other project in our Orgs.

This is an RFC please be sure to review the code ask questions and comment.

I went with the simplest way to create a client at this point it is not set in stone, basing my methods of what I've seen mainly in K8S-netperf repo.

I'll be adding methods during this development.

Code might change during the development, so marking this as a draft.

Main Feedback Requested

  • Do you think is useful?
  • Do we fear maintaining this??
  • What would you like to see???

Related Tickets & Documents

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please describe the System Under Test.
  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

Commons method for geting pods

Signed-off-by: Vicente Zepeda Mas <[email protected]>
@codecov
Copy link

codecov bot commented Jul 21, 2023

Codecov Report

Merging #28 (f3d9b31) into main (58fcfe9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #28   +/-   ##
=======================================
  Coverage   85.13%   85.13%           
=======================================
  Files           6        6           
  Lines         343      343           
=======================================
  Hits          292      292           
  Misses         37       37           
  Partials       14       14           

chentex added 3 commits July 21, 2023 14:29
Signed-off-by: Vicente Zepeda Mas <[email protected]>
Signed-off-by: Vicente Zepeda Mas <[email protected]>
@vishnuchalla
Copy link
Collaborator

vishnuchalla commented Jul 25, 2023

Thanks for this initial draft Vicente!
Lets take these changes slow from this draft to PRs, one component at a time. That way we can ensure that, it is being properly tested and safe to use.
And also can we name this package as just k8s please! As the go-commons name itself refers to a common library!

@vishnuchalla
Copy link
Collaborator

vishnuchalla commented Jul 27, 2023

@chentex Design looks very complex. Lets follow Repository Design Pattern here, which seems to be best fit for our use case. Open to other thoughts too. Thank you!
Example snippet: https://docs.google.com/document/d/1ZlB7k1V6jpOP_Sy9qP6GDfVasg7k8DEuQPIPlaIwghw/edit#bookmark=id.mj2jy1bmhzin

@vishnuchalla
Copy link
Collaborator

@chentex I have a working design implemented separately here that follows Repository Design Pattern, just not to tamper this one. Let combine our both ideas and proceed with the PRs. Thank you!

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.

2 participants