zz_generated.deepcopy.go 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright 2017 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. // This file was autogenerated by deepcopy-gen. Do not edit it manually!
  15. package policy
  16. import (
  17. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  18. conversion "k8s.io/apimachinery/pkg/conversion"
  19. runtime "k8s.io/apimachinery/pkg/runtime"
  20. reflect "reflect"
  21. )
  22. func init() {
  23. SchemeBuilder.Register(RegisterDeepCopies)
  24. }
  25. // RegisterDeepCopies adds deep-copy functions to the given scheme. Public
  26. // to allow building arbitrary schemes.
  27. func RegisterDeepCopies(scheme *runtime.Scheme) error {
  28. return scheme.AddGeneratedDeepCopyFuncs(
  29. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_Eviction, InType: reflect.TypeOf(&Eviction{})},
  30. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudget, InType: reflect.TypeOf(&PodDisruptionBudget{})},
  31. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetList, InType: reflect.TypeOf(&PodDisruptionBudgetList{})},
  32. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetSpec, InType: reflect.TypeOf(&PodDisruptionBudgetSpec{})},
  33. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetStatus, InType: reflect.TypeOf(&PodDisruptionBudgetStatus{})},
  34. )
  35. }
  36. func DeepCopy_policy_Eviction(in interface{}, out interface{}, c *conversion.Cloner) error {
  37. {
  38. in := in.(*Eviction)
  39. out := out.(*Eviction)
  40. *out = *in
  41. if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
  42. return err
  43. } else {
  44. out.ObjectMeta = *newVal.(*v1.ObjectMeta)
  45. }
  46. if in.DeleteOptions != nil {
  47. in, out := &in.DeleteOptions, &out.DeleteOptions
  48. if newVal, err := c.DeepCopy(*in); err != nil {
  49. return err
  50. } else {
  51. *out = newVal.(*v1.DeleteOptions)
  52. }
  53. }
  54. return nil
  55. }
  56. }
  57. func DeepCopy_policy_PodDisruptionBudget(in interface{}, out interface{}, c *conversion.Cloner) error {
  58. {
  59. in := in.(*PodDisruptionBudget)
  60. out := out.(*PodDisruptionBudget)
  61. *out = *in
  62. if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
  63. return err
  64. } else {
  65. out.ObjectMeta = *newVal.(*v1.ObjectMeta)
  66. }
  67. if err := DeepCopy_policy_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, c); err != nil {
  68. return err
  69. }
  70. if err := DeepCopy_policy_PodDisruptionBudgetStatus(&in.Status, &out.Status, c); err != nil {
  71. return err
  72. }
  73. return nil
  74. }
  75. }
  76. func DeepCopy_policy_PodDisruptionBudgetList(in interface{}, out interface{}, c *conversion.Cloner) error {
  77. {
  78. in := in.(*PodDisruptionBudgetList)
  79. out := out.(*PodDisruptionBudgetList)
  80. *out = *in
  81. if in.Items != nil {
  82. in, out := &in.Items, &out.Items
  83. *out = make([]PodDisruptionBudget, len(*in))
  84. for i := range *in {
  85. if err := DeepCopy_policy_PodDisruptionBudget(&(*in)[i], &(*out)[i], c); err != nil {
  86. return err
  87. }
  88. }
  89. }
  90. return nil
  91. }
  92. }
  93. func DeepCopy_policy_PodDisruptionBudgetSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
  94. {
  95. in := in.(*PodDisruptionBudgetSpec)
  96. out := out.(*PodDisruptionBudgetSpec)
  97. *out = *in
  98. if in.Selector != nil {
  99. in, out := &in.Selector, &out.Selector
  100. if newVal, err := c.DeepCopy(*in); err != nil {
  101. return err
  102. } else {
  103. *out = newVal.(*v1.LabelSelector)
  104. }
  105. }
  106. return nil
  107. }
  108. }
  109. func DeepCopy_policy_PodDisruptionBudgetStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
  110. {
  111. in := in.(*PodDisruptionBudgetStatus)
  112. out := out.(*PodDisruptionBudgetStatus)
  113. *out = *in
  114. if in.DisruptedPods != nil {
  115. in, out := &in.DisruptedPods, &out.DisruptedPods
  116. *out = make(map[string]v1.Time)
  117. for key, val := range *in {
  118. (*out)[key] = val.DeepCopy()
  119. }
  120. }
  121. return nil
  122. }
  123. }