According to the CRD, we should be defaulting the value to 1 when left omitted. However, when submitting the above manifest to the Kubernetes API, we see this:
beat:
minReplicas: 0
This shows that the zero value is being used and not the default value.
Consider the following API (this is how we generate the API in the current version):
Consider the manifest when submitted to the Kubernetes API:
According to the CRD, we should be defaulting the value to
1
when left omitted. However, when submitting the above manifest to the Kubernetes API, we see this:This shows that the zero value is being used and not the default value.