zz_generated.deepcopy.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  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 v1
  16. import (
  17. metav1 "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(metav1.LabelSelector)
  44. (*in).DeepCopyInto(*out)
  45. }
  46. if in.ObjectSelector != nil {
  47. in, out := &in.ObjectSelector, &out.ObjectSelector
  48. *out = new(metav1.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. if in.Port != nil {
  205. in, out := &in.Port, &out.Port
  206. *out = new(int32)
  207. **out = **in
  208. }
  209. return
  210. }
  211. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference.
  212. func (in *ServiceReference) DeepCopy() *ServiceReference {
  213. if in == nil {
  214. return nil
  215. }
  216. out := new(ServiceReference)
  217. in.DeepCopyInto(out)
  218. return out
  219. }
  220. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  221. func (in *ValidatingWebhook) DeepCopyInto(out *ValidatingWebhook) {
  222. *out = *in
  223. in.ClientConfig.DeepCopyInto(&out.ClientConfig)
  224. if in.Rules != nil {
  225. in, out := &in.Rules, &out.Rules
  226. *out = make([]RuleWithOperations, len(*in))
  227. for i := range *in {
  228. (*in)[i].DeepCopyInto(&(*out)[i])
  229. }
  230. }
  231. if in.FailurePolicy != nil {
  232. in, out := &in.FailurePolicy, &out.FailurePolicy
  233. *out = new(FailurePolicyType)
  234. **out = **in
  235. }
  236. if in.MatchPolicy != nil {
  237. in, out := &in.MatchPolicy, &out.MatchPolicy
  238. *out = new(MatchPolicyType)
  239. **out = **in
  240. }
  241. if in.NamespaceSelector != nil {
  242. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  243. *out = new(metav1.LabelSelector)
  244. (*in).DeepCopyInto(*out)
  245. }
  246. if in.ObjectSelector != nil {
  247. in, out := &in.ObjectSelector, &out.ObjectSelector
  248. *out = new(metav1.LabelSelector)
  249. (*in).DeepCopyInto(*out)
  250. }
  251. if in.SideEffects != nil {
  252. in, out := &in.SideEffects, &out.SideEffects
  253. *out = new(SideEffectClass)
  254. **out = **in
  255. }
  256. if in.TimeoutSeconds != nil {
  257. in, out := &in.TimeoutSeconds, &out.TimeoutSeconds
  258. *out = new(int32)
  259. **out = **in
  260. }
  261. if in.AdmissionReviewVersions != nil {
  262. in, out := &in.AdmissionReviewVersions, &out.AdmissionReviewVersions
  263. *out = make([]string, len(*in))
  264. copy(*out, *in)
  265. }
  266. return
  267. }
  268. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhook.
  269. func (in *ValidatingWebhook) DeepCopy() *ValidatingWebhook {
  270. if in == nil {
  271. return nil
  272. }
  273. out := new(ValidatingWebhook)
  274. in.DeepCopyInto(out)
  275. return out
  276. }
  277. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  278. func (in *ValidatingWebhookConfiguration) DeepCopyInto(out *ValidatingWebhookConfiguration) {
  279. *out = *in
  280. out.TypeMeta = in.TypeMeta
  281. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  282. if in.Webhooks != nil {
  283. in, out := &in.Webhooks, &out.Webhooks
  284. *out = make([]ValidatingWebhook, len(*in))
  285. for i := range *in {
  286. (*in)[i].DeepCopyInto(&(*out)[i])
  287. }
  288. }
  289. return
  290. }
  291. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfiguration.
  292. func (in *ValidatingWebhookConfiguration) DeepCopy() *ValidatingWebhookConfiguration {
  293. if in == nil {
  294. return nil
  295. }
  296. out := new(ValidatingWebhookConfiguration)
  297. in.DeepCopyInto(out)
  298. return out
  299. }
  300. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  301. func (in *ValidatingWebhookConfiguration) DeepCopyObject() runtime.Object {
  302. if c := in.DeepCopy(); c != nil {
  303. return c
  304. }
  305. return nil
  306. }
  307. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  308. func (in *ValidatingWebhookConfigurationList) DeepCopyInto(out *ValidatingWebhookConfigurationList) {
  309. *out = *in
  310. out.TypeMeta = in.TypeMeta
  311. in.ListMeta.DeepCopyInto(&out.ListMeta)
  312. if in.Items != nil {
  313. in, out := &in.Items, &out.Items
  314. *out = make([]ValidatingWebhookConfiguration, len(*in))
  315. for i := range *in {
  316. (*in)[i].DeepCopyInto(&(*out)[i])
  317. }
  318. }
  319. return
  320. }
  321. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfigurationList.
  322. func (in *ValidatingWebhookConfigurationList) DeepCopy() *ValidatingWebhookConfigurationList {
  323. if in == nil {
  324. return nil
  325. }
  326. out := new(ValidatingWebhookConfigurationList)
  327. in.DeepCopyInto(out)
  328. return out
  329. }
  330. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  331. func (in *ValidatingWebhookConfigurationList) DeepCopyObject() runtime.Object {
  332. if c := in.DeepCopy(); c != nil {
  333. return c
  334. }
  335. return nil
  336. }
  337. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  338. func (in *WebhookClientConfig) DeepCopyInto(out *WebhookClientConfig) {
  339. *out = *in
  340. if in.URL != nil {
  341. in, out := &in.URL, &out.URL
  342. *out = new(string)
  343. **out = **in
  344. }
  345. if in.Service != nil {
  346. in, out := &in.Service, &out.Service
  347. *out = new(ServiceReference)
  348. (*in).DeepCopyInto(*out)
  349. }
  350. if in.CABundle != nil {
  351. in, out := &in.CABundle, &out.CABundle
  352. *out = make([]byte, len(*in))
  353. copy(*out, *in)
  354. }
  355. return
  356. }
  357. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookClientConfig.
  358. func (in *WebhookClientConfig) DeepCopy() *WebhookClientConfig {
  359. if in == nil {
  360. return nil
  361. }
  362. out := new(WebhookClientConfig)
  363. in.DeepCopyInto(out)
  364. return out
  365. }