From 517e8442ecc719a47afbe92b5ed54bd170d87cff Mon Sep 17 00:00:00 2001 From: Ce Gao Date: Wed, 4 Sep 2019 13:46:49 +0800 Subject: [PATCH] fix: Fix json tag Signed-off-by: Ce Gao --- pkg/apis/controller/suggestions/v1alpha3/suggestion_types.go | 4 ++-- .../controller/suggestions/v1alpha3/zz_generated.deepcopy.go | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkg/apis/controller/suggestions/v1alpha3/suggestion_types.go b/pkg/apis/controller/suggestions/v1alpha3/suggestion_types.go index 971b3723719..c5babbaf8bf 100644 --- a/pkg/apis/controller/suggestions/v1alpha3/suggestion_types.go +++ b/pkg/apis/controller/suggestions/v1alpha3/suggestion_types.go @@ -26,10 +26,10 @@ import ( // SuggestionSpec defines the desired state of Suggestion type SuggestionSpec struct { // Number of suggestions requested - Suggestions int32 `json:"suggestions,omitempty"` + Suggestions *int32 `json:"suggestions,omitempty"` //Algorithm settings set by the user in the experiment config - AlgorithmSpec *common.AlgorithmSpec `json:"algorithm_settings,omitempty"` + AlgorithmSpec *common.AlgorithmSpec `json:"algorithmSpec,omitempty"` } // SuggestionStatus defines the observed state of Suggestion diff --git a/pkg/apis/controller/suggestions/v1alpha3/zz_generated.deepcopy.go b/pkg/apis/controller/suggestions/v1alpha3/zz_generated.deepcopy.go index 497d8ed5f1a..0df81591201 100644 --- a/pkg/apis/controller/suggestions/v1alpha3/zz_generated.deepcopy.go +++ b/pkg/apis/controller/suggestions/v1alpha3/zz_generated.deepcopy.go @@ -106,6 +106,11 @@ func (in *SuggestionList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SuggestionSpec) DeepCopyInto(out *SuggestionSpec) { *out = *in + if in.Suggestions != nil { + in, out := &in.Suggestions, &out.Suggestions + *out = new(int32) + **out = **in + } if in.AlgorithmSpec != nil { in, out := &in.AlgorithmSpec, &out.AlgorithmSpec *out = new(commonv1alpha3.AlgorithmSpec)