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

[WIP] WINC-897: React to kubelet arg changes #2483

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wgahnagl
Copy link
Contributor

No description provided.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 17, 2024
Copy link
Contributor

openshift-ci bot commented Oct 17, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link
Contributor

openshift-ci bot commented Oct 17, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: wgahnagl
Once this PR has been reviewed and has the lgtm label, please assign mansikulkarni96 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Comment on lines 439 to 442
Watches(&core.Node{}, handler.EnqueueRequestsFromMapFunc(r.mapToServicesConfigMap),
builder.WithPredicates(nodeLabelChangedPredicate())).
Watches(&core.Node{}, handler.EnqueueRequestsFromMapFunc(r.mapToServicesConfigMap),
builder.WithPredicates(nodeconfigChangedPredicate())).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can consolidate this into 1 by creating a smarter predicate func

Copy link
Contributor

@saifshaikh48 saifshaikh48 Oct 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please explain why this watch is needed as well. Do we use node annotations to create (or modify) kubelet args? If so, please point to where we do that because i can't find where in our code

node := &core.Node{}
if err := r.client.Get(ctx, kubeTypes.NamespacedName{
Namespace: "",
Name: req.Name},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which node would you get by doing this? I thought the req.Name would be the name of a configmap given the usage of handler.EnqueueRequestsFromMapFunc(r.mapToServicesConfigMap) in your added Watches

@jrvaldes
Copy link
Contributor

jrvaldes commented Oct 17, 2024

/retitle [WIP] WINC-897: React to kubelet arg changes

@openshift-ci openshift-ci bot changed the title [Draft] Winc 897 [WIP] WINC-897: React to kubelet arg changes Oct 17, 2024
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Oct 17, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Oct 17, 2024

@wgahnagl: This pull request references WINC-897 which is a valid jira issue.

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 openshift-eng/jira-lifecycle-plugin repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants