volcano.sh/apis@v1.8.2/pkg/apis/batch/v1alpha1/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 v1alpha1 22 23 import ( 24 corev1 "k8s.io/api/core/v1" 25 v1 "k8s.io/apimachinery/pkg/apis/meta/v1" 26 runtime "k8s.io/apimachinery/pkg/runtime" 27 busv1alpha1 "volcano.sh/apis/pkg/apis/bus/v1alpha1" 28 ) 29 30 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 31 func (in *DependsOn) DeepCopyInto(out *DependsOn) { 32 *out = *in 33 if in.Name != nil { 34 in, out := &in.Name, &out.Name 35 *out = make([]string, len(*in)) 36 copy(*out, *in) 37 } 38 return 39 } 40 41 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DependsOn. 42 func (in *DependsOn) DeepCopy() *DependsOn { 43 if in == nil { 44 return nil 45 } 46 out := new(DependsOn) 47 in.DeepCopyInto(out) 48 return out 49 } 50 51 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 52 func (in *Job) DeepCopyInto(out *Job) { 53 *out = *in 54 out.TypeMeta = in.TypeMeta 55 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 56 in.Spec.DeepCopyInto(&out.Spec) 57 in.Status.DeepCopyInto(&out.Status) 58 return 59 } 60 61 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Job. 62 func (in *Job) DeepCopy() *Job { 63 if in == nil { 64 return nil 65 } 66 out := new(Job) 67 in.DeepCopyInto(out) 68 return out 69 } 70 71 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 72 func (in *Job) DeepCopyObject() runtime.Object { 73 if c := in.DeepCopy(); c != nil { 74 return c 75 } 76 return nil 77 } 78 79 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 80 func (in *JobCondition) DeepCopyInto(out *JobCondition) { 81 *out = *in 82 if in.LastTransitionTime != nil { 83 in, out := &in.LastTransitionTime, &out.LastTransitionTime 84 *out = (*in).DeepCopy() 85 } 86 return 87 } 88 89 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobCondition. 90 func (in *JobCondition) DeepCopy() *JobCondition { 91 if in == nil { 92 return nil 93 } 94 out := new(JobCondition) 95 in.DeepCopyInto(out) 96 return out 97 } 98 99 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 100 func (in *JobList) DeepCopyInto(out *JobList) { 101 *out = *in 102 out.TypeMeta = in.TypeMeta 103 in.ListMeta.DeepCopyInto(&out.ListMeta) 104 if in.Items != nil { 105 in, out := &in.Items, &out.Items 106 *out = make([]Job, len(*in)) 107 for i := range *in { 108 (*in)[i].DeepCopyInto(&(*out)[i]) 109 } 110 } 111 return 112 } 113 114 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobList. 115 func (in *JobList) DeepCopy() *JobList { 116 if in == nil { 117 return nil 118 } 119 out := new(JobList) 120 in.DeepCopyInto(out) 121 return out 122 } 123 124 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 125 func (in *JobList) DeepCopyObject() runtime.Object { 126 if c := in.DeepCopy(); c != nil { 127 return c 128 } 129 return nil 130 } 131 132 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 133 func (in *JobSpec) DeepCopyInto(out *JobSpec) { 134 *out = *in 135 if in.Volumes != nil { 136 in, out := &in.Volumes, &out.Volumes 137 *out = make([]VolumeSpec, len(*in)) 138 for i := range *in { 139 (*in)[i].DeepCopyInto(&(*out)[i]) 140 } 141 } 142 if in.Tasks != nil { 143 in, out := &in.Tasks, &out.Tasks 144 *out = make([]TaskSpec, len(*in)) 145 for i := range *in { 146 (*in)[i].DeepCopyInto(&(*out)[i]) 147 } 148 } 149 if in.Policies != nil { 150 in, out := &in.Policies, &out.Policies 151 *out = make([]LifecyclePolicy, len(*in)) 152 for i := range *in { 153 (*in)[i].DeepCopyInto(&(*out)[i]) 154 } 155 } 156 if in.Plugins != nil { 157 in, out := &in.Plugins, &out.Plugins 158 *out = make(map[string][]string, len(*in)) 159 for key, val := range *in { 160 var outVal []string 161 if val == nil { 162 (*out)[key] = nil 163 } else { 164 in, out := &val, &outVal 165 *out = make([]string, len(*in)) 166 copy(*out, *in) 167 } 168 (*out)[key] = outVal 169 } 170 } 171 if in.RunningEstimate != nil { 172 in, out := &in.RunningEstimate, &out.RunningEstimate 173 *out = new(v1.Duration) 174 **out = **in 175 } 176 if in.TTLSecondsAfterFinished != nil { 177 in, out := &in.TTLSecondsAfterFinished, &out.TTLSecondsAfterFinished 178 *out = new(int32) 179 **out = **in 180 } 181 if in.MinSuccess != nil { 182 in, out := &in.MinSuccess, &out.MinSuccess 183 *out = new(int32) 184 **out = **in 185 } 186 return 187 } 188 189 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobSpec. 190 func (in *JobSpec) DeepCopy() *JobSpec { 191 if in == nil { 192 return nil 193 } 194 out := new(JobSpec) 195 in.DeepCopyInto(out) 196 return out 197 } 198 199 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 200 func (in *JobState) DeepCopyInto(out *JobState) { 201 *out = *in 202 in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) 203 return 204 } 205 206 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobState. 207 func (in *JobState) DeepCopy() *JobState { 208 if in == nil { 209 return nil 210 } 211 out := new(JobState) 212 in.DeepCopyInto(out) 213 return out 214 } 215 216 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 217 func (in *JobStatus) DeepCopyInto(out *JobStatus) { 218 *out = *in 219 in.State.DeepCopyInto(&out.State) 220 if in.TaskStatusCount != nil { 221 in, out := &in.TaskStatusCount, &out.TaskStatusCount 222 *out = make(map[string]TaskState, len(*in)) 223 for key, val := range *in { 224 (*out)[key] = *val.DeepCopy() 225 } 226 } 227 if in.RunningDuration != nil { 228 in, out := &in.RunningDuration, &out.RunningDuration 229 *out = new(v1.Duration) 230 **out = **in 231 } 232 if in.ControlledResources != nil { 233 in, out := &in.ControlledResources, &out.ControlledResources 234 *out = make(map[string]string, len(*in)) 235 for key, val := range *in { 236 (*out)[key] = val 237 } 238 } 239 if in.Conditions != nil { 240 in, out := &in.Conditions, &out.Conditions 241 *out = make([]JobCondition, len(*in)) 242 for i := range *in { 243 (*in)[i].DeepCopyInto(&(*out)[i]) 244 } 245 } 246 return 247 } 248 249 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobStatus. 250 func (in *JobStatus) DeepCopy() *JobStatus { 251 if in == nil { 252 return nil 253 } 254 out := new(JobStatus) 255 in.DeepCopyInto(out) 256 return out 257 } 258 259 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 260 func (in *LifecyclePolicy) DeepCopyInto(out *LifecyclePolicy) { 261 *out = *in 262 if in.Events != nil { 263 in, out := &in.Events, &out.Events 264 *out = make([]busv1alpha1.Event, len(*in)) 265 copy(*out, *in) 266 } 267 if in.ExitCode != nil { 268 in, out := &in.ExitCode, &out.ExitCode 269 *out = new(int32) 270 **out = **in 271 } 272 if in.Timeout != nil { 273 in, out := &in.Timeout, &out.Timeout 274 *out = new(v1.Duration) 275 **out = **in 276 } 277 return 278 } 279 280 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LifecyclePolicy. 281 func (in *LifecyclePolicy) DeepCopy() *LifecyclePolicy { 282 if in == nil { 283 return nil 284 } 285 out := new(LifecyclePolicy) 286 in.DeepCopyInto(out) 287 return out 288 } 289 290 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 291 func (in *TaskSpec) DeepCopyInto(out *TaskSpec) { 292 *out = *in 293 if in.MinAvailable != nil { 294 in, out := &in.MinAvailable, &out.MinAvailable 295 *out = new(int32) 296 **out = **in 297 } 298 in.Template.DeepCopyInto(&out.Template) 299 if in.Policies != nil { 300 in, out := &in.Policies, &out.Policies 301 *out = make([]LifecyclePolicy, len(*in)) 302 for i := range *in { 303 (*in)[i].DeepCopyInto(&(*out)[i]) 304 } 305 } 306 if in.DependsOn != nil { 307 in, out := &in.DependsOn, &out.DependsOn 308 *out = new(DependsOn) 309 (*in).DeepCopyInto(*out) 310 } 311 return 312 } 313 314 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec. 315 func (in *TaskSpec) DeepCopy() *TaskSpec { 316 if in == nil { 317 return nil 318 } 319 out := new(TaskSpec) 320 in.DeepCopyInto(out) 321 return out 322 } 323 324 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 325 func (in *TaskState) DeepCopyInto(out *TaskState) { 326 *out = *in 327 if in.Phase != nil { 328 in, out := &in.Phase, &out.Phase 329 *out = make(map[corev1.PodPhase]int32, len(*in)) 330 for key, val := range *in { 331 (*out)[key] = val 332 } 333 } 334 return 335 } 336 337 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskState. 338 func (in *TaskState) DeepCopy() *TaskState { 339 if in == nil { 340 return nil 341 } 342 out := new(TaskState) 343 in.DeepCopyInto(out) 344 return out 345 } 346 347 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 348 func (in *VolumeSpec) DeepCopyInto(out *VolumeSpec) { 349 *out = *in 350 if in.VolumeClaim != nil { 351 in, out := &in.VolumeClaim, &out.VolumeClaim 352 *out = new(corev1.PersistentVolumeClaimSpec) 353 (*in).DeepCopyInto(*out) 354 } 355 return 356 } 357 358 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSpec. 359 func (in *VolumeSpec) DeepCopy() *VolumeSpec { 360 if in == nil { 361 return nil 362 } 363 out := new(VolumeSpec) 364 in.DeepCopyInto(out) 365 return out 366 }