Skip to content

Commit 37fdd3a

Browse files
committed
Changed regex for quota specification
1 parent 5ee871e commit 37fdd3a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

config/crd/bases/ibm.com_quotasubtree-v1.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ spec:
5353
properties:
5454
cpu:
5555
x-kubernetes-int-or-string: true
56-
pattern: '^[0-9]*(m)*$'
56+
pattern: '^[0-9]*(m)?$'
5757
memory:
5858
x-kubernetes-int-or-string: true
59-
pattern: '^[0-9]*(Ei|Pi|Ti|Gi|Mi|Ki|E|P|T|G|M|K)*$'
59+
pattern: '^[0-9]*(Ei|Pi|Ti|Gi|Mi|Ki|E|P|T|G|M|K)?$'
6060
nvidia.com/gpu:
6161
x-kubernetes-int-or-string: true
62-
pattern: '^[0-9]*$'
62+
pattern: '^[0-9]?$'

deployment/mcad-controller/crds/ibm.com_quotasubtree-v1.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ spec:
5353
properties:
5454
cpu:
5555
x-kubernetes-int-or-string: true
56-
pattern: '^[0-9]*(m)*$'
56+
pattern: '^[0-9]*(m)?$'
5757
memory:
5858
x-kubernetes-int-or-string: true
59-
pattern: '^[0-9]*(Ei|Pi|Ti|Gi|Mi|Ki|E|P|T|G|M|K)*$'
59+
pattern: '^[0-9]*(Ei|Pi|Ti|Gi|Mi|Ki|E|P|T|G|M|K)?$'
6060
nvidia.com/gpu:
6161
x-kubernetes-int-or-string: true
62-
pattern: '^[0-9]*$'
62+
pattern: '^[0-9]?$'

0 commit comments

Comments
 (0)