zz_generated.deepcopy.go 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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 v1beta1
  17. import (
  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 *CertificateSigningRequest) DeepCopyInto(out *CertificateSigningRequest) {
  22. *out = *in
  23. out.TypeMeta = in.TypeMeta
  24. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  25. in.Spec.DeepCopyInto(&out.Spec)
  26. in.Status.DeepCopyInto(&out.Status)
  27. return
  28. }
  29. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequest.
  30. func (in *CertificateSigningRequest) DeepCopy() *CertificateSigningRequest {
  31. if in == nil {
  32. return nil
  33. }
  34. out := new(CertificateSigningRequest)
  35. in.DeepCopyInto(out)
  36. return out
  37. }
  38. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  39. func (in *CertificateSigningRequest) DeepCopyObject() runtime.Object {
  40. if c := in.DeepCopy(); c != nil {
  41. return c
  42. }
  43. return nil
  44. }
  45. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  46. func (in *CertificateSigningRequestCondition) DeepCopyInto(out *CertificateSigningRequestCondition) {
  47. *out = *in
  48. in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
  49. in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
  50. return
  51. }
  52. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestCondition.
  53. func (in *CertificateSigningRequestCondition) DeepCopy() *CertificateSigningRequestCondition {
  54. if in == nil {
  55. return nil
  56. }
  57. out := new(CertificateSigningRequestCondition)
  58. in.DeepCopyInto(out)
  59. return out
  60. }
  61. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  62. func (in *CertificateSigningRequestList) DeepCopyInto(out *CertificateSigningRequestList) {
  63. *out = *in
  64. out.TypeMeta = in.TypeMeta
  65. in.ListMeta.DeepCopyInto(&out.ListMeta)
  66. if in.Items != nil {
  67. in, out := &in.Items, &out.Items
  68. *out = make([]CertificateSigningRequest, len(*in))
  69. for i := range *in {
  70. (*in)[i].DeepCopyInto(&(*out)[i])
  71. }
  72. }
  73. return
  74. }
  75. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestList.
  76. func (in *CertificateSigningRequestList) DeepCopy() *CertificateSigningRequestList {
  77. if in == nil {
  78. return nil
  79. }
  80. out := new(CertificateSigningRequestList)
  81. in.DeepCopyInto(out)
  82. return out
  83. }
  84. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  85. func (in *CertificateSigningRequestList) DeepCopyObject() runtime.Object {
  86. if c := in.DeepCopy(); c != nil {
  87. return c
  88. }
  89. return nil
  90. }
  91. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  92. func (in *CertificateSigningRequestSpec) DeepCopyInto(out *CertificateSigningRequestSpec) {
  93. *out = *in
  94. if in.Request != nil {
  95. in, out := &in.Request, &out.Request
  96. *out = make([]byte, len(*in))
  97. copy(*out, *in)
  98. }
  99. if in.SignerName != nil {
  100. in, out := &in.SignerName, &out.SignerName
  101. *out = new(string)
  102. **out = **in
  103. }
  104. if in.ExpirationSeconds != nil {
  105. in, out := &in.ExpirationSeconds, &out.ExpirationSeconds
  106. *out = new(int32)
  107. **out = **in
  108. }
  109. if in.Usages != nil {
  110. in, out := &in.Usages, &out.Usages
  111. *out = make([]KeyUsage, len(*in))
  112. copy(*out, *in)
  113. }
  114. if in.Groups != nil {
  115. in, out := &in.Groups, &out.Groups
  116. *out = make([]string, len(*in))
  117. copy(*out, *in)
  118. }
  119. if in.Extra != nil {
  120. in, out := &in.Extra, &out.Extra
  121. *out = make(map[string]ExtraValue, len(*in))
  122. for key, val := range *in {
  123. var outVal []string
  124. if val == nil {
  125. (*out)[key] = nil
  126. } else {
  127. in, out := &val, &outVal
  128. *out = make(ExtraValue, len(*in))
  129. copy(*out, *in)
  130. }
  131. (*out)[key] = outVal
  132. }
  133. }
  134. return
  135. }
  136. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestSpec.
  137. func (in *CertificateSigningRequestSpec) DeepCopy() *CertificateSigningRequestSpec {
  138. if in == nil {
  139. return nil
  140. }
  141. out := new(CertificateSigningRequestSpec)
  142. in.DeepCopyInto(out)
  143. return out
  144. }
  145. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  146. func (in *CertificateSigningRequestStatus) DeepCopyInto(out *CertificateSigningRequestStatus) {
  147. *out = *in
  148. if in.Conditions != nil {
  149. in, out := &in.Conditions, &out.Conditions
  150. *out = make([]CertificateSigningRequestCondition, len(*in))
  151. for i := range *in {
  152. (*in)[i].DeepCopyInto(&(*out)[i])
  153. }
  154. }
  155. if in.Certificate != nil {
  156. in, out := &in.Certificate, &out.Certificate
  157. *out = make([]byte, len(*in))
  158. copy(*out, *in)
  159. }
  160. return
  161. }
  162. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestStatus.
  163. func (in *CertificateSigningRequestStatus) DeepCopy() *CertificateSigningRequestStatus {
  164. if in == nil {
  165. return nil
  166. }
  167. out := new(CertificateSigningRequestStatus)
  168. in.DeepCopyInto(out)
  169. return out
  170. }
  171. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  172. func (in ExtraValue) DeepCopyInto(out *ExtraValue) {
  173. {
  174. in := &in
  175. *out = make(ExtraValue, len(*in))
  176. copy(*out, *in)
  177. return
  178. }
  179. }
  180. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue.
  181. func (in ExtraValue) DeepCopy() ExtraValue {
  182. if in == nil {
  183. return nil
  184. }
  185. out := new(ExtraValue)
  186. in.DeepCopyInto(out)
  187. return *out
  188. }