-
Notifications
You must be signed in to change notification settings - Fork 247
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
Use worker DS OwnerReference for NF's #1755
Conversation
✅ Deploy Preview for kubernetes-sigs-nfd ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/assign @marquiz |
5594d1e
to
2db6bca
Compare
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.
lgtm
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
/test pull-node-feature-discovery-verify-master |
/test pull-node-feature-discovery-verify-master |
@ArangoGutierrez: once the present PR merges, I will cherry-pick it on top of release-0.15 in a new PR and assign it to you. 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-sigs/prow repository. |
/cherry-pick release-0.16 |
@marquiz: once the present PR merges, I will cherry-pick it on top of release-0.16 in a new PR and assign it to you. 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-sigs/prow repository. |
@@ -761,7 +816,7 @@ func (m *nfdWorker) updateNodeFeatureObject(labels Labels) error { | |||
nfrUpdated := nfr.DeepCopy() | |||
nfrUpdated.Annotations = map[string]string{nfdv1alpha1.WorkerVersionAnnotation: version.Get()} | |||
nfrUpdated.Labels = map[string]string{nfdv1alpha1.NodeFeatureObjNodeNameLabel: nodename} | |||
nfrUpdated.OwnerReferences = ownerRefs | |||
nfrUpdated.OwnerReferences = m.ownerReference |
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.
@ArangoGutierrez question regarding L825. if no change to NF spec will it still update the object to set owner reference ? just want to make sure that if we update NFD in the cluster (e.g helm upgrade -n ....), owner reference will be added to existing NF CRs.
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.
DeepEqual
evaluates the entire object, so the answer is yes, if this is a new pod, because XYZ reason, we would update the NF with the new ownerRef (if this changed)
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, it updates the object if anything changes (including the object metadata)
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.
small question otherwise code LGTM
/test pull-node-feature-discovery-e2e-test-master |
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.
Nice job @ArangoGutierrez. I think this is good to go
/lgtm
LGTM label has been added. Git tree hash: 46d9fb78c5d2143815a0d5ee50474aceceabf9a3
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adrianchiris, ArangoGutierrez, marquiz 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 |
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
/lgtm |
LGTM label has been added. Git tree hash: aa0dc2aef50785e014d9be9f510e2b09da19b244
|
@ArangoGutierrez: #1755 failed to apply on top of branch "release-0.15":
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-sigs/prow repository. |
@marquiz: new pull request created: #1771 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-sigs/prow repository. |
No description provided.