zz_generated.deepcopy.go 11 KB

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