zz_generated.deepcopy.go 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright The Kubernetes Authors.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. */
  14. // Code generated by deepcopy-gen. DO NOT EDIT.
  15. package v1alpha1
  16. import (
  17. v1 "k8s.io/api/core/v1"
  18. runtime "k8s.io/apimachinery/pkg/runtime"
  19. )
  20. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  21. func (in *Overhead) DeepCopyInto(out *Overhead) {
  22. *out = *in
  23. if in.PodFixed != nil {
  24. in, out := &in.PodFixed, &out.PodFixed
  25. *out = make(v1.ResourceList, len(*in))
  26. for key, val := range *in {
  27. (*out)[key] = val.DeepCopy()
  28. }
  29. }
  30. return
  31. }
  32. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Overhead.
  33. func (in *Overhead) DeepCopy() *Overhead {
  34. if in == nil {
  35. return nil
  36. }
  37. out := new(Overhead)
  38. in.DeepCopyInto(out)
  39. return out
  40. }
  41. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  42. func (in *RuntimeClass) DeepCopyInto(out *RuntimeClass) {
  43. *out = *in
  44. out.TypeMeta = in.TypeMeta
  45. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  46. in.Spec.DeepCopyInto(&out.Spec)
  47. return
  48. }
  49. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClass.
  50. func (in *RuntimeClass) DeepCopy() *RuntimeClass {
  51. if in == nil {
  52. return nil
  53. }
  54. out := new(RuntimeClass)
  55. in.DeepCopyInto(out)
  56. return out
  57. }
  58. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  59. func (in *RuntimeClass) DeepCopyObject() runtime.Object {
  60. if c := in.DeepCopy(); c != nil {
  61. return c
  62. }
  63. return nil
  64. }
  65. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  66. func (in *RuntimeClassList) DeepCopyInto(out *RuntimeClassList) {
  67. *out = *in
  68. out.TypeMeta = in.TypeMeta
  69. in.ListMeta.DeepCopyInto(&out.ListMeta)
  70. if in.Items != nil {
  71. in, out := &in.Items, &out.Items
  72. *out = make([]RuntimeClass, len(*in))
  73. for i := range *in {
  74. (*in)[i].DeepCopyInto(&(*out)[i])
  75. }
  76. }
  77. return
  78. }
  79. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassList.
  80. func (in *RuntimeClassList) DeepCopy() *RuntimeClassList {
  81. if in == nil {
  82. return nil
  83. }
  84. out := new(RuntimeClassList)
  85. in.DeepCopyInto(out)
  86. return out
  87. }
  88. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  89. func (in *RuntimeClassList) DeepCopyObject() runtime.Object {
  90. if c := in.DeepCopy(); c != nil {
  91. return c
  92. }
  93. return nil
  94. }
  95. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  96. func (in *RuntimeClassSpec) DeepCopyInto(out *RuntimeClassSpec) {
  97. *out = *in
  98. if in.Overhead != nil {
  99. in, out := &in.Overhead, &out.Overhead
  100. *out = new(Overhead)
  101. (*in).DeepCopyInto(*out)
  102. }
  103. if in.Scheduling != nil {
  104. in, out := &in.Scheduling, &out.Scheduling
  105. *out = new(Scheduling)
  106. (*in).DeepCopyInto(*out)
  107. }
  108. return
  109. }
  110. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassSpec.
  111. func (in *RuntimeClassSpec) DeepCopy() *RuntimeClassSpec {
  112. if in == nil {
  113. return nil
  114. }
  115. out := new(RuntimeClassSpec)
  116. in.DeepCopyInto(out)
  117. return out
  118. }
  119. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  120. func (in *Scheduling) DeepCopyInto(out *Scheduling) {
  121. *out = *in
  122. if in.NodeSelector != nil {
  123. in, out := &in.NodeSelector, &out.NodeSelector
  124. *out = make(map[string]string, len(*in))
  125. for key, val := range *in {
  126. (*out)[key] = val
  127. }
  128. }
  129. if in.Tolerations != nil {
  130. in, out := &in.Tolerations, &out.Tolerations
  131. *out = make([]v1.Toleration, len(*in))
  132. for i := range *in {
  133. (*in)[i].DeepCopyInto(&(*out)[i])
  134. }
  135. }
  136. return
  137. }
  138. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scheduling.
  139. func (in *Scheduling) DeepCopy() *Scheduling {
  140. if in == nil {
  141. return nil
  142. }
  143. out := new(Scheduling)
  144. in.DeepCopyInto(out)
  145. return out
  146. }