volcano.sh/apis@v1.8.2/pkg/apis/scheduling/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright 2021 The Volcano Authors. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 */ 19 // Code generated by deepcopy-gen. DO NOT EDIT. 20 21 package scheduling 22 23 import ( 24 v1 "k8s.io/api/core/v1" 25 resource "k8s.io/apimachinery/pkg/api/resource" 26 runtime "k8s.io/apimachinery/pkg/runtime" 27 ) 28 29 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 30 func (in *Affinity) DeepCopyInto(out *Affinity) { 31 *out = *in 32 if in.NodeGroupAffinity != nil { 33 in, out := &in.NodeGroupAffinity, &out.NodeGroupAffinity 34 *out = new(NodeGroupAffinity) 35 (*in).DeepCopyInto(*out) 36 } 37 if in.NodeGroupAntiAffinity != nil { 38 in, out := &in.NodeGroupAntiAffinity, &out.NodeGroupAntiAffinity 39 *out = new(NodeGroupAntiAffinity) 40 (*in).DeepCopyInto(*out) 41 } 42 return 43 } 44 45 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Affinity. 46 func (in *Affinity) DeepCopy() *Affinity { 47 if in == nil { 48 return nil 49 } 50 out := new(Affinity) 51 in.DeepCopyInto(out) 52 return out 53 } 54 55 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 56 func (in *Cluster) DeepCopyInto(out *Cluster) { 57 *out = *in 58 if in.Capacity != nil { 59 in, out := &in.Capacity, &out.Capacity 60 *out = make(v1.ResourceList, len(*in)) 61 for key, val := range *in { 62 (*out)[key] = val.DeepCopy() 63 } 64 } 65 return 66 } 67 68 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. 69 func (in *Cluster) DeepCopy() *Cluster { 70 if in == nil { 71 return nil 72 } 73 out := new(Cluster) 74 in.DeepCopyInto(out) 75 return out 76 } 77 78 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 79 func (in *Guarantee) DeepCopyInto(out *Guarantee) { 80 *out = *in 81 if in.Resource != nil { 82 in, out := &in.Resource, &out.Resource 83 *out = make(v1.ResourceList, len(*in)) 84 for key, val := range *in { 85 (*out)[key] = val.DeepCopy() 86 } 87 } 88 return 89 } 90 91 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Guarantee. 92 func (in *Guarantee) DeepCopy() *Guarantee { 93 if in == nil { 94 return nil 95 } 96 out := new(Guarantee) 97 in.DeepCopyInto(out) 98 return out 99 } 100 101 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 102 func (in *NodeGroupAffinity) DeepCopyInto(out *NodeGroupAffinity) { 103 *out = *in 104 if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { 105 in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution 106 *out = make([]string, len(*in)) 107 copy(*out, *in) 108 } 109 if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { 110 in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution 111 *out = make([]string, len(*in)) 112 copy(*out, *in) 113 } 114 return 115 } 116 117 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeGroupAffinity. 118 func (in *NodeGroupAffinity) DeepCopy() *NodeGroupAffinity { 119 if in == nil { 120 return nil 121 } 122 out := new(NodeGroupAffinity) 123 in.DeepCopyInto(out) 124 return out 125 } 126 127 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 128 func (in *NodeGroupAntiAffinity) DeepCopyInto(out *NodeGroupAntiAffinity) { 129 *out = *in 130 if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { 131 in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution 132 *out = make([]string, len(*in)) 133 copy(*out, *in) 134 } 135 if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { 136 in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution 137 *out = make([]string, len(*in)) 138 copy(*out, *in) 139 } 140 return 141 } 142 143 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeGroupAntiAffinity. 144 func (in *NodeGroupAntiAffinity) DeepCopy() *NodeGroupAntiAffinity { 145 if in == nil { 146 return nil 147 } 148 out := new(NodeGroupAntiAffinity) 149 in.DeepCopyInto(out) 150 return out 151 } 152 153 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 154 func (in *PodGroup) DeepCopyInto(out *PodGroup) { 155 *out = *in 156 out.TypeMeta = in.TypeMeta 157 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 158 in.Spec.DeepCopyInto(&out.Spec) 159 in.Status.DeepCopyInto(&out.Status) 160 return 161 } 162 163 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodGroup. 164 func (in *PodGroup) DeepCopy() *PodGroup { 165 if in == nil { 166 return nil 167 } 168 out := new(PodGroup) 169 in.DeepCopyInto(out) 170 return out 171 } 172 173 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 174 func (in *PodGroup) DeepCopyObject() runtime.Object { 175 if c := in.DeepCopy(); c != nil { 176 return c 177 } 178 return nil 179 } 180 181 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 182 func (in *PodGroupCondition) DeepCopyInto(out *PodGroupCondition) { 183 *out = *in 184 in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) 185 return 186 } 187 188 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodGroupCondition. 189 func (in *PodGroupCondition) DeepCopy() *PodGroupCondition { 190 if in == nil { 191 return nil 192 } 193 out := new(PodGroupCondition) 194 in.DeepCopyInto(out) 195 return out 196 } 197 198 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 199 func (in *PodGroupList) DeepCopyInto(out *PodGroupList) { 200 *out = *in 201 out.TypeMeta = in.TypeMeta 202 in.ListMeta.DeepCopyInto(&out.ListMeta) 203 if in.Items != nil { 204 in, out := &in.Items, &out.Items 205 *out = make([]PodGroup, len(*in)) 206 for i := range *in { 207 (*in)[i].DeepCopyInto(&(*out)[i]) 208 } 209 } 210 return 211 } 212 213 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodGroupList. 214 func (in *PodGroupList) DeepCopy() *PodGroupList { 215 if in == nil { 216 return nil 217 } 218 out := new(PodGroupList) 219 in.DeepCopyInto(out) 220 return out 221 } 222 223 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 224 func (in *PodGroupList) DeepCopyObject() runtime.Object { 225 if c := in.DeepCopy(); c != nil { 226 return c 227 } 228 return nil 229 } 230 231 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 232 func (in *PodGroupSpec) DeepCopyInto(out *PodGroupSpec) { 233 *out = *in 234 if in.MinTaskMember != nil { 235 in, out := &in.MinTaskMember, &out.MinTaskMember 236 *out = make(map[string]int32, len(*in)) 237 for key, val := range *in { 238 (*out)[key] = val 239 } 240 } 241 if in.MinResources != nil { 242 in, out := &in.MinResources, &out.MinResources 243 *out = new(v1.ResourceList) 244 if **in != nil { 245 in, out := *in, *out 246 *out = make(map[v1.ResourceName]resource.Quantity, len(*in)) 247 for key, val := range *in { 248 (*out)[key] = val.DeepCopy() 249 } 250 } 251 } 252 return 253 } 254 255 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodGroupSpec. 256 func (in *PodGroupSpec) DeepCopy() *PodGroupSpec { 257 if in == nil { 258 return nil 259 } 260 out := new(PodGroupSpec) 261 in.DeepCopyInto(out) 262 return out 263 } 264 265 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 266 func (in *PodGroupStatus) DeepCopyInto(out *PodGroupStatus) { 267 *out = *in 268 if in.Conditions != nil { 269 in, out := &in.Conditions, &out.Conditions 270 *out = make([]PodGroupCondition, len(*in)) 271 for i := range *in { 272 (*in)[i].DeepCopyInto(&(*out)[i]) 273 } 274 } 275 return 276 } 277 278 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodGroupStatus. 279 func (in *PodGroupStatus) DeepCopy() *PodGroupStatus { 280 if in == nil { 281 return nil 282 } 283 out := new(PodGroupStatus) 284 in.DeepCopyInto(out) 285 return out 286 } 287 288 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 289 func (in *Queue) DeepCopyInto(out *Queue) { 290 *out = *in 291 out.TypeMeta = in.TypeMeta 292 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 293 in.Spec.DeepCopyInto(&out.Spec) 294 in.Status.DeepCopyInto(&out.Status) 295 return 296 } 297 298 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Queue. 299 func (in *Queue) DeepCopy() *Queue { 300 if in == nil { 301 return nil 302 } 303 out := new(Queue) 304 in.DeepCopyInto(out) 305 return out 306 } 307 308 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 309 func (in *Queue) DeepCopyObject() runtime.Object { 310 if c := in.DeepCopy(); c != nil { 311 return c 312 } 313 return nil 314 } 315 316 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 317 func (in *QueueList) DeepCopyInto(out *QueueList) { 318 *out = *in 319 out.TypeMeta = in.TypeMeta 320 in.ListMeta.DeepCopyInto(&out.ListMeta) 321 if in.Items != nil { 322 in, out := &in.Items, &out.Items 323 *out = make([]Queue, len(*in)) 324 for i := range *in { 325 (*in)[i].DeepCopyInto(&(*out)[i]) 326 } 327 } 328 return 329 } 330 331 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueueList. 332 func (in *QueueList) DeepCopy() *QueueList { 333 if in == nil { 334 return nil 335 } 336 out := new(QueueList) 337 in.DeepCopyInto(out) 338 return out 339 } 340 341 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 342 func (in *QueueList) DeepCopyObject() runtime.Object { 343 if c := in.DeepCopy(); c != nil { 344 return c 345 } 346 return nil 347 } 348 349 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 350 func (in *QueueSpec) DeepCopyInto(out *QueueSpec) { 351 *out = *in 352 if in.Capability != nil { 353 in, out := &in.Capability, &out.Capability 354 *out = make(v1.ResourceList, len(*in)) 355 for key, val := range *in { 356 (*out)[key] = val.DeepCopy() 357 } 358 } 359 if in.Reclaimable != nil { 360 in, out := &in.Reclaimable, &out.Reclaimable 361 *out = new(bool) 362 **out = **in 363 } 364 if in.ExtendClusters != nil { 365 in, out := &in.ExtendClusters, &out.ExtendClusters 366 *out = make([]Cluster, len(*in)) 367 for i := range *in { 368 (*in)[i].DeepCopyInto(&(*out)[i]) 369 } 370 } 371 in.Guarantee.DeepCopyInto(&out.Guarantee) 372 if in.Affinity != nil { 373 in, out := &in.Affinity, &out.Affinity 374 *out = new(Affinity) 375 (*in).DeepCopyInto(*out) 376 } 377 return 378 } 379 380 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueueSpec. 381 func (in *QueueSpec) DeepCopy() *QueueSpec { 382 if in == nil { 383 return nil 384 } 385 out := new(QueueSpec) 386 in.DeepCopyInto(out) 387 return out 388 } 389 390 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 391 func (in *QueueStatus) DeepCopyInto(out *QueueStatus) { 392 *out = *in 393 in.Reservation.DeepCopyInto(&out.Reservation) 394 if in.Allocated != nil { 395 in, out := &in.Allocated, &out.Allocated 396 *out = make(v1.ResourceList, len(*in)) 397 for key, val := range *in { 398 (*out)[key] = val.DeepCopy() 399 } 400 } 401 return 402 } 403 404 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueueStatus. 405 func (in *QueueStatus) DeepCopy() *QueueStatus { 406 if in == nil { 407 return nil 408 } 409 out := new(QueueStatus) 410 in.DeepCopyInto(out) 411 return out 412 } 413 414 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 415 func (in *Reservation) DeepCopyInto(out *Reservation) { 416 *out = *in 417 if in.Nodes != nil { 418 in, out := &in.Nodes, &out.Nodes 419 *out = make([]string, len(*in)) 420 copy(*out, *in) 421 } 422 if in.Resource != nil { 423 in, out := &in.Resource, &out.Resource 424 *out = make(v1.ResourceList, len(*in)) 425 for key, val := range *in { 426 (*out)[key] = val.DeepCopy() 427 } 428 } 429 return 430 } 431 432 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Reservation. 433 func (in *Reservation) DeepCopy() *Reservation { 434 if in == nil { 435 return nil 436 } 437 out := new(Reservation) 438 in.DeepCopyInto(out) 439 return out 440 }