zz_generated.deepcopy.go 5.4 KB

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