fix cpu resource validation

This commit is contained in:
Felix Kunde
2019-12-10 15:13:47 +01:00
parent 7037974d48
commit ab744605f6
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -186,7 +186,7 @@ spec:
# only the format of the given number.
#
# https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-cpu
pattern: '^(\d+m|\d+\.\d{1,3})$'
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
# Note: the value specified here must not be zero or be lower
# than the corresponding request.
memory:
@@ -217,7 +217,7 @@ spec:
# only the format of the given number.
#
# https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-cpu
pattern: '^(\d+m|\d+\.\d{1,3})$'
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
# Note: the value specified here must not be zero or be higher
# than the corresponding limit.
memory: