Skip to content

Commit

Permalink
The annotation of the device that has been deleted is incorrect. (#323)
Browse files Browse the repository at this point in the history
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
  • Loading branch information
chaunceyjiang committed May 28, 2024
1 parent 18e86e5 commit 4af7069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/device/hygon/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (dev *DCUDevices) GetNodeDevices(n corev1.Node) ([]*api.DeviceInfo, error)
}

func (dev *DCUDevices) NodeCleanUp(nn string) error {
return util.MarkAnnotationsToDelete(HygonDCUDevice, nn)
return util.MarkAnnotationsToDelete(HandshakeAnnos, nn)
}

func (dev *DCUDevices) CheckHealth(devType string, n *corev1.Node) (bool, bool) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/device/nvidia/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (dev *NvidiaGPUDevices) ParseConfig(fs *flag.FlagSet) {
}

func (dev *NvidiaGPUDevices) NodeCleanUp(nn string) error {
return util.MarkAnnotationsToDelete(NvidiaGPUDevice, nn)
return util.MarkAnnotationsToDelete(HandshakeAnnos, nn)
}

func (dev *NvidiaGPUDevices) CheckHealth(devType string, n *corev1.Node) (bool, bool) {
Expand Down

0 comments on commit 4af7069

Please sign in to comment.