-
Notifications
You must be signed in to change notification settings - Fork 463
monitoring of a new resource - node.config.openshift.io #2959
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
Conversation
Signed-off-by: Harshal Patil <[email protected]>
Signed-off-by: Harshal Patil <[email protected]>
Signed-off-by: Harshal Patil <[email protected]>
|
/hold |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sairameshv The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
As per comments on 2 other prs: #2943 and #2950 Is there an enhancement for the new controller you are adding via this PR? I was told that the approach would be reworked and it would be removed. cc: @rphillips |
Hello @kikisdeliveryservice , Thanks for the review. |
|
Hey Kirsten (@kikisdeliveryservice), I'm not successful in deploying the cluster to test the above changes using the cluster-bot. Thanks in advance. |
|
/test verify |
|
I'll take a look. |
Hey @kikisdeliveryservice , Can I know where exactly this file "/assets/manifests/cluster-infrastructure-02-config.yml" is placed (in CVO or MCO) so that I would place the "assets/manifests/cluster-node-02-config.yml" accordingly? Thanks, |
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.
I'm not sure if you are trying to make this mandatory or not. If you are, you would need to add this in the installer generated manifests first. I'd cross-check with the installer team to see if they are ok with this path.
Since this is for testing purposes, you can just openshift-install create manifests -> add that file -> openshift-install create cluster to have it render your manually generated one.
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.
Yes, I'm trying to figure the places where I need to make the changes.
openshift/installer#5676 is a related draft PR that I created for the testing purpose.
If everything works fine, I would make the proper changes along with the required test cases.
Could you help here in listing out what all other changes needed in introducing this file?
|
I guess there's also the larger picture of this being another resource the MCO manages and syncs. It says in https://github.com/openshift/enhancements/blob/master/enhancements/worker-latency-profile/worker-latency-profile.md
Would we be able to just make this a flag in the kubeletconfig or something instead of adding a whole new controller path and manifest rendering? |
Yes @yuqi-zhang , |
|
Add some of node team to this PR as they have some experience in adding things to installer/mco. cc: @harche @rphillips |
added code to modify kubelet config based on the worker latency profile
| if cc.Spec.Node != nil { | ||
| switch cc.Spec.Node.Spec.WorkerLatencyProfile { | ||
| case configv1.MediumUpdateAverageReaction: | ||
| originalKubeConfig.NodeStatusUpdateFrequency = metav1.Duration{Duration: 20 * time.Second} |
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.
Instead of hard coding it here, create a const variable.
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.
These consts should probably be in the API as consts.
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.
openshift/api#1136 PR has been raised for the same.
pkg/operator/bootstrap.go
Outdated
| } | ||
|
|
||
| spec, err := createDiscoveredControllerConfigSpec(infra, network, proxy, dns) | ||
| spec, err := createDiscoveredControllerConfigSpec(infra, node, network, proxy, dns) |
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.
would be nice to wrap all these variables into a structure to make it easier to extend later
pkg/operator/sync.go
Outdated
| return nil, nil, nil, nil, nil, err | ||
| } | ||
| return infra, network, proxy, dns, nil | ||
| return infra, node, network, proxy, dns, 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.
ditto here... perhaps wrap all this into a structure
|
@sairameshv: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
|
/close Closing this PR as the #3015 serves the same purpose. |
|
@sairameshv: Closed this PR. DetailsIn 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. |
- What I did
Implemented changes to the
Operator,RenderConfigand other data structures to accommodate the monitoring of thenodes.config.openshift.iocustom resource- How to verify it
Create an openshift cluster with this change, create a new Node custom resource according to the CRD and the controller's sync function would get triggered.
- Description for the changelog
Reference EP: https://github.com/openshift/enhancements/blob/master/enhancements/worker-latency-profile/worker-latency-profile.md