Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flipping
QdrantCluster.Spec.ServicePerNode
from false
to `tru…
…e` (#45) The default value for the field is `true`, and it is omitted from the serialized output if the field is set to false. Hence, it is possible to flip value from `true` to `false` in the following scenario: * client submits to k8s API server with `ServicePerNode=false` * client fetch the persisted instance from k8s API server, given that `false` for a boolean is considered empty, `ServicePerNode` field does not appear in the received payload. * client updates the payload and sends it back the k8s API server. Given that `ServicePerNode` is not present in the payload, k8s API server is going to flip it to the default value, which is `true` To correct this, `omitempty` tag is removed for `ServicePerNode` field, so that the field is always present in the serialized output.
- Loading branch information