diff --git a/operator/v1/types_klusterlet.go b/operator/v1/types_klusterlet.go index 31014edca..42dfac3ce 100644 --- a/operator/v1/types_klusterlet.go +++ b/operator/v1/types_klusterlet.go @@ -89,7 +89,7 @@ type KlusterletSpec struct { // ResourceRequirement specify QoS classes of klusterlet deployment // +optional - ResourceRequirement *ResourceRequirement `json:"resourceRequirement,omitempty"` + ResourceRequirement ResourceRequirement `json:"resourceRequirement,omitempty"` } type ResourceQosClass string diff --git a/operator/v1/zz_generated.deepcopy.go b/operator/v1/zz_generated.deepcopy.go index 40cd4080e..6a923f993 100644 --- a/operator/v1/zz_generated.deepcopy.go +++ b/operator/v1/zz_generated.deepcopy.go @@ -350,6 +350,7 @@ func (in *KlusterletSpec) DeepCopyInto(out *KlusterletSpec) { *out = new(HubApiServerHostAlias) **out = **in } + out.ResourceRequirement = in.ResourceRequirement return } @@ -496,6 +497,22 @@ func (in *RelatedResourceMeta) DeepCopy() *RelatedResourceMeta { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceRequirement) DeepCopyInto(out *ResourceRequirement) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequirement. +func (in *ResourceRequirement) DeepCopy() *ResourceRequirement { + if in == nil { + return nil + } + out := new(ResourceRequirement) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServerURL) DeepCopyInto(out *ServerURL) { *out = *in