[jira] [Created] (YUNIKORN-2638) Simplify finalizeNodes and finalizePods

2024-05-20 Thread Wilfred Spiegelenburg (Jira)
Wilfred Spiegelenburg created YUNIKORN-2638:
---

 Summary: Simplify finalizeNodes and finalizePods
 Key: YUNIKORN-2638
 URL: https://issues.apache.org/jira/browse/YUNIKORN-2638
 Project: Apache YuniKorn
  Issue Type: Improvement
  Components: shim - kubernetes
Reporter: Wilfred Spiegelenburg


In finalizeNodes and finalizePods a map is created to store the newly retrieved 
pods and nodes. The map is only used as a reference and the pod and node 
objects themselves are not used.

Instead of storing the objects the maps could use a boolean value to store. 
This also simplifies the check later for the existence of the node or pod to 
just a single map lookup. 

We should also set the size of the map, length of the nodes or pod list 
retrieved, to prevent any re-allocation during the map filling.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: dev-h...@yunikorn.apache.org



[jira] [Created] (YUNIKORN-2637) finalizePods should ignore pods like registerPods does

2024-05-20 Thread Wilfred Spiegelenburg (Jira)
Wilfred Spiegelenburg created YUNIKORN-2637:
---

 Summary: finalizePods should ignore pods like registerPods does
 Key: YUNIKORN-2637
 URL: https://issues.apache.org/jira/browse/YUNIKORN-2637
 Project: Apache YuniKorn
  Issue Type: Bug
  Components: shim - kubernetes
Reporter: Wilfred Spiegelenburg


The initialisation code is a two step process for pods: first list all pods and 
add them to the system in registerPods(). This returns a list of pods processed.

The second step happens after event handlers are turned on and nodes have been 
cleaned up etc. During the second step pods from the first step are checked and 
removed. However pods that were already in a terminated state in step 1 get 
removed again. Although the step should be idempotent this is unneeded. When 
iterating over the existing pods any pod in a terminal state should be skipped.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: dev-h...@yunikorn.apache.org



[jira] [Closed] (YUNIKORN-1686) Add shellcheck to the website workflow

2024-05-20 Thread Chen Yu Teng (Jira)


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

Chen Yu Teng closed YUNIKORN-1686.
--
  Assignee: (was: Chen Yu Teng)
Resolution: Not A Problem

> Add shellcheck to the website workflow
> --
>
> Key: YUNIKORN-1686
> URL: https://issues.apache.org/jira/browse/YUNIKORN-1686
> Project: Apache YuniKorn
>  Issue Type: Task
>  Components: website
>Reporter: Chen Yu Teng
>Priority: Major
>
> Add shellcheck to the precommit checking stage.
> Components including core and k8shim use shellcheck to guarantee the grammar 
> and quality of the shell script.
> However, the website workflow doesn't use the shellcheck to check shell 
> scripts.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: dev-h...@yunikorn.apache.org