Adapt regexp.

This commit is contained in:
Michael Lipp 2023-08-18 14:24:19 +02:00
parent 365bdf249d
commit 3296ed84d4

View file

@ -56,7 +56,7 @@ spec:
anyOf: anyOf:
- type: integer - type: integer
- type: string - type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ pattern: ^\s*(\d+(\.\d+)?)\s*(B|kB|MB|GB|TB|PB|EB|KiB|MiB|GiB|TiB|PiB|EiB|Ki|Mi|Gi|Ti|Pi|Ei)?$
x-kubernetes-int-or-string: true x-kubernetes-int-or-string: true
description: >- description: >-
Limits describes the maximum amount of compute Limits describes the maximum amount of compute
@ -67,7 +67,7 @@ spec:
anyOf: anyOf:
- type: integer - type: integer
- type: string - type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ pattern: ^\s*(\d+(\.\d+)?)\s*(B|kB|MB|GB|TB|PB|EB|KiB|MiB|GiB|TiB|PiB|EiB|Ki|Mi|Gi|Ti|Pi|Ei)?$
x-kubernetes-int-or-string: true x-kubernetes-int-or-string: true
description: >- description: >-
Requests describes the minimum amount of compute Requests describes the minimum amount of compute