k8s.io/kubernetes@v1.29.3/pkg/apis/node/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 node 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 *Overhead) DeepCopyInto(out *Overhead) { 31 *out = *in 32 if in.PodFixed != nil { 33 in, out := &in.PodFixed, &out.PodFixed 34 *out = make(core.ResourceList, len(*in)) 35 for key, val := range *in { 36 (*out)[key] = val.DeepCopy() 37 } 38 } 39 return 40 } 41 42 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Overhead. 43 func (in *Overhead) DeepCopy() *Overhead { 44 if in == nil { 45 return nil 46 } 47 out := new(Overhead) 48 in.DeepCopyInto(out) 49 return out 50 } 51 52 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 53 func (in *RuntimeClass) DeepCopyInto(out *RuntimeClass) { 54 *out = *in 55 out.TypeMeta = in.TypeMeta 56 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 57 if in.Overhead != nil { 58 in, out := &in.Overhead, &out.Overhead 59 *out = new(Overhead) 60 (*in).DeepCopyInto(*out) 61 } 62 if in.Scheduling != nil { 63 in, out := &in.Scheduling, &out.Scheduling 64 *out = new(Scheduling) 65 (*in).DeepCopyInto(*out) 66 } 67 return 68 } 69 70 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClass. 71 func (in *RuntimeClass) DeepCopy() *RuntimeClass { 72 if in == nil { 73 return nil 74 } 75 out := new(RuntimeClass) 76 in.DeepCopyInto(out) 77 return out 78 } 79 80 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 81 func (in *RuntimeClass) DeepCopyObject() runtime.Object { 82 if c := in.DeepCopy(); c != nil { 83 return c 84 } 85 return nil 86 } 87 88 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 89 func (in *RuntimeClassList) DeepCopyInto(out *RuntimeClassList) { 90 *out = *in 91 out.TypeMeta = in.TypeMeta 92 in.ListMeta.DeepCopyInto(&out.ListMeta) 93 if in.Items != nil { 94 in, out := &in.Items, &out.Items 95 *out = make([]RuntimeClass, len(*in)) 96 for i := range *in { 97 (*in)[i].DeepCopyInto(&(*out)[i]) 98 } 99 } 100 return 101 } 102 103 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassList. 104 func (in *RuntimeClassList) DeepCopy() *RuntimeClassList { 105 if in == nil { 106 return nil 107 } 108 out := new(RuntimeClassList) 109 in.DeepCopyInto(out) 110 return out 111 } 112 113 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 114 func (in *RuntimeClassList) DeepCopyObject() runtime.Object { 115 if c := in.DeepCopy(); c != nil { 116 return c 117 } 118 return nil 119 } 120 121 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 122 func (in *Scheduling) DeepCopyInto(out *Scheduling) { 123 *out = *in 124 if in.NodeSelector != nil { 125 in, out := &in.NodeSelector, &out.NodeSelector 126 *out = make(map[string]string, len(*in)) 127 for key, val := range *in { 128 (*out)[key] = val 129 } 130 } 131 if in.Tolerations != nil { 132 in, out := &in.Tolerations, &out.Tolerations 133 *out = make([]core.Toleration, len(*in)) 134 for i := range *in { 135 (*in)[i].DeepCopyInto(&(*out)[i]) 136 } 137 } 138 return 139 } 140 141 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scheduling. 142 func (in *Scheduling) DeepCopy() *Scheduling { 143 if in == nil { 144 return nil 145 } 146 out := new(Scheduling) 147 in.DeepCopyInto(out) 148 return out 149 }