-
Notifications
You must be signed in to change notification settings - Fork 23
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
Cluster version controller code restructering #112
base: main
Are you sure you want to change the base?
Conversation
nb-ohad
commented
Mar 14, 2024
- Seperate the different reconcile concerns into functions
- Preload all input resources
- Optimize memory managemnt for console resources
- Add reconsole tracking log messages
- Fix some issues with object metadata overwrites
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nb-ohad The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1aee789
to
a8972ec
Compare
I think we really need a deployment test suite, can we make an effort to have client operator be able to run on plain k8s which can help a bit better? Regarding point 1, I'll be raising a new PR to fix that specific issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks ordered overall. thanks.
nginxConfigMap.Namespace = c.OperatorNamespace | ||
|
||
err := c.createOrUpdate(&nginxConfigMap, func() error { | ||
if err := c.own(&nginxConfigMap); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in existing code, console deployment owns the configmap and that seems to be correct and so setting another controller ref here always returns an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Console deployment should not own the config map because the deployment controller is not the one that reconciles it. But I guess you mean that the execution fails because there is an existing controller ref.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean that the execution fails because there is an existing controller ref.
- yes.
- Seperate the different reconcile concerns into functions - Preload all input resources - Optimize memory managemnt for console resources - Add reconsole tracking log messages - Fix some issues with object metadata overwrites Signed-off-by: nb-ohad <[email protected]>
a8972ec
to
fe7ae2e
Compare
PR needs rebase. 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. |
@nb-ohad will you be refreshing this PR? |
@leelavg I am not sure I will do that as the changes to the code base are considerable. I might decide on an alternative of recoding these changes from the ground up on top of the current main. Either way, this work will get into the repo at one point or another. |