From 771ceaca6bdcfec4592824a37825aadea15ada61 Mon Sep 17 00:00:00 2001 From: morvencao Date: Tue, 31 Dec 2019 15:51:10 +0800 Subject: [PATCH] fix ICP list unmarshal issue. --- pkg/apis/istio/v1alpha2/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/apis/istio/v1alpha2/common.go b/pkg/apis/istio/v1alpha2/common.go index 80d106967..c196c5b12 100644 --- a/pkg/apis/istio/v1alpha2/common.go +++ b/pkg/apis/istio/v1alpha2/common.go @@ -54,8 +54,8 @@ func FromString(val string) IntOrStringForPB { // IstioControlPlaneList contains a list of IstioControlPlane type IstioControlPlaneList struct { v1.TypeMeta `json:",inline"` - v1.ListMeta `json:"metadata,omitempty"` - Items []IstioControlPlane `json:"items"` + v1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata,proto3"` + Items []IstioControlPlane `json:"items" protobuf:"bytes,2,rep,name=items,proto3"` } // define new type from protobuf.BoolValue to marshal/unmarshal jsonpb