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 <[email protected]>
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 <[email protected]>
---
 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to