From 52e57dab7fae3db65b8e8a99e5868417dd2fdbc1 Mon Sep 17 00:00:00 2001 From: Dustin Bachrach Date: Tue, 15 Oct 2019 15:47:53 -0700 Subject: [PATCH] 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 --- pkg/types/replica.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/types/replica.go b/pkg/types/replica.go index 18da6b734..8267366b5 100644 --- a/pkg/types/replica.go +++ b/pkg/types/replica.go @@ -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"` }