FIx yaml formatting of replicas count when count is 0

Previously, a count of 0 would cause the count field to be omitted from the yaml
This commit is contained in:
Dustin Bachrach
2019-10-15 15:47:53 -07:00
parent 2734085fb0
commit 52e57dab7f

View File

@@ -12,5 +12,5 @@ type Replica struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
// The number of replicas required.
Count int64 `json:"count,omitempty" yaml:"count,omitempty"`
Count int64 `json:"count" yaml:"count"`
}