You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Dian-Xuan Yang (Jira)" <ji...@apache.org> on 2026/10/01 16:15:00 UTC

[jira] [Assigned] (YUNIKORN-3485) Remove unused UpdatePod from the shim KubeClient

     [ https://issues.apache.org/jira/browse/YUNIKORN-3485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dian-Xuan Yang reassigned YUNIKORN-3485:
----------------------------------------

    Assignee: Dian-Xuan Yang

> 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
>            Assignee: Dian-Xuan Yang
>            Priority: Major
>
> {{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: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org