...

Source file src/k8s.io/api/node/v1alpha1/zz_generated.deepcopy.go

Documentation: k8s.io/api/node/v1alpha1

     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 v1alpha1
    23  
    24  import (
    25  	v1 "k8s.io/api/core/v1"
    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 *Overhead) DeepCopyInto(out *Overhead) {
    31  	*out = *in
    32  	if in.PodFixed != nil {
    33  		in, out := &in.PodFixed, &out.PodFixed
    34  		*out = make(v1.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  	in.Spec.DeepCopyInto(&out.Spec)
    58  	return
    59  }
    60  
    61  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClass.
    62  func (in *RuntimeClass) DeepCopy() *RuntimeClass {
    63  	if in == nil {
    64  		return nil
    65  	}
    66  	out := new(RuntimeClass)
    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 *RuntimeClass) 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 *RuntimeClassList) DeepCopyInto(out *RuntimeClassList) {
    81  	*out = *in
    82  	out.TypeMeta = in.TypeMeta
    83  	in.ListMeta.DeepCopyInto(&out.ListMeta)
    84  	if in.Items != nil {
    85  		in, out := &in.Items, &out.Items
    86  		*out = make([]RuntimeClass, len(*in))
    87  		for i := range *in {
    88  			(*in)[i].DeepCopyInto(&(*out)[i])
    89  		}
    90  	}
    91  	return
    92  }
    93  
    94  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassList.
    95  func (in *RuntimeClassList) DeepCopy() *RuntimeClassList {
    96  	if in == nil {
    97  		return nil
    98  	}
    99  	out := new(RuntimeClassList)
   100  	in.DeepCopyInto(out)
   101  	return out
   102  }
   103  
   104  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   105  func (in *RuntimeClassList) DeepCopyObject() runtime.Object {
   106  	if c := in.DeepCopy(); c != nil {
   107  		return c
   108  	}
   109  	return nil
   110  }
   111  
   112  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   113  func (in *RuntimeClassSpec) DeepCopyInto(out *RuntimeClassSpec) {
   114  	*out = *in
   115  	if in.Overhead != nil {
   116  		in, out := &in.Overhead, &out.Overhead
   117  		*out = new(Overhead)
   118  		(*in).DeepCopyInto(*out)
   119  	}
   120  	if in.Scheduling != nil {
   121  		in, out := &in.Scheduling, &out.Scheduling
   122  		*out = new(Scheduling)
   123  		(*in).DeepCopyInto(*out)
   124  	}
   125  	return
   126  }
   127  
   128  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassSpec.
   129  func (in *RuntimeClassSpec) DeepCopy() *RuntimeClassSpec {
   130  	if in == nil {
   131  		return nil
   132  	}
   133  	out := new(RuntimeClassSpec)
   134  	in.DeepCopyInto(out)
   135  	return out
   136  }
   137  
   138  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   139  func (in *Scheduling) DeepCopyInto(out *Scheduling) {
   140  	*out = *in
   141  	if in.NodeSelector != nil {
   142  		in, out := &in.NodeSelector, &out.NodeSelector
   143  		*out = make(map[string]string, len(*in))
   144  		for key, val := range *in {
   145  			(*out)[key] = val
   146  		}
   147  	}
   148  	if in.Tolerations != nil {
   149  		in, out := &in.Tolerations, &out.Tolerations
   150  		*out = make([]v1.Toleration, len(*in))
   151  		for i := range *in {
   152  			(*in)[i].DeepCopyInto(&(*out)[i])
   153  		}
   154  	}
   155  	return
   156  }
   157  
   158  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scheduling.
   159  func (in *Scheduling) DeepCopy() *Scheduling {
   160  	if in == nil {
   161  		return nil
   162  	}
   163  	out := new(Scheduling)
   164  	in.DeepCopyInto(out)
   165  	return out
   166  }
   167  

View as plain text