From 32c5d86bd11b04d2ab2abce174e621aa168d7e84 Mon Sep 17 00:00:00 2001 From: Jun Gong Date: Wed, 23 Sep 2020 15:23:38 +0800 Subject: [PATCH] Do not omit .spec.Replicas because it will be ommited when it is specified to 0 --- pkg/apis/tappcontroller/v1/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/tappcontroller/v1/types.go b/pkg/apis/tappcontroller/v1/types.go index 5798484..4e38e69 100644 --- a/pkg/apis/tappcontroller/v1/types.go +++ b/pkg/apis/tappcontroller/v1/types.go @@ -55,7 +55,7 @@ type TAppSpec struct { // Replicas is the desired number of replicas of the given Template. // These are replicas in the sense that they are instantiations of the // same Template, but individual replicas also have a consistent identity. - Replicas int32 `json:"replicas,omitempty"` + Replicas int32 `json:"replicas"` // Selector is a label query over pods that should match the replica count. // If empty, defaulted to labels on the pod template.