fix cpu resource validation
This commit is contained in:
		
							parent
							
								
									7037974d48
								
							
						
					
					
						commit
						ab744605f6
					
				|  | @ -222,7 +222,7 @@ spec: | ||||||
|                       # only the format of the given number. |                       # only the format of the given number. | ||||||
|                       # |                       # | ||||||
|                       # https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-cpu |                       # 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 |                       # Note: the value specified here must not be zero or be lower | ||||||
|                       # than the corresponding request. |                       # than the corresponding request. | ||||||
|                     memory: |                     memory: | ||||||
|  | @ -253,7 +253,7 @@ spec: | ||||||
|                       # only the format of the given number. |                       # only the format of the given number. | ||||||
|                       # |                       # | ||||||
|                       # https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-cpu |                       # 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 |                       # Note: the value specified here must not be zero or be higher | ||||||
|                       # than the corresponding limit. |                       # than the corresponding limit. | ||||||
|                     memory: |                     memory: | ||||||
|  |  | ||||||
|  | @ -186,7 +186,7 @@ spec: | ||||||
|                       # only the format of the given number. |                       # only the format of the given number. | ||||||
|                       # |                       # | ||||||
|                       # https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-cpu |                       # 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 |                       # Note: the value specified here must not be zero or be lower | ||||||
|                       # than the corresponding request. |                       # than the corresponding request. | ||||||
|                     memory: |                     memory: | ||||||
|  | @ -217,7 +217,7 @@ spec: | ||||||
|                       # only the format of the given number. |                       # only the format of the given number. | ||||||
|                       # |                       # | ||||||
|                       # https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-cpu |                       # 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 |                       # Note: the value specified here must not be zero or be higher | ||||||
|                       # than the corresponding limit. |                       # than the corresponding limit. | ||||||
|                     memory: |                     memory: | ||||||
|  |  | ||||||
|  | @ -356,7 +356,7 @@ var PostgresCRDResourceValidation = apiextv1beta1.CustomResourceValidation{ | ||||||
| 									"cpu": { | 									"cpu": { | ||||||
| 										Type:        "string", | 										Type:        "string", | ||||||
| 										Description: "Decimal natural followed by m, or decimal natural followed by dot followed by up to three decimal digits (precision used by Kubernetes). Must be greater than 0", | 										Description: "Decimal natural followed by m, or decimal natural followed by dot followed by up to three decimal digits (precision used by Kubernetes). Must be greater than 0", | ||||||
| 										Pattern:     "^(\\d+m|\\d+\\.\\d{1,3})$", | 										Pattern:     "^(\\d+m|\\d+(\\.\\d{1,3})?)$", | ||||||
| 									}, | 									}, | ||||||
| 									"memory": { | 									"memory": { | ||||||
| 										Type:        "string", | 										Type:        "string", | ||||||
|  | @ -372,7 +372,7 @@ var PostgresCRDResourceValidation = apiextv1beta1.CustomResourceValidation{ | ||||||
| 									"cpu": { | 									"cpu": { | ||||||
| 										Type:        "string", | 										Type:        "string", | ||||||
| 										Description: "Decimal natural followed by m, or decimal natural followed by dot followed by up to three decimal digits (precision used by Kubernetes). Must be greater than 0", | 										Description: "Decimal natural followed by m, or decimal natural followed by dot followed by up to three decimal digits (precision used by Kubernetes). Must be greater than 0", | ||||||
| 										Pattern:     "^(\\d+m|\\d+\\.\\d{1,3})$", | 										Pattern:     "^(\\d+m|\\d+(\\.\\d{1,3})?)$", | ||||||
| 									}, | 									}, | ||||||
| 									"memory": { | 									"memory": { | ||||||
| 										Type:        "string", | 										Type:        "string", | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue