github.com/cilium/cilium@v1.16.2/pkg/k8s/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 // SPDX-License-Identifier: Apache-2.0 5 // Copyright Authors of Cilium 6 7 // Code generated by deepcopy-gen. DO NOT EDIT. 8 9 package k8s 10 11 import ( 12 net "net" 13 14 cidr "github.com/cilium/cilium/pkg/cidr" 15 loadbalancer "github.com/cilium/cilium/pkg/loadbalancer" 16 store "github.com/cilium/cilium/pkg/service/store" 17 runtime "k8s.io/apimachinery/pkg/runtime" 18 ) 19 20 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 21 func (in *Backend) DeepCopyInto(out *Backend) { 22 *out = *in 23 if in.Ports != nil { 24 in, out := &in.Ports, &out.Ports 25 *out = make(store.PortConfiguration, len(*in)) 26 for key, val := range *in { 27 var outVal *loadbalancer.L4Addr 28 if val == nil { 29 (*out)[key] = nil 30 } else { 31 in, out := &val, &outVal 32 *out = new(loadbalancer.L4Addr) 33 **out = **in 34 } 35 (*out)[key] = outVal 36 } 37 } 38 if in.HintsForZones != nil { 39 in, out := &in.HintsForZones, &out.HintsForZones 40 *out = make([]string, len(*in)) 41 copy(*out, *in) 42 } 43 return 44 } 45 46 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backend. 47 func (in *Backend) DeepCopy() *Backend { 48 if in == nil { 49 return nil 50 } 51 out := new(Backend) 52 in.DeepCopyInto(out) 53 return out 54 } 55 56 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 57 func (in *Endpoints) DeepCopyObject() runtime.Object { 58 if c := in.DeepCopy(); c != nil { 59 return c 60 } 61 return nil 62 } 63 64 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 65 func (in *Service) DeepCopyInto(out *Service) { 66 *out = *in 67 if in.FrontendIPs != nil { 68 in, out := &in.FrontendIPs, &out.FrontendIPs 69 *out = make([]net.IP, len(*in)) 70 for i := range *in { 71 if (*in)[i] != nil { 72 in, out := &(*in)[i], &(*out)[i] 73 *out = make(net.IP, len(*in)) 74 copy(*out, *in) 75 } 76 } 77 } 78 if in.Ports != nil { 79 in, out := &in.Ports, &out.Ports 80 *out = make(map[loadbalancer.FEPortName]*loadbalancer.L4Addr, len(*in)) 81 for key, val := range *in { 82 var outVal *loadbalancer.L4Addr 83 if val == nil { 84 (*out)[key] = nil 85 } else { 86 in, out := &val, &outVal 87 *out = new(loadbalancer.L4Addr) 88 **out = **in 89 } 90 (*out)[key] = outVal 91 } 92 } 93 if in.NodePorts != nil { 94 in, out := &in.NodePorts, &out.NodePorts 95 *out = make(map[loadbalancer.FEPortName]NodePortToFrontend, len(*in)) 96 for key, val := range *in { 97 var outVal map[string]*loadbalancer.L3n4AddrID 98 if val == nil { 99 (*out)[key] = nil 100 } else { 101 in, out := &val, &outVal 102 *out = make(NodePortToFrontend, len(*in)) 103 for key, val := range *in { 104 var outVal *loadbalancer.L3n4AddrID 105 if val == nil { 106 (*out)[key] = nil 107 } else { 108 in, out := &val, &outVal 109 *out = new(loadbalancer.L3n4AddrID) 110 (*in).DeepCopyInto(*out) 111 } 112 (*out)[key] = outVal 113 } 114 } 115 (*out)[key] = outVal 116 } 117 } 118 if in.K8sExternalIPs != nil { 119 in, out := &in.K8sExternalIPs, &out.K8sExternalIPs 120 *out = make(map[string]net.IP, len(*in)) 121 for key, val := range *in { 122 var outVal []byte 123 if val == nil { 124 (*out)[key] = nil 125 } else { 126 in, out := &val, &outVal 127 *out = make(net.IP, len(*in)) 128 copy(*out, *in) 129 } 130 (*out)[key] = outVal 131 } 132 } 133 if in.LoadBalancerIPs != nil { 134 in, out := &in.LoadBalancerIPs, &out.LoadBalancerIPs 135 *out = make(map[string]net.IP, len(*in)) 136 for key, val := range *in { 137 var outVal []byte 138 if val == nil { 139 (*out)[key] = nil 140 } else { 141 in, out := &val, &outVal 142 *out = make(net.IP, len(*in)) 143 copy(*out, *in) 144 } 145 (*out)[key] = outVal 146 } 147 } 148 if in.LoadBalancerSourceRanges != nil { 149 in, out := &in.LoadBalancerSourceRanges, &out.LoadBalancerSourceRanges 150 *out = make(map[string]*cidr.CIDR, len(*in)) 151 for key, val := range *in { 152 var outVal *cidr.CIDR 153 if val == nil { 154 (*out)[key] = nil 155 } else { 156 in, out := &val, &outVal 157 *out = (*in).DeepCopy() 158 } 159 (*out)[key] = outVal 160 } 161 } 162 if in.Labels != nil { 163 in, out := &in.Labels, &out.Labels 164 *out = make(map[string]string, len(*in)) 165 for key, val := range *in { 166 (*out)[key] = val 167 } 168 } 169 if in.Selector != nil { 170 in, out := &in.Selector, &out.Selector 171 *out = make(map[string]string, len(*in)) 172 for key, val := range *in { 173 (*out)[key] = val 174 } 175 } 176 return 177 } 178 179 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service. 180 func (in *Service) DeepCopy() *Service { 181 if in == nil { 182 return nil 183 } 184 out := new(Service) 185 in.DeepCopyInto(out) 186 return out 187 }