You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by ch...@apache.org on 2024/01/02 19:13:17 UTC

(yunikorn-site) branch master updated: [YUNIKORN-2278] fix the example of "yunikorn.apache.org/namespace.quota" (#388)

This is an automated email from the ASF dual-hosted git repository.

chia7712 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 3324c14d00 [YUNIKORN-2278] fix the example of "yunikorn.apache.org/namespace.quota" (#388)
3324c14d00 is described below

commit 3324c14d005995cdf0790d5cdbeeb657562f7529
Author: Haser <ha...@gmail.com>
AuthorDate: Wed Jan 3 03:13:12 2024 +0800

    [YUNIKORN-2278] fix the example of "yunikorn.apache.org/namespace.quota" (#388)
    
    Reviewers: Chia-Ping Tsai <ch...@gmail.com>
---
 docs/design/generic_resource.md | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/docs/design/generic_resource.md b/docs/design/generic_resource.md
index 6bc354b249..f4a8ce448c 100644
--- a/docs/design/generic_resource.md
+++ b/docs/design/generic_resource.md
@@ -53,14 +53,8 @@ yunikorn.apache.org/namespace.quota
 The content of the annotation must be a simple string. There are no length limits for a specific annotation. All annotations together on one object do have a size limit however that is not a restriction we have to plan around.
 
 Since the content must be a simple string we should use a simple json representation for the quota that contains a list of resources. Representing the quota:
-```
-yunikorn.apache.org/namespace.quota: "
-{
-cpu: 100m,
-memory: 1GB,
-nvidia.com/gpu: 1
-}
-"
+```yaml
+yunikorn.apache.org/namespace.quota: "{\"cpu\": \"100m\",\"memory\": \"1G\",\"nvidia.com/gpu\": \"1\"}"
 ```
 
 Similar as for other resources we allow in annotations: we allow any string as the key content.


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