Skip to content

Commit

Permalink
feat: add str type for memory and resource
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Sep 5, 2024
1 parent cd969c2 commit a02a40b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kcl.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "konfig"
version = "0.6.0"
version = "0.7.0"

[dependencies]
k8s = "1.28"
4 changes: 2 additions & 2 deletions models/kube/frontend/resource/resource.k
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ schema Resource:
"""

cpu?: int | Unit = 1
memory?: Unit = 1024Mi
disk?: Unit = 10Gi
memory?: str | Unit = 1024Mi
disk?: str | Unit = 10Gi

0 comments on commit a02a40b

Please sign in to comment.