k8s.io/kubernetes@v1.29.3/pkg/apis/resource/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright The Kubernetes 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 20 // Code generated by deepcopy-gen. DO NOT EDIT. 21 22 package resource 23 24 import ( 25 runtime "k8s.io/apimachinery/pkg/runtime" 26 core "k8s.io/kubernetes/pkg/apis/core" 27 ) 28 29 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 30 func (in *AllocationResult) DeepCopyInto(out *AllocationResult) { 31 *out = *in 32 if in.ResourceHandles != nil { 33 in, out := &in.ResourceHandles, &out.ResourceHandles 34 *out = make([]ResourceHandle, len(*in)) 35 copy(*out, *in) 36 } 37 if in.AvailableOnNodes != nil { 38 in, out := &in.AvailableOnNodes, &out.AvailableOnNodes 39 *out = new(core.NodeSelector) 40 (*in).DeepCopyInto(*out) 41 } 42 return 43 } 44 45 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationResult. 46 func (in *AllocationResult) DeepCopy() *AllocationResult { 47 if in == nil { 48 return nil 49 } 50 out := new(AllocationResult) 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 *PodSchedulingContext) DeepCopyInto(out *PodSchedulingContext) { 57 *out = *in 58 out.TypeMeta = in.TypeMeta 59 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 60 in.Spec.DeepCopyInto(&out.Spec) 61 in.Status.DeepCopyInto(&out.Status) 62 return 63 } 64 65 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingContext. 66 func (in *PodSchedulingContext) DeepCopy() *PodSchedulingContext { 67 if in == nil { 68 return nil 69 } 70 out := new(PodSchedulingContext) 71 in.DeepCopyInto(out) 72 return out 73 } 74 75 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 76 func (in *PodSchedulingContext) DeepCopyObject() runtime.Object { 77 if c := in.DeepCopy(); c != nil { 78 return c 79 } 80 return nil 81 } 82 83 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 84 func (in *PodSchedulingContextList) DeepCopyInto(out *PodSchedulingContextList) { 85 *out = *in 86 out.TypeMeta = in.TypeMeta 87 in.ListMeta.DeepCopyInto(&out.ListMeta) 88 if in.Items != nil { 89 in, out := &in.Items, &out.Items 90 *out = make([]PodSchedulingContext, len(*in)) 91 for i := range *in { 92 (*in)[i].DeepCopyInto(&(*out)[i]) 93 } 94 } 95 return 96 } 97 98 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingContextList. 99 func (in *PodSchedulingContextList) DeepCopy() *PodSchedulingContextList { 100 if in == nil { 101 return nil 102 } 103 out := new(PodSchedulingContextList) 104 in.DeepCopyInto(out) 105 return out 106 } 107 108 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 109 func (in *PodSchedulingContextList) DeepCopyObject() runtime.Object { 110 if c := in.DeepCopy(); c != nil { 111 return c 112 } 113 return nil 114 } 115 116 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 117 func (in *PodSchedulingContextSpec) DeepCopyInto(out *PodSchedulingContextSpec) { 118 *out = *in 119 if in.PotentialNodes != nil { 120 in, out := &in.PotentialNodes, &out.PotentialNodes 121 *out = make([]string, len(*in)) 122 copy(*out, *in) 123 } 124 return 125 } 126 127 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingContextSpec. 128 func (in *PodSchedulingContextSpec) DeepCopy() *PodSchedulingContextSpec { 129 if in == nil { 130 return nil 131 } 132 out := new(PodSchedulingContextSpec) 133 in.DeepCopyInto(out) 134 return out 135 } 136 137 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 138 func (in *PodSchedulingContextStatus) DeepCopyInto(out *PodSchedulingContextStatus) { 139 *out = *in 140 if in.ResourceClaims != nil { 141 in, out := &in.ResourceClaims, &out.ResourceClaims 142 *out = make([]ResourceClaimSchedulingStatus, len(*in)) 143 for i := range *in { 144 (*in)[i].DeepCopyInto(&(*out)[i]) 145 } 146 } 147 return 148 } 149 150 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingContextStatus. 151 func (in *PodSchedulingContextStatus) DeepCopy() *PodSchedulingContextStatus { 152 if in == nil { 153 return nil 154 } 155 out := new(PodSchedulingContextStatus) 156 in.DeepCopyInto(out) 157 return out 158 } 159 160 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 161 func (in *ResourceClaim) DeepCopyInto(out *ResourceClaim) { 162 *out = *in 163 out.TypeMeta = in.TypeMeta 164 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 165 in.Spec.DeepCopyInto(&out.Spec) 166 in.Status.DeepCopyInto(&out.Status) 167 return 168 } 169 170 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaim. 171 func (in *ResourceClaim) DeepCopy() *ResourceClaim { 172 if in == nil { 173 return nil 174 } 175 out := new(ResourceClaim) 176 in.DeepCopyInto(out) 177 return out 178 } 179 180 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 181 func (in *ResourceClaim) DeepCopyObject() runtime.Object { 182 if c := in.DeepCopy(); c != nil { 183 return c 184 } 185 return nil 186 } 187 188 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 189 func (in *ResourceClaimConsumerReference) DeepCopyInto(out *ResourceClaimConsumerReference) { 190 *out = *in 191 return 192 } 193 194 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimConsumerReference. 195 func (in *ResourceClaimConsumerReference) DeepCopy() *ResourceClaimConsumerReference { 196 if in == nil { 197 return nil 198 } 199 out := new(ResourceClaimConsumerReference) 200 in.DeepCopyInto(out) 201 return out 202 } 203 204 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 205 func (in *ResourceClaimList) DeepCopyInto(out *ResourceClaimList) { 206 *out = *in 207 out.TypeMeta = in.TypeMeta 208 in.ListMeta.DeepCopyInto(&out.ListMeta) 209 if in.Items != nil { 210 in, out := &in.Items, &out.Items 211 *out = make([]ResourceClaim, len(*in)) 212 for i := range *in { 213 (*in)[i].DeepCopyInto(&(*out)[i]) 214 } 215 } 216 return 217 } 218 219 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimList. 220 func (in *ResourceClaimList) DeepCopy() *ResourceClaimList { 221 if in == nil { 222 return nil 223 } 224 out := new(ResourceClaimList) 225 in.DeepCopyInto(out) 226 return out 227 } 228 229 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 230 func (in *ResourceClaimList) DeepCopyObject() runtime.Object { 231 if c := in.DeepCopy(); c != nil { 232 return c 233 } 234 return nil 235 } 236 237 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 238 func (in *ResourceClaimParametersReference) DeepCopyInto(out *ResourceClaimParametersReference) { 239 *out = *in 240 return 241 } 242 243 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimParametersReference. 244 func (in *ResourceClaimParametersReference) DeepCopy() *ResourceClaimParametersReference { 245 if in == nil { 246 return nil 247 } 248 out := new(ResourceClaimParametersReference) 249 in.DeepCopyInto(out) 250 return out 251 } 252 253 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 254 func (in *ResourceClaimSchedulingStatus) DeepCopyInto(out *ResourceClaimSchedulingStatus) { 255 *out = *in 256 if in.UnsuitableNodes != nil { 257 in, out := &in.UnsuitableNodes, &out.UnsuitableNodes 258 *out = make([]string, len(*in)) 259 copy(*out, *in) 260 } 261 return 262 } 263 264 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimSchedulingStatus. 265 func (in *ResourceClaimSchedulingStatus) DeepCopy() *ResourceClaimSchedulingStatus { 266 if in == nil { 267 return nil 268 } 269 out := new(ResourceClaimSchedulingStatus) 270 in.DeepCopyInto(out) 271 return out 272 } 273 274 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 275 func (in *ResourceClaimSpec) DeepCopyInto(out *ResourceClaimSpec) { 276 *out = *in 277 if in.ParametersRef != nil { 278 in, out := &in.ParametersRef, &out.ParametersRef 279 *out = new(ResourceClaimParametersReference) 280 **out = **in 281 } 282 return 283 } 284 285 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimSpec. 286 func (in *ResourceClaimSpec) DeepCopy() *ResourceClaimSpec { 287 if in == nil { 288 return nil 289 } 290 out := new(ResourceClaimSpec) 291 in.DeepCopyInto(out) 292 return out 293 } 294 295 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 296 func (in *ResourceClaimStatus) DeepCopyInto(out *ResourceClaimStatus) { 297 *out = *in 298 if in.Allocation != nil { 299 in, out := &in.Allocation, &out.Allocation 300 *out = new(AllocationResult) 301 (*in).DeepCopyInto(*out) 302 } 303 if in.ReservedFor != nil { 304 in, out := &in.ReservedFor, &out.ReservedFor 305 *out = make([]ResourceClaimConsumerReference, len(*in)) 306 copy(*out, *in) 307 } 308 return 309 } 310 311 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimStatus. 312 func (in *ResourceClaimStatus) DeepCopy() *ResourceClaimStatus { 313 if in == nil { 314 return nil 315 } 316 out := new(ResourceClaimStatus) 317 in.DeepCopyInto(out) 318 return out 319 } 320 321 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 322 func (in *ResourceClaimTemplate) DeepCopyInto(out *ResourceClaimTemplate) { 323 *out = *in 324 out.TypeMeta = in.TypeMeta 325 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 326 in.Spec.DeepCopyInto(&out.Spec) 327 return 328 } 329 330 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplate. 331 func (in *ResourceClaimTemplate) DeepCopy() *ResourceClaimTemplate { 332 if in == nil { 333 return nil 334 } 335 out := new(ResourceClaimTemplate) 336 in.DeepCopyInto(out) 337 return out 338 } 339 340 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 341 func (in *ResourceClaimTemplate) DeepCopyObject() runtime.Object { 342 if c := in.DeepCopy(); c != nil { 343 return c 344 } 345 return nil 346 } 347 348 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 349 func (in *ResourceClaimTemplateList) DeepCopyInto(out *ResourceClaimTemplateList) { 350 *out = *in 351 out.TypeMeta = in.TypeMeta 352 in.ListMeta.DeepCopyInto(&out.ListMeta) 353 if in.Items != nil { 354 in, out := &in.Items, &out.Items 355 *out = make([]ResourceClaimTemplate, len(*in)) 356 for i := range *in { 357 (*in)[i].DeepCopyInto(&(*out)[i]) 358 } 359 } 360 return 361 } 362 363 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplateList. 364 func (in *ResourceClaimTemplateList) DeepCopy() *ResourceClaimTemplateList { 365 if in == nil { 366 return nil 367 } 368 out := new(ResourceClaimTemplateList) 369 in.DeepCopyInto(out) 370 return out 371 } 372 373 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 374 func (in *ResourceClaimTemplateList) DeepCopyObject() runtime.Object { 375 if c := in.DeepCopy(); c != nil { 376 return c 377 } 378 return nil 379 } 380 381 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 382 func (in *ResourceClaimTemplateSpec) DeepCopyInto(out *ResourceClaimTemplateSpec) { 383 *out = *in 384 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 385 in.Spec.DeepCopyInto(&out.Spec) 386 return 387 } 388 389 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplateSpec. 390 func (in *ResourceClaimTemplateSpec) DeepCopy() *ResourceClaimTemplateSpec { 391 if in == nil { 392 return nil 393 } 394 out := new(ResourceClaimTemplateSpec) 395 in.DeepCopyInto(out) 396 return out 397 } 398 399 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 400 func (in *ResourceClass) DeepCopyInto(out *ResourceClass) { 401 *out = *in 402 out.TypeMeta = in.TypeMeta 403 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 404 if in.ParametersRef != nil { 405 in, out := &in.ParametersRef, &out.ParametersRef 406 *out = new(ResourceClassParametersReference) 407 **out = **in 408 } 409 if in.SuitableNodes != nil { 410 in, out := &in.SuitableNodes, &out.SuitableNodes 411 *out = new(core.NodeSelector) 412 (*in).DeepCopyInto(*out) 413 } 414 return 415 } 416 417 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClass. 418 func (in *ResourceClass) DeepCopy() *ResourceClass { 419 if in == nil { 420 return nil 421 } 422 out := new(ResourceClass) 423 in.DeepCopyInto(out) 424 return out 425 } 426 427 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 428 func (in *ResourceClass) DeepCopyObject() runtime.Object { 429 if c := in.DeepCopy(); c != nil { 430 return c 431 } 432 return nil 433 } 434 435 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 436 func (in *ResourceClassList) DeepCopyInto(out *ResourceClassList) { 437 *out = *in 438 out.TypeMeta = in.TypeMeta 439 in.ListMeta.DeepCopyInto(&out.ListMeta) 440 if in.Items != nil { 441 in, out := &in.Items, &out.Items 442 *out = make([]ResourceClass, len(*in)) 443 for i := range *in { 444 (*in)[i].DeepCopyInto(&(*out)[i]) 445 } 446 } 447 return 448 } 449 450 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClassList. 451 func (in *ResourceClassList) DeepCopy() *ResourceClassList { 452 if in == nil { 453 return nil 454 } 455 out := new(ResourceClassList) 456 in.DeepCopyInto(out) 457 return out 458 } 459 460 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 461 func (in *ResourceClassList) DeepCopyObject() runtime.Object { 462 if c := in.DeepCopy(); c != nil { 463 return c 464 } 465 return nil 466 } 467 468 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 469 func (in *ResourceClassParametersReference) DeepCopyInto(out *ResourceClassParametersReference) { 470 *out = *in 471 return 472 } 473 474 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClassParametersReference. 475 func (in *ResourceClassParametersReference) DeepCopy() *ResourceClassParametersReference { 476 if in == nil { 477 return nil 478 } 479 out := new(ResourceClassParametersReference) 480 in.DeepCopyInto(out) 481 return out 482 } 483 484 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 485 func (in *ResourceHandle) DeepCopyInto(out *ResourceHandle) { 486 *out = *in 487 return 488 } 489 490 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceHandle. 491 func (in *ResourceHandle) DeepCopy() *ResourceHandle { 492 if in == nil { 493 return nil 494 } 495 out := new(ResourceHandle) 496 in.DeepCopyInto(out) 497 return out 498 }