You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@yunikorn.apache.org by "0yukali0 (via GitHub)" <gi...@apache.org> on 2023/02/03 15:54:45 UTC

[GitHub] [yunikorn-k8shim] 0yukali0 commented on a diff in pull request #520: [YUNIKORN-1526] support K8s pod overhead

0yukali0 commented on code in PR #520:
URL: https://github.com/apache/yunikorn-k8shim/pull/520#discussion_r1095959874


##########
pkg/common/resource_test.go:
##########
@@ -191,6 +191,19 @@ func TestParsePodResource(t *testing.T) {
 	assert.Equal(t, res.Resources[siCommon.CPU].GetValue(), int64(3000))
 	assert.Equal(t, res.Resources["nvidia.com/gpu"].GetValue(), int64(5))
 
+	// Add pod OverHead, only support CPU and Memory

Review Comment:
   Hi @zhuqi-lucas , the getResource function would parse the resource which includes cpu, memory, gpu and other else.
   Should we add filtering function to specific resource or a case which overhead contains different type of resources? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@yunikorn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org