-
Notifications
You must be signed in to change notification settings - Fork 57
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
nephio-controller-manager initial start #91
Comments
/label area/package-management |
@johnbelamaric: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@radoslawc see above ^ |
/area package-managment trying these prow commands... |
@johnbelamaric: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/area package-management helps if I can spell correctly |
Nice, that worked :) |
@ssharmasandeep We would want a one-pager design/diagram explaining what this is and what it contains, along with code to build the actual binary - the specific reconcilers are mostly not-yet-available, although the IPAM specializer should be. See the |
@johnbelamaric please review. I have started to put together the following with https://github.com/nephio-project/edge-status-aggregator to start with. The content of the nephio-controller-manager will be,
Purpose of this controller: The purpose of this controller is to create a single binary for all the nephio management controllers. Implementation Flow:
Each Controller will implement the SetupWIthManager
The implementation plan is to create the main framework, and then add each controller to it by implementing the Reconciler interface. Started creating the framework with https://github.com/nephio-project/edge-status-aggregator to start with, once it is working then adding the rest of the controller will be a repeat of this for each controller. In the last meeting you had asked me to put the doc in some repo, I will do it if this looks fine or after addressing your review comments. |
This looks good to me, I don't think we need a doc beyond this. |
Thanks @ssharmasandeep . This is a good readme for the manager when we merge . |
yes looks good. Here is some code I use to setup various controllers within a given manager, if it is useful. It even uses generic Events, but I don't believe we need it here. // Setup package controllers.
} This is the injector which will become specialised: // SetupWithManager sets up the controller with the Manager.
} |
Any update here, @ssharmasandeep ? |
@johnbelamaric I started to code the framework with https://github.com/nephio-project/edge-status-aggregator , but there is no tangible status as of now. I will try my best to create a PR this week. |
@henderiw Please point me to the controllers which we have to include in the controller manager. I have the framework ready, which I tested with the nephio-poc controller. |
#177 |
I have added the specializers to the controller manager as per the flow that was sent earlier to this ticket.
ignore the nephio-poc-controller, it will not be part of the PR. -Sandeep |
Awesome thx, I will look at it later today
… On 10 May 2023, at 09:50, Sandeep Sharma ***@***.***> wrote:
I have added the specializers to the controller manager as per the flow that was sent earlier to this ticket.
@henderiw <https://github.com/henderiw> the logic is similar to what you suggested above, but I had to move around a little code in order to integrate the specialzers. I will raise the PR once I know the location to checkin this code ( by tomorrow), for now please look at https://github.com/ssharmasandeep/nephio-controller-manager.git and let me know if the changes done to specializers look ok ?
@johnbelamaric <https://github.com/johnbelamaric>
Where should this operator be checked in? Or are we going to make the current nephio repo as this manager?
I will add the Dockerfile/Makefile and raise PR by tomorrow, after unit testing.
Please confirm the following list is all we need,
specializer controller ( this is added)
edge-status-aggregator (this is added)
repo-controller
bootstrap-controller
ignore the nephio-poc-controller, it will not be part of the PR.
-Sandeep
—
Reply to this email directly, view it on GitHub <#91 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACMXXVGFF5SCTIJCELLGM33XFOMLTANCNFSM6AAAAAAWS66T4M>.
You are receiving this because you were mentioned.
|
I was thinking a |
Vish noted this the other day, perhaps we should take some inspiration from it: https://github.com/golang-standards/project-layout So may something like:
|
is it not better to make an operators directory if we decide to have multiple operators at some point. nephio/ |
The |
yes I know but I would like to have the ability to create multiple operators and within the operator we could have a local structure. |
some comments on the remote code
|
do we believe global var is a good practice? |
So looks like we agreed on the following structure.. I will follow this. |
@ssharmasandeep #197 have a look. I added a prototype and I want all the controllers to use it as it eases integration. Have a look. |
merged |
Create the controller manager for the following Nephio components on management cluster and create a single binary
Tasks for this issue are
Document and create the initial binary
Unit test coverage.
The text was updated successfully, but these errors were encountered: