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

Weiwei Yang commented on YUNIKORN-340:
--------------------------------------

hi [~kmarton]

That code is generated, I don't think we should edit any of that.
Based on your investigation, if it is not possible to query application by 
spec.UID, then we need to think the other way round. Please confirm if this is 
the case.
The other option we were talking about is to use "namespace-appCRDName" as the 
applicationID. We put a dash("-") between namespace and the CRD name, it should 
be unique in the cluster. 

> 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: issues-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org

Reply via email to