zz_generated.deepcopy.go 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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 v1
  16. import (
  17. metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  18. runtime "k8s.io/apimachinery/pkg/runtime"
  19. intstr "k8s.io/apimachinery/pkg/util/intstr"
  20. )
  21. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  22. func (in *PodDisruptionBudget) DeepCopyInto(out *PodDisruptionBudget) {
  23. *out = *in
  24. out.TypeMeta = in.TypeMeta
  25. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  26. in.Spec.DeepCopyInto(&out.Spec)
  27. in.Status.DeepCopyInto(&out.Status)
  28. return
  29. }
  30. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudget.
  31. func (in *PodDisruptionBudget) DeepCopy() *PodDisruptionBudget {
  32. if in == nil {
  33. return nil
  34. }
  35. out := new(PodDisruptionBudget)
  36. in.DeepCopyInto(out)
  37. return out
  38. }
  39. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  40. func (in *PodDisruptionBudget) DeepCopyObject() runtime.Object {
  41. if c := in.DeepCopy(); c != nil {
  42. return c
  43. }
  44. return nil
  45. }
  46. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  47. func (in *PodDisruptionBudgetList) DeepCopyInto(out *PodDisruptionBudgetList) {
  48. *out = *in
  49. out.TypeMeta = in.TypeMeta
  50. in.ListMeta.DeepCopyInto(&out.ListMeta)
  51. if in.Items != nil {
  52. in, out := &in.Items, &out.Items
  53. *out = make([]PodDisruptionBudget, len(*in))
  54. for i := range *in {
  55. (*in)[i].DeepCopyInto(&(*out)[i])
  56. }
  57. }
  58. return
  59. }
  60. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetList.
  61. func (in *PodDisruptionBudgetList) DeepCopy() *PodDisruptionBudgetList {
  62. if in == nil {
  63. return nil
  64. }
  65. out := new(PodDisruptionBudgetList)
  66. in.DeepCopyInto(out)
  67. return out
  68. }
  69. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  70. func (in *PodDisruptionBudgetList) DeepCopyObject() runtime.Object {
  71. if c := in.DeepCopy(); c != nil {
  72. return c
  73. }
  74. return nil
  75. }
  76. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  77. func (in *PodDisruptionBudgetSpec) DeepCopyInto(out *PodDisruptionBudgetSpec) {
  78. *out = *in
  79. if in.MinAvailable != nil {
  80. in, out := &in.MinAvailable, &out.MinAvailable
  81. *out = new(intstr.IntOrString)
  82. **out = **in
  83. }
  84. if in.Selector != nil {
  85. in, out := &in.Selector, &out.Selector
  86. *out = new(metav1.LabelSelector)
  87. (*in).DeepCopyInto(*out)
  88. }
  89. if in.MaxUnavailable != nil {
  90. in, out := &in.MaxUnavailable, &out.MaxUnavailable
  91. *out = new(intstr.IntOrString)
  92. **out = **in
  93. }
  94. return
  95. }
  96. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetSpec.
  97. func (in *PodDisruptionBudgetSpec) DeepCopy() *PodDisruptionBudgetSpec {
  98. if in == nil {
  99. return nil
  100. }
  101. out := new(PodDisruptionBudgetSpec)
  102. in.DeepCopyInto(out)
  103. return out
  104. }
  105. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  106. func (in *PodDisruptionBudgetStatus) DeepCopyInto(out *PodDisruptionBudgetStatus) {
  107. *out = *in
  108. if in.DisruptedPods != nil {
  109. in, out := &in.DisruptedPods, &out.DisruptedPods
  110. *out = make(map[string]metav1.Time, len(*in))
  111. for key, val := range *in {
  112. (*out)[key] = *val.DeepCopy()
  113. }
  114. }
  115. if in.Conditions != nil {
  116. in, out := &in.Conditions, &out.Conditions
  117. *out = make([]metav1.Condition, len(*in))
  118. for i := range *in {
  119. (*in)[i].DeepCopyInto(&(*out)[i])
  120. }
  121. }
  122. return
  123. }
  124. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetStatus.
  125. func (in *PodDisruptionBudgetStatus) DeepCopy() *PodDisruptionBudgetStatus {
  126. if in == nil {
  127. return nil
  128. }
  129. out := new(PodDisruptionBudgetStatus)
  130. in.DeepCopyInto(out)
  131. return out
  132. }