apis/cluster/v1/zz_generated.deepcopy.go (269 lines of code) (raw):

//go:build !ignore_autogenerated /* Copyright 2025 The KubeFleet Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Code generated by controller-gen. DO NOT EDIT. package v1 import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AgentStatus) DeepCopyInto(out *AgentStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]metav1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } in.LastReceivedHeartbeat.DeepCopyInto(&out.LastReceivedHeartbeat) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentStatus. func (in *AgentStatus) DeepCopy() *AgentStatus { if in == nil { return nil } out := new(AgentStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *InternalMemberCluster) DeepCopyInto(out *InternalMemberCluster) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalMemberCluster. func (in *InternalMemberCluster) DeepCopy() *InternalMemberCluster { if in == nil { return nil } out := new(InternalMemberCluster) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *InternalMemberCluster) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *InternalMemberClusterList) DeepCopyInto(out *InternalMemberClusterList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]InternalMemberCluster, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalMemberClusterList. func (in *InternalMemberClusterList) DeepCopy() *InternalMemberClusterList { if in == nil { return nil } out := new(InternalMemberClusterList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *InternalMemberClusterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *InternalMemberClusterSpec) DeepCopyInto(out *InternalMemberClusterSpec) { *out = *in } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalMemberClusterSpec. func (in *InternalMemberClusterSpec) DeepCopy() *InternalMemberClusterSpec { if in == nil { return nil } out := new(InternalMemberClusterSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *InternalMemberClusterStatus) DeepCopyInto(out *InternalMemberClusterStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]metav1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.Properties != nil { in, out := &in.Properties, &out.Properties *out = make(map[PropertyName]PropertyValue, len(*in)) for key, val := range *in { (*out)[key] = *val.DeepCopy() } } in.ResourceUsage.DeepCopyInto(&out.ResourceUsage) if in.AgentStatus != nil { in, out := &in.AgentStatus, &out.AgentStatus *out = make([]AgentStatus, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalMemberClusterStatus. func (in *InternalMemberClusterStatus) DeepCopy() *InternalMemberClusterStatus { if in == nil { return nil } out := new(InternalMemberClusterStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MemberCluster) DeepCopyInto(out *MemberCluster) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemberCluster. func (in *MemberCluster) DeepCopy() *MemberCluster { if in == nil { return nil } out := new(MemberCluster) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *MemberCluster) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MemberClusterList) DeepCopyInto(out *MemberClusterList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]MemberCluster, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemberClusterList. func (in *MemberClusterList) DeepCopy() *MemberClusterList { if in == nil { return nil } out := new(MemberClusterList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *MemberClusterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MemberClusterSpec) DeepCopyInto(out *MemberClusterSpec) { *out = *in out.Identity = in.Identity if in.Taints != nil { in, out := &in.Taints, &out.Taints *out = make([]Taint, len(*in)) copy(*out, *in) } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemberClusterSpec. func (in *MemberClusterSpec) DeepCopy() *MemberClusterSpec { if in == nil { return nil } out := new(MemberClusterSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MemberClusterStatus) DeepCopyInto(out *MemberClusterStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]metav1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.Properties != nil { in, out := &in.Properties, &out.Properties *out = make(map[PropertyName]PropertyValue, len(*in)) for key, val := range *in { (*out)[key] = *val.DeepCopy() } } in.ResourceUsage.DeepCopyInto(&out.ResourceUsage) if in.AgentStatus != nil { in, out := &in.AgentStatus, &out.AgentStatus *out = make([]AgentStatus, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemberClusterStatus. func (in *MemberClusterStatus) DeepCopy() *MemberClusterStatus { if in == nil { return nil } out := new(MemberClusterStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PropertyValue) DeepCopyInto(out *PropertyValue) { *out = *in in.ObservationTime.DeepCopyInto(&out.ObservationTime) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PropertyValue. func (in *PropertyValue) DeepCopy() *PropertyValue { if in == nil { return nil } out := new(PropertyValue) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourceUsage) DeepCopyInto(out *ResourceUsage) { *out = *in if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity *out = make(corev1.ResourceList, len(*in)) for key, val := range *in { (*out)[key] = val.DeepCopy() } } if in.Allocatable != nil { in, out := &in.Allocatable, &out.Allocatable *out = make(corev1.ResourceList, len(*in)) for key, val := range *in { (*out)[key] = val.DeepCopy() } } if in.Available != nil { in, out := &in.Available, &out.Available *out = make(corev1.ResourceList, len(*in)) for key, val := range *in { (*out)[key] = val.DeepCopy() } } in.ObservationTime.DeepCopyInto(&out.ObservationTime) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceUsage. func (in *ResourceUsage) DeepCopy() *ResourceUsage { if in == nil { return nil } out := new(ResourceUsage) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Taint) DeepCopyInto(out *Taint) { *out = *in } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Taint. func (in *Taint) DeepCopy() *Taint { if in == nil { return nil } out := new(Taint) in.DeepCopyInto(out) return out }