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

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

Hi [~kmarton] [~wwei]

After my testing, I can't get Application with UID by Param().

Here is the GetAppWithUID() func I try to create, in e2e test it will return a 
empty Application.

 
{code:java}
func (c *applications) GetAppWithUID(id string, options v1.GetOptions) (result 
*v1alpha1.Application, err error) {    
       result = &v1alpha1.Application{}
       err = c.client.Get().
           Namespace(c.ns).
           Resource("applications").
           Param("uid", id).
           VersionedParams(&options, scheme.ParameterCodec).
           Do().
           Into(result)
       return
}{code}
 

 

 

> 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