apis/network/v1/zz_generated.deepcopy.go (523 lines of code) (raw):

//go:build !ignore_autogenerated /* Copyright 2024 The Kubernetes 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 https://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 ( 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 *DNSConfig) DeepCopyInto(out *DNSConfig) { *out = *in if in.Nameservers != nil { in, out := &in.Nameservers, &out.Nameservers *out = make([]string, len(*in)) copy(*out, *in) } if in.Searches != nil { in, out := &in.Searches, &out.Searches *out = make([]string, len(*in)) copy(*out, *in) } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSConfig. func (in *DNSConfig) DeepCopy() *DNSConfig { if in == nil { return nil } out := new(DNSConfig) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GKENetworkParamSet) DeepCopyInto(out *GKENetworkParamSet) { *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 GKENetworkParamSet. func (in *GKENetworkParamSet) DeepCopy() *GKENetworkParamSet { if in == nil { return nil } out := new(GKENetworkParamSet) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *GKENetworkParamSet) 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 *GKENetworkParamSetList) DeepCopyInto(out *GKENetworkParamSetList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]GKENetworkParamSet, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKENetworkParamSetList. func (in *GKENetworkParamSetList) DeepCopy() *GKENetworkParamSetList { if in == nil { return nil } out := new(GKENetworkParamSetList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *GKENetworkParamSetList) 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 *GKENetworkParamSetSpec) DeepCopyInto(out *GKENetworkParamSetSpec) { *out = *in if in.PodIPv4Ranges != nil { in, out := &in.PodIPv4Ranges, &out.PodIPv4Ranges *out = new(SecondaryRanges) (*in).DeepCopyInto(*out) } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKENetworkParamSetSpec. func (in *GKENetworkParamSetSpec) DeepCopy() *GKENetworkParamSetSpec { if in == nil { return nil } out := new(GKENetworkParamSetSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GKENetworkParamSetStatus) DeepCopyInto(out *GKENetworkParamSetStatus) { *out = *in if in.PodCIDRs != nil { in, out := &in.PodCIDRs, &out.PodCIDRs *out = new(NetworkRanges) (*in).DeepCopyInto(*out) } 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]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKENetworkParamSetStatus. func (in *GKENetworkParamSetStatus) DeepCopy() *GKENetworkParamSetStatus { if in == nil { return nil } out := new(GKENetworkParamSetStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *L2NetworkConfig) DeepCopyInto(out *L2NetworkConfig) { *out = *in if in.VlanID != nil { in, out := &in.VlanID, &out.VlanID *out = new(int32) **out = **in } if in.PrefixLength4 != nil { in, out := &in.PrefixLength4, &out.PrefixLength4 *out = new(int32) **out = **in } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2NetworkConfig. func (in *L2NetworkConfig) DeepCopy() *L2NetworkConfig { if in == nil { return nil } out := new(L2NetworkConfig) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Network) DeepCopyInto(out *Network) { *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 Network. func (in *Network) DeepCopy() *Network { if in == nil { return nil } out := new(Network) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *Network) 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 *NetworkInterface) DeepCopyInto(out *NetworkInterface) { *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 NetworkInterface. func (in *NetworkInterface) DeepCopy() *NetworkInterface { if in == nil { return nil } out := new(NetworkInterface) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *NetworkInterface) 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 *NetworkInterfaceList) DeepCopyInto(out *NetworkInterfaceList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]NetworkInterface, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterfaceList. func (in *NetworkInterfaceList) DeepCopy() *NetworkInterfaceList { if in == nil { return nil } out := new(NetworkInterfaceList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *NetworkInterfaceList) 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 *NetworkInterfaceSpec) DeepCopyInto(out *NetworkInterfaceSpec) { *out = *in if in.SubnetworkName != nil { in, out := &in.SubnetworkName, &out.SubnetworkName *out = new(string) **out = **in } if in.IpAddresses != nil { in, out := &in.IpAddresses, &out.IpAddresses *out = make([]string, len(*in)) copy(*out, *in) } if in.MacAddress != nil { in, out := &in.MacAddress, &out.MacAddress *out = new(string) **out = **in } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterfaceSpec. func (in *NetworkInterfaceSpec) DeepCopy() *NetworkInterfaceSpec { if in == nil { return nil } out := new(NetworkInterfaceSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NetworkInterfaceStatus) DeepCopyInto(out *NetworkInterfaceStatus) { *out = *in if in.IpAddresses != nil { in, out := &in.IpAddresses, &out.IpAddresses *out = make([]string, len(*in)) copy(*out, *in) } if in.Routes != nil { in, out := &in.Routes, &out.Routes *out = make([]Route, len(*in)) copy(*out, *in) } if in.Gateway4 != nil { in, out := &in.Gateway4, &out.Gateway4 *out = new(string) **out = **in } if in.DNSConfig != nil { in, out := &in.DNSConfig, &out.DNSConfig *out = new(DNSConfig) (*in).DeepCopyInto(*out) } if in.PodName != nil { in, out := &in.PodName, &out.PodName *out = new(string) **out = **in } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterfaceStatus. func (in *NetworkInterfaceStatus) DeepCopy() *NetworkInterfaceStatus { if in == nil { return nil } out := new(NetworkInterfaceStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NetworkList) DeepCopyInto(out *NetworkList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Network, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkList. func (in *NetworkList) DeepCopy() *NetworkList { if in == nil { return nil } out := new(NetworkList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *NetworkList) 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 *NetworkParametersReference) DeepCopyInto(out *NetworkParametersReference) { *out = *in if in.Namespace != nil { in, out := &in.Namespace, &out.Namespace *out = new(string) **out = **in } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkParametersReference. func (in *NetworkParametersReference) DeepCopy() *NetworkParametersReference { if in == nil { return nil } out := new(NetworkParametersReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NetworkRanges) DeepCopyInto(out *NetworkRanges) { *out = *in if in.CIDRBlocks != nil { in, out := &in.CIDRBlocks, &out.CIDRBlocks *out = make([]string, len(*in)) copy(*out, *in) } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkRanges. func (in *NetworkRanges) DeepCopy() *NetworkRanges { if in == nil { return nil } out := new(NetworkRanges) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NetworkSpec) DeepCopyInto(out *NetworkSpec) { *out = *in if in.Provider != nil { in, out := &in.Provider, &out.Provider *out = new(ProviderType) **out = **in } in.NodeInterfaceMatcher.DeepCopyInto(&out.NodeInterfaceMatcher) if in.L2NetworkConfig != nil { in, out := &in.L2NetworkConfig, &out.L2NetworkConfig *out = new(L2NetworkConfig) (*in).DeepCopyInto(*out) } if in.NetworkLifecycle != nil { in, out := &in.NetworkLifecycle, &out.NetworkLifecycle *out = new(LifecycleType) **out = **in } if in.Routes != nil { in, out := &in.Routes, &out.Routes *out = make([]Route, len(*in)) copy(*out, *in) } if in.Gateway4 != nil { in, out := &in.Gateway4, &out.Gateway4 *out = new(string) **out = **in } if in.DNSConfig != nil { in, out := &in.DNSConfig, &out.DNSConfig *out = new(DNSConfig) (*in).DeepCopyInto(*out) } if in.ExternalDHCP4 != nil { in, out := &in.ExternalDHCP4, &out.ExternalDHCP4 *out = new(bool) **out = **in } if in.ParametersRef != nil { in, out := &in.ParametersRef, &out.ParametersRef *out = new(NetworkParametersReference) (*in).DeepCopyInto(*out) } if in.IPAMMode != nil { in, out := &in.IPAMMode, &out.IPAMMode *out = new(IPAMModeType) **out = **in } if in.IPAMMode6 != nil { in, out := &in.IPAMMode6, &out.IPAMMode6 *out = new(IPAMModeType) **out = **in } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkSpec. func (in *NetworkSpec) DeepCopy() *NetworkSpec { if in == nil { return nil } out := new(NetworkSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NetworkStatus) DeepCopyInto(out *NetworkStatus) { *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]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkStatus. func (in *NetworkStatus) DeepCopy() *NetworkStatus { if in == nil { return nil } out := new(NetworkStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NodeInterfaceMatcher) DeepCopyInto(out *NodeInterfaceMatcher) { *out = *in if in.InterfaceName != nil { in, out := &in.InterfaceName, &out.InterfaceName *out = new(string) **out = **in } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeInterfaceMatcher. func (in *NodeInterfaceMatcher) DeepCopy() *NodeInterfaceMatcher { if in == nil { return nil } out := new(NodeInterfaceMatcher) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Route) DeepCopyInto(out *Route) { *out = *in } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route. func (in *Route) DeepCopy() *Route { if in == nil { return nil } out := new(Route) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SecondaryRanges) DeepCopyInto(out *SecondaryRanges) { *out = *in if in.RangeNames != nil { in, out := &in.RangeNames, &out.RangeNames *out = make([]string, len(*in)) copy(*out, *in) } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecondaryRanges. func (in *SecondaryRanges) DeepCopy() *SecondaryRanges { if in == nil { return nil } out := new(SecondaryRanges) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Subnetwork) DeepCopyInto(out *Subnetwork) { *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 Subnetwork. func (in *Subnetwork) DeepCopy() *Subnetwork { if in == nil { return nil } out := new(Subnetwork) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *Subnetwork) 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 *SubnetworkList) DeepCopyInto(out *SubnetworkList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Subnetwork, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetworkList. func (in *SubnetworkList) DeepCopy() *SubnetworkList { if in == nil { return nil } out := new(SubnetworkList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *SubnetworkList) 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 *SubnetworkSpec) DeepCopyInto(out *SubnetworkSpec) { *out = *in if in.Gateway4 != nil { in, out := &in.Gateway4, &out.Gateway4 *out = new(string) **out = **in } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetworkSpec. func (in *SubnetworkSpec) DeepCopy() *SubnetworkSpec { if in == nil { return nil } out := new(SubnetworkSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SubnetworkStatus) DeepCopyInto(out *SubnetworkStatus) { *out = *in if in.Gateway4 != nil { in, out := &in.Gateway4, &out.Gateway4 *out = new(string) **out = **in } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetworkStatus. func (in *SubnetworkStatus) DeepCopy() *SubnetworkStatus { if in == nil { return nil } out := new(SubnetworkStatus) in.DeepCopyInto(out) return out }