[ 
https://issues.apache.org/jira/browse/YUNIKORN-340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17169280#comment-17169280
 ] 

Ting Yao,Huang commented on YUNIKORN-340:
-----------------------------------------

According the _*Adding expansion methods*_ part of this 
[docs|[https://github.com/kubernetes/community/blob/master/contributors/devel/sig-api-machinery/generating-clientset.md#using-client-gen]].
 We can create a func like GetAppWithUID().

But not sure the 
[Param()|[https://github.com/kubernetes/client-go/blob/master/rest/request.go#L343-L348]]
 in that library which was used by 
[Get()|[https://github.com/apache/incubator-yunikorn-k8shim/blob/master/pkg/client/clientset/versioned/typed/yunikorn.apache.org/v1alpha1/application.go#L68-L78]]
 can get the Application by UID.

Still need to check.

> Add metadta.UID selector for the App CRD
> ----------------------------------------
>
>                 Key: YUNIKORN-340
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-340
>             Project: Apache YuniKorn
>          Issue Type: Sub-task
>            Reporter: Kinga Marton
>            Priority: Major
>
> Right now it os possible to query an application based on its name:
> [https://github.com/apache/incubator-yunikorn-k8shim/blob/master/pkg/client/clientset/versioned/typed/yunikorn.apache.org/v1alpha1/application.go#L46],
>  but if we will set the applicationId = UID, we will need to be able to query 
> the application based on the UID as well.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to