zz_generated.deepcopy.go 12 KB

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