You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2023/03/27 01:54:00 UTC

[jira] [Commented] (YUNIKORN-1655) factor out the domain from annotations, use constant

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

Wilfred Spiegelenburg commented on YUNIKORN-1655:
-------------------------------------------------

BTW: we already have a constant for this in the SI as part of:
{{yunikorn-scheduler-interface/lib/go/common}}
{code:java}
DomainYuniKorn = "yunikorn.apache.org/"{code}

> factor out the domain from annotations, use constant
> ----------------------------------------------------
>
>                 Key: YUNIKORN-1655
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1655
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: shim - kubernetes
>            Reporter: Wilfred Spiegelenburg
>            Priority: Minor
>              Labels: newbie
>
> {{common/constants/constants.go}} contains al annotations and label definitions.
> Each definition specifies its own domaini part instead of re-using a single defined constant for {{yunikorn.apache.org}} this could easily lead to typos etc in the definitions.
> We should also use a fixed constant for the separator "/" used in all these annotations.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org