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

Fix behaviour for OFED wait label to handle additional scenarios #602

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

ykulazhenkov
Copy link
Collaborator

New scenarios:

  • set OFED wait to true when OFED is removed from CR and Pods are terminating
  • clean OFED wait label from the node if it doesn't have NVIDIA nic anymore

node := nodes.Items[i]
labelValue := ""
if _, hasOFED := nodesWithOFEDContainer[node.Name]; hasOFED {
labelValue = "true"
Copy link
Collaborator

Choose a reason for hiding this comment

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

The name of the function is misleading in this case. Should it maybe be something like UpdateMofedWaitLabels?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I renamed functions to reduce confusion

New scenarios:
- set OFED wait to true when OFED remove and terminating
- clean OFED wait label from the node if it
  doesn't have NVIDIA nic anymore

Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
@e0ne e0ne merged commit df0abeb into Mellanox:master Sep 26, 2023
14 checks passed
@ykulazhenkov ykulazhenkov deleted the fix-ofed-wait-label branch September 26, 2023 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants