You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Dian-Xuan Yang (Jira)" <ji...@apache.org> on 2026/10/01 16:15:00 UTC
[jira] [Created] (YUNIKORN-3485) Remove unused UpdatePod from the shim KubeClient
Dian-Xuan Yang created YUNIKORN-3485:
----------------------------------------
Summary: Remove unused UpdatePod from the shim KubeClient
Key: YUNIKORN-3485
URL: https://issues.apache.org/jira/browse/YUNIKORN-3485
Project: Apache YuniKorn
Issue Type: Sub-task
Components: shim - kubernetes
Reporter: Dian-Xuan Yang
{{Task.UpdateTaskPod()}} has no callers, and it is the only caller of {{KubeClient.UpdatePod()}}, so the whole chain is dead code (site 4 in the YUNIKORN-3437 audit).
Remove:
* {{Task.UpdateTaskPod()}} in {{pkg/cache/task.go}}
* {{UpdatePod()}} from the {{KubeClient}} interface in {{pkg/client/interfaces.go}}
* {{SchedulerKubeClient.UpdatePod()}} in {{pkg/client/kubeclient.go}}
* {{KubeClientMock.UpdatePod()}} in {{pkg/client/kubeclient_mock.go}}
The informer handler {{Context.UpdatePod()}} and {{SchedulerCache.UpdatePod()}} are unrelated and stay.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org