CPU resources with a decimal is failing

Description

Cpu resource specification as following for the instances and pg-db create or update error:

resources:
requests:
cpu: "1.001"
memory: 1Gi

 

Error: UPGRADE FAILED: cannot patch "my-pg-db" with kind PerconaPGCluster: PerconaPGCluster.pgv2.percona.com "my-pg-db" is invalid: [spec.instances[0].resources.requests.cpu: Invalid value: "number": spec.instances[0].resources.requests.cpu in body must be of type integer,string: "number", <nil>: Invalid value: "": "spec.instances[0].resources.requests.cpu" must validate at least one schema (anyOf), spec.instances[0].resources.requests.cpu: Invalid value: "number": spec.instances[0].resources.requests.cpu in body must be of type integer: "number", spec.instances[0].resources.limits.cpu: Invalid value: "number": spec.instances[0].resources.limits.cpu in body must be of type integer,string: "number", <nil>: Invalid value: "": "spec.instances[0].resources.limits.cpu" must validate at least one schema (anyOf), spec.instances[0].resources.limits.cpu: Invalid value: "number": spec.instances[0].resources.limits.cpu in body must be of type integer: "number"]

Environment

None

Activity

Details

Security Level Help

None

Assignee

Reporter

Regression Issue

Yes

Needs Review

Yes

Needs QA

Yes

Components

Affects versions

Priority

Smart Checklist

Created June 24, 2024 at 7:14 AM
Updated July 1, 2024 at 9:36 AM