zz_generated.deepcopy.go 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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 *PodPreset) DeepCopyInto(out *PodPreset) {
  22. *out = *in
  23. out.TypeMeta = in.TypeMeta
  24. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  25. in.Spec.DeepCopyInto(&out.Spec)
  26. return
  27. }
  28. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPreset.
  29. func (in *PodPreset) DeepCopy() *PodPreset {
  30. if in == nil {
  31. return nil
  32. }
  33. out := new(PodPreset)
  34. in.DeepCopyInto(out)
  35. return out
  36. }
  37. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  38. func (in *PodPreset) DeepCopyObject() runtime.Object {
  39. if c := in.DeepCopy(); c != nil {
  40. return c
  41. }
  42. return nil
  43. }
  44. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  45. func (in *PodPresetList) DeepCopyInto(out *PodPresetList) {
  46. *out = *in
  47. out.TypeMeta = in.TypeMeta
  48. in.ListMeta.DeepCopyInto(&out.ListMeta)
  49. if in.Items != nil {
  50. in, out := &in.Items, &out.Items
  51. *out = make([]PodPreset, len(*in))
  52. for i := range *in {
  53. (*in)[i].DeepCopyInto(&(*out)[i])
  54. }
  55. }
  56. return
  57. }
  58. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPresetList.
  59. func (in *PodPresetList) DeepCopy() *PodPresetList {
  60. if in == nil {
  61. return nil
  62. }
  63. out := new(PodPresetList)
  64. in.DeepCopyInto(out)
  65. return out
  66. }
  67. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  68. func (in *PodPresetList) DeepCopyObject() runtime.Object {
  69. if c := in.DeepCopy(); c != nil {
  70. return c
  71. }
  72. return nil
  73. }
  74. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  75. func (in *PodPresetSpec) DeepCopyInto(out *PodPresetSpec) {
  76. *out = *in
  77. in.Selector.DeepCopyInto(&out.Selector)
  78. if in.Env != nil {
  79. in, out := &in.Env, &out.Env
  80. *out = make([]v1.EnvVar, len(*in))
  81. for i := range *in {
  82. (*in)[i].DeepCopyInto(&(*out)[i])
  83. }
  84. }
  85. if in.EnvFrom != nil {
  86. in, out := &in.EnvFrom, &out.EnvFrom
  87. *out = make([]v1.EnvFromSource, len(*in))
  88. for i := range *in {
  89. (*in)[i].DeepCopyInto(&(*out)[i])
  90. }
  91. }
  92. if in.Volumes != nil {
  93. in, out := &in.Volumes, &out.Volumes
  94. *out = make([]v1.Volume, len(*in))
  95. for i := range *in {
  96. (*in)[i].DeepCopyInto(&(*out)[i])
  97. }
  98. }
  99. if in.VolumeMounts != nil {
  100. in, out := &in.VolumeMounts, &out.VolumeMounts
  101. *out = make([]v1.VolumeMount, len(*in))
  102. for i := range *in {
  103. (*in)[i].DeepCopyInto(&(*out)[i])
  104. }
  105. }
  106. return
  107. }
  108. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPresetSpec.
  109. func (in *PodPresetSpec) DeepCopy() *PodPresetSpec {
  110. if in == nil {
  111. return nil
  112. }
  113. out := new(PodPresetSpec)
  114. in.DeepCopyInto(out)
  115. return out
  116. }