yugabyte / yugabyte-operator

Kubernetes Operator for YugabyteDB (legacy)
65 stars 29 forks source link

Fix validation issues with the full_cr.yaml #20

Closed bhavin192 closed 3 years ago

bhavin192 commented 3 years ago

The OpenAPIV3 schema is used to validate the YAML manifest, according to it the cpu resource value must be a string or integer. For float values it can be something like "0.2" (a string). This gets converted to 200m internally. Setting the values to the internal representation to avoid any confusion.

https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu

Scenarios tested

Fixes https://github.com/yugabyte/yugabyte-db/issues/6349