zz_generated.deepcopy.go 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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. v1 "k8s.io/api/admissionregistration/v1"
  19. metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  20. runtime "k8s.io/apimachinery/pkg/runtime"
  21. )
  22. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  23. func (in *MutatingWebhook) DeepCopyInto(out *MutatingWebhook) {
  24. *out = *in
  25. in.ClientConfig.DeepCopyInto(&out.ClientConfig)
  26. if in.Rules != nil {
  27. in, out := &in.Rules, &out.Rules
  28. *out = make([]v1.RuleWithOperations, len(*in))
  29. for i := range *in {
  30. (*in)[i].DeepCopyInto(&(*out)[i])
  31. }
  32. }
  33. if in.FailurePolicy != nil {
  34. in, out := &in.FailurePolicy, &out.FailurePolicy
  35. *out = new(FailurePolicyType)
  36. **out = **in
  37. }
  38. if in.MatchPolicy != nil {
  39. in, out := &in.MatchPolicy, &out.MatchPolicy
  40. *out = new(MatchPolicyType)
  41. **out = **in
  42. }
  43. if in.NamespaceSelector != nil {
  44. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  45. *out = new(metav1.LabelSelector)
  46. (*in).DeepCopyInto(*out)
  47. }
  48. if in.ObjectSelector != nil {
  49. in, out := &in.ObjectSelector, &out.ObjectSelector
  50. *out = new(metav1.LabelSelector)
  51. (*in).DeepCopyInto(*out)
  52. }
  53. if in.SideEffects != nil {
  54. in, out := &in.SideEffects, &out.SideEffects
  55. *out = new(SideEffectClass)
  56. **out = **in
  57. }
  58. if in.TimeoutSeconds != nil {
  59. in, out := &in.TimeoutSeconds, &out.TimeoutSeconds
  60. *out = new(int32)
  61. **out = **in
  62. }
  63. if in.AdmissionReviewVersions != nil {
  64. in, out := &in.AdmissionReviewVersions, &out.AdmissionReviewVersions
  65. *out = make([]string, len(*in))
  66. copy(*out, *in)
  67. }
  68. if in.ReinvocationPolicy != nil {
  69. in, out := &in.ReinvocationPolicy, &out.ReinvocationPolicy
  70. *out = new(ReinvocationPolicyType)
  71. **out = **in
  72. }
  73. return
  74. }
  75. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhook.
  76. func (in *MutatingWebhook) DeepCopy() *MutatingWebhook {
  77. if in == nil {
  78. return nil
  79. }
  80. out := new(MutatingWebhook)
  81. in.DeepCopyInto(out)
  82. return out
  83. }
  84. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  85. func (in *MutatingWebhookConfiguration) DeepCopyInto(out *MutatingWebhookConfiguration) {
  86. *out = *in
  87. out.TypeMeta = in.TypeMeta
  88. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  89. if in.Webhooks != nil {
  90. in, out := &in.Webhooks, &out.Webhooks
  91. *out = make([]MutatingWebhook, len(*in))
  92. for i := range *in {
  93. (*in)[i].DeepCopyInto(&(*out)[i])
  94. }
  95. }
  96. return
  97. }
  98. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfiguration.
  99. func (in *MutatingWebhookConfiguration) DeepCopy() *MutatingWebhookConfiguration {
  100. if in == nil {
  101. return nil
  102. }
  103. out := new(MutatingWebhookConfiguration)
  104. in.DeepCopyInto(out)
  105. return out
  106. }
  107. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  108. func (in *MutatingWebhookConfiguration) DeepCopyObject() runtime.Object {
  109. if c := in.DeepCopy(); c != nil {
  110. return c
  111. }
  112. return nil
  113. }
  114. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  115. func (in *MutatingWebhookConfigurationList) DeepCopyInto(out *MutatingWebhookConfigurationList) {
  116. *out = *in
  117. out.TypeMeta = in.TypeMeta
  118. in.ListMeta.DeepCopyInto(&out.ListMeta)
  119. if in.Items != nil {
  120. in, out := &in.Items, &out.Items
  121. *out = make([]MutatingWebhookConfiguration, len(*in))
  122. for i := range *in {
  123. (*in)[i].DeepCopyInto(&(*out)[i])
  124. }
  125. }
  126. return
  127. }
  128. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfigurationList.
  129. func (in *MutatingWebhookConfigurationList) DeepCopy() *MutatingWebhookConfigurationList {
  130. if in == nil {
  131. return nil
  132. }
  133. out := new(MutatingWebhookConfigurationList)
  134. in.DeepCopyInto(out)
  135. return out
  136. }
  137. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  138. func (in *MutatingWebhookConfigurationList) DeepCopyObject() runtime.Object {
  139. if c := in.DeepCopy(); c != nil {
  140. return c
  141. }
  142. return nil
  143. }
  144. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  145. func (in *ServiceReference) DeepCopyInto(out *ServiceReference) {
  146. *out = *in
  147. if in.Path != nil {
  148. in, out := &in.Path, &out.Path
  149. *out = new(string)
  150. **out = **in
  151. }
  152. if in.Port != nil {
  153. in, out := &in.Port, &out.Port
  154. *out = new(int32)
  155. **out = **in
  156. }
  157. return
  158. }
  159. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference.
  160. func (in *ServiceReference) DeepCopy() *ServiceReference {
  161. if in == nil {
  162. return nil
  163. }
  164. out := new(ServiceReference)
  165. in.DeepCopyInto(out)
  166. return out
  167. }
  168. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  169. func (in *ValidatingWebhook) DeepCopyInto(out *ValidatingWebhook) {
  170. *out = *in
  171. in.ClientConfig.DeepCopyInto(&out.ClientConfig)
  172. if in.Rules != nil {
  173. in, out := &in.Rules, &out.Rules
  174. *out = make([]v1.RuleWithOperations, len(*in))
  175. for i := range *in {
  176. (*in)[i].DeepCopyInto(&(*out)[i])
  177. }
  178. }
  179. if in.FailurePolicy != nil {
  180. in, out := &in.FailurePolicy, &out.FailurePolicy
  181. *out = new(FailurePolicyType)
  182. **out = **in
  183. }
  184. if in.MatchPolicy != nil {
  185. in, out := &in.MatchPolicy, &out.MatchPolicy
  186. *out = new(MatchPolicyType)
  187. **out = **in
  188. }
  189. if in.NamespaceSelector != nil {
  190. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  191. *out = new(metav1.LabelSelector)
  192. (*in).DeepCopyInto(*out)
  193. }
  194. if in.ObjectSelector != nil {
  195. in, out := &in.ObjectSelector, &out.ObjectSelector
  196. *out = new(metav1.LabelSelector)
  197. (*in).DeepCopyInto(*out)
  198. }
  199. if in.SideEffects != nil {
  200. in, out := &in.SideEffects, &out.SideEffects
  201. *out = new(SideEffectClass)
  202. **out = **in
  203. }
  204. if in.TimeoutSeconds != nil {
  205. in, out := &in.TimeoutSeconds, &out.TimeoutSeconds
  206. *out = new(int32)
  207. **out = **in
  208. }
  209. if in.AdmissionReviewVersions != nil {
  210. in, out := &in.AdmissionReviewVersions, &out.AdmissionReviewVersions
  211. *out = make([]string, len(*in))
  212. copy(*out, *in)
  213. }
  214. return
  215. }
  216. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhook.
  217. func (in *ValidatingWebhook) DeepCopy() *ValidatingWebhook {
  218. if in == nil {
  219. return nil
  220. }
  221. out := new(ValidatingWebhook)
  222. in.DeepCopyInto(out)
  223. return out
  224. }
  225. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  226. func (in *ValidatingWebhookConfiguration) DeepCopyInto(out *ValidatingWebhookConfiguration) {
  227. *out = *in
  228. out.TypeMeta = in.TypeMeta
  229. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  230. if in.Webhooks != nil {
  231. in, out := &in.Webhooks, &out.Webhooks
  232. *out = make([]ValidatingWebhook, len(*in))
  233. for i := range *in {
  234. (*in)[i].DeepCopyInto(&(*out)[i])
  235. }
  236. }
  237. return
  238. }
  239. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfiguration.
  240. func (in *ValidatingWebhookConfiguration) DeepCopy() *ValidatingWebhookConfiguration {
  241. if in == nil {
  242. return nil
  243. }
  244. out := new(ValidatingWebhookConfiguration)
  245. in.DeepCopyInto(out)
  246. return out
  247. }
  248. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  249. func (in *ValidatingWebhookConfiguration) DeepCopyObject() runtime.Object {
  250. if c := in.DeepCopy(); c != nil {
  251. return c
  252. }
  253. return nil
  254. }
  255. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  256. func (in *ValidatingWebhookConfigurationList) DeepCopyInto(out *ValidatingWebhookConfigurationList) {
  257. *out = *in
  258. out.TypeMeta = in.TypeMeta
  259. in.ListMeta.DeepCopyInto(&out.ListMeta)
  260. if in.Items != nil {
  261. in, out := &in.Items, &out.Items
  262. *out = make([]ValidatingWebhookConfiguration, len(*in))
  263. for i := range *in {
  264. (*in)[i].DeepCopyInto(&(*out)[i])
  265. }
  266. }
  267. return
  268. }
  269. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfigurationList.
  270. func (in *ValidatingWebhookConfigurationList) DeepCopy() *ValidatingWebhookConfigurationList {
  271. if in == nil {
  272. return nil
  273. }
  274. out := new(ValidatingWebhookConfigurationList)
  275. in.DeepCopyInto(out)
  276. return out
  277. }
  278. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  279. func (in *ValidatingWebhookConfigurationList) DeepCopyObject() runtime.Object {
  280. if c := in.DeepCopy(); c != nil {
  281. return c
  282. }
  283. return nil
  284. }
  285. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  286. func (in *WebhookClientConfig) DeepCopyInto(out *WebhookClientConfig) {
  287. *out = *in
  288. if in.URL != nil {
  289. in, out := &in.URL, &out.URL
  290. *out = new(string)
  291. **out = **in
  292. }
  293. if in.Service != nil {
  294. in, out := &in.Service, &out.Service
  295. *out = new(ServiceReference)
  296. (*in).DeepCopyInto(*out)
  297. }
  298. if in.CABundle != nil {
  299. in, out := &in.CABundle, &out.CABundle
  300. *out = make([]byte, len(*in))
  301. copy(*out, *in)
  302. }
  303. return
  304. }
  305. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookClientConfig.
  306. func (in *WebhookClientConfig) DeepCopy() *WebhookClientConfig {
  307. if in == nil {
  308. return nil
  309. }
  310. out := new(WebhookClientConfig)
  311. in.DeepCopyInto(out)
  312. return out
  313. }