[
https://issues.apache.org/jira/browse/YUNIKORN-2578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai resolved YUNIKORN-2578.
--------------------------------------
Fix Version/s: 1.6.0
Resolution: Fixed
> Refactor SchedulerCache.GetPod() remove bool return
> ---------------------------------------------------
>
> Key: YUNIKORN-2578
> URL: https://issues.apache.org/jira/browse/YUNIKORN-2578
> Project: Apache YuniKorn
> Issue Type: Task
> Components: shim - kubernetes
> Reporter: Wilfred Spiegelenburg
> Assignee: Hsien-Cheng(Ryan) Huang
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.6.0
>
>
> SchedulerCache {{GetPod()}} and {{GetPodNoLock()}} retrun two values:
> # *v1.Pod
> # bool
> The boolean value is redundant as it is false if the pod is not found and a
> nil is returned for the pod. The boolean is true if the pod has a value.
> Testing for a nil pod has the same result.
> We do not cache a nil pod in the cache for a pod UID
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]