zz_generated.deepcopy.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  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. admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
  19. v1 "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 *AuditAnnotation) DeepCopyInto(out *AuditAnnotation) {
  24. *out = *in
  25. return
  26. }
  27. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditAnnotation.
  28. func (in *AuditAnnotation) DeepCopy() *AuditAnnotation {
  29. if in == nil {
  30. return nil
  31. }
  32. out := new(AuditAnnotation)
  33. in.DeepCopyInto(out)
  34. return out
  35. }
  36. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  37. func (in *ExpressionWarning) DeepCopyInto(out *ExpressionWarning) {
  38. *out = *in
  39. return
  40. }
  41. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExpressionWarning.
  42. func (in *ExpressionWarning) DeepCopy() *ExpressionWarning {
  43. if in == nil {
  44. return nil
  45. }
  46. out := new(ExpressionWarning)
  47. in.DeepCopyInto(out)
  48. return out
  49. }
  50. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  51. func (in *MatchCondition) DeepCopyInto(out *MatchCondition) {
  52. *out = *in
  53. return
  54. }
  55. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchCondition.
  56. func (in *MatchCondition) DeepCopy() *MatchCondition {
  57. if in == nil {
  58. return nil
  59. }
  60. out := new(MatchCondition)
  61. in.DeepCopyInto(out)
  62. return out
  63. }
  64. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  65. func (in *MatchResources) DeepCopyInto(out *MatchResources) {
  66. *out = *in
  67. if in.NamespaceSelector != nil {
  68. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  69. *out = new(v1.LabelSelector)
  70. (*in).DeepCopyInto(*out)
  71. }
  72. if in.ObjectSelector != nil {
  73. in, out := &in.ObjectSelector, &out.ObjectSelector
  74. *out = new(v1.LabelSelector)
  75. (*in).DeepCopyInto(*out)
  76. }
  77. if in.ResourceRules != nil {
  78. in, out := &in.ResourceRules, &out.ResourceRules
  79. *out = make([]NamedRuleWithOperations, len(*in))
  80. for i := range *in {
  81. (*in)[i].DeepCopyInto(&(*out)[i])
  82. }
  83. }
  84. if in.ExcludeResourceRules != nil {
  85. in, out := &in.ExcludeResourceRules, &out.ExcludeResourceRules
  86. *out = make([]NamedRuleWithOperations, len(*in))
  87. for i := range *in {
  88. (*in)[i].DeepCopyInto(&(*out)[i])
  89. }
  90. }
  91. if in.MatchPolicy != nil {
  92. in, out := &in.MatchPolicy, &out.MatchPolicy
  93. *out = new(MatchPolicyType)
  94. **out = **in
  95. }
  96. return
  97. }
  98. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchResources.
  99. func (in *MatchResources) DeepCopy() *MatchResources {
  100. if in == nil {
  101. return nil
  102. }
  103. out := new(MatchResources)
  104. in.DeepCopyInto(out)
  105. return out
  106. }
  107. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  108. func (in *MutatingWebhook) DeepCopyInto(out *MutatingWebhook) {
  109. *out = *in
  110. in.ClientConfig.DeepCopyInto(&out.ClientConfig)
  111. if in.Rules != nil {
  112. in, out := &in.Rules, &out.Rules
  113. *out = make([]admissionregistrationv1.RuleWithOperations, len(*in))
  114. for i := range *in {
  115. (*in)[i].DeepCopyInto(&(*out)[i])
  116. }
  117. }
  118. if in.FailurePolicy != nil {
  119. in, out := &in.FailurePolicy, &out.FailurePolicy
  120. *out = new(FailurePolicyType)
  121. **out = **in
  122. }
  123. if in.MatchPolicy != nil {
  124. in, out := &in.MatchPolicy, &out.MatchPolicy
  125. *out = new(MatchPolicyType)
  126. **out = **in
  127. }
  128. if in.NamespaceSelector != nil {
  129. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  130. *out = new(v1.LabelSelector)
  131. (*in).DeepCopyInto(*out)
  132. }
  133. if in.ObjectSelector != nil {
  134. in, out := &in.ObjectSelector, &out.ObjectSelector
  135. *out = new(v1.LabelSelector)
  136. (*in).DeepCopyInto(*out)
  137. }
  138. if in.SideEffects != nil {
  139. in, out := &in.SideEffects, &out.SideEffects
  140. *out = new(SideEffectClass)
  141. **out = **in
  142. }
  143. if in.TimeoutSeconds != nil {
  144. in, out := &in.TimeoutSeconds, &out.TimeoutSeconds
  145. *out = new(int32)
  146. **out = **in
  147. }
  148. if in.AdmissionReviewVersions != nil {
  149. in, out := &in.AdmissionReviewVersions, &out.AdmissionReviewVersions
  150. *out = make([]string, len(*in))
  151. copy(*out, *in)
  152. }
  153. if in.ReinvocationPolicy != nil {
  154. in, out := &in.ReinvocationPolicy, &out.ReinvocationPolicy
  155. *out = new(ReinvocationPolicyType)
  156. **out = **in
  157. }
  158. if in.MatchConditions != nil {
  159. in, out := &in.MatchConditions, &out.MatchConditions
  160. *out = make([]MatchCondition, len(*in))
  161. copy(*out, *in)
  162. }
  163. return
  164. }
  165. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhook.
  166. func (in *MutatingWebhook) DeepCopy() *MutatingWebhook {
  167. if in == nil {
  168. return nil
  169. }
  170. out := new(MutatingWebhook)
  171. in.DeepCopyInto(out)
  172. return out
  173. }
  174. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  175. func (in *MutatingWebhookConfiguration) DeepCopyInto(out *MutatingWebhookConfiguration) {
  176. *out = *in
  177. out.TypeMeta = in.TypeMeta
  178. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  179. if in.Webhooks != nil {
  180. in, out := &in.Webhooks, &out.Webhooks
  181. *out = make([]MutatingWebhook, len(*in))
  182. for i := range *in {
  183. (*in)[i].DeepCopyInto(&(*out)[i])
  184. }
  185. }
  186. return
  187. }
  188. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfiguration.
  189. func (in *MutatingWebhookConfiguration) DeepCopy() *MutatingWebhookConfiguration {
  190. if in == nil {
  191. return nil
  192. }
  193. out := new(MutatingWebhookConfiguration)
  194. in.DeepCopyInto(out)
  195. return out
  196. }
  197. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  198. func (in *MutatingWebhookConfiguration) DeepCopyObject() runtime.Object {
  199. if c := in.DeepCopy(); c != nil {
  200. return c
  201. }
  202. return nil
  203. }
  204. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  205. func (in *MutatingWebhookConfigurationList) DeepCopyInto(out *MutatingWebhookConfigurationList) {
  206. *out = *in
  207. out.TypeMeta = in.TypeMeta
  208. in.ListMeta.DeepCopyInto(&out.ListMeta)
  209. if in.Items != nil {
  210. in, out := &in.Items, &out.Items
  211. *out = make([]MutatingWebhookConfiguration, len(*in))
  212. for i := range *in {
  213. (*in)[i].DeepCopyInto(&(*out)[i])
  214. }
  215. }
  216. return
  217. }
  218. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfigurationList.
  219. func (in *MutatingWebhookConfigurationList) DeepCopy() *MutatingWebhookConfigurationList {
  220. if in == nil {
  221. return nil
  222. }
  223. out := new(MutatingWebhookConfigurationList)
  224. in.DeepCopyInto(out)
  225. return out
  226. }
  227. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  228. func (in *MutatingWebhookConfigurationList) DeepCopyObject() runtime.Object {
  229. if c := in.DeepCopy(); c != nil {
  230. return c
  231. }
  232. return nil
  233. }
  234. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  235. func (in *NamedRuleWithOperations) DeepCopyInto(out *NamedRuleWithOperations) {
  236. *out = *in
  237. if in.ResourceNames != nil {
  238. in, out := &in.ResourceNames, &out.ResourceNames
  239. *out = make([]string, len(*in))
  240. copy(*out, *in)
  241. }
  242. in.RuleWithOperations.DeepCopyInto(&out.RuleWithOperations)
  243. return
  244. }
  245. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedRuleWithOperations.
  246. func (in *NamedRuleWithOperations) DeepCopy() *NamedRuleWithOperations {
  247. if in == nil {
  248. return nil
  249. }
  250. out := new(NamedRuleWithOperations)
  251. in.DeepCopyInto(out)
  252. return out
  253. }
  254. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  255. func (in *ParamKind) DeepCopyInto(out *ParamKind) {
  256. *out = *in
  257. return
  258. }
  259. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamKind.
  260. func (in *ParamKind) DeepCopy() *ParamKind {
  261. if in == nil {
  262. return nil
  263. }
  264. out := new(ParamKind)
  265. in.DeepCopyInto(out)
  266. return out
  267. }
  268. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  269. func (in *ParamRef) DeepCopyInto(out *ParamRef) {
  270. *out = *in
  271. if in.Selector != nil {
  272. in, out := &in.Selector, &out.Selector
  273. *out = new(v1.LabelSelector)
  274. (*in).DeepCopyInto(*out)
  275. }
  276. if in.ParameterNotFoundAction != nil {
  277. in, out := &in.ParameterNotFoundAction, &out.ParameterNotFoundAction
  278. *out = new(ParameterNotFoundActionType)
  279. **out = **in
  280. }
  281. return
  282. }
  283. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamRef.
  284. func (in *ParamRef) DeepCopy() *ParamRef {
  285. if in == nil {
  286. return nil
  287. }
  288. out := new(ParamRef)
  289. in.DeepCopyInto(out)
  290. return out
  291. }
  292. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  293. func (in *ServiceReference) DeepCopyInto(out *ServiceReference) {
  294. *out = *in
  295. if in.Path != nil {
  296. in, out := &in.Path, &out.Path
  297. *out = new(string)
  298. **out = **in
  299. }
  300. if in.Port != nil {
  301. in, out := &in.Port, &out.Port
  302. *out = new(int32)
  303. **out = **in
  304. }
  305. return
  306. }
  307. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference.
  308. func (in *ServiceReference) DeepCopy() *ServiceReference {
  309. if in == nil {
  310. return nil
  311. }
  312. out := new(ServiceReference)
  313. in.DeepCopyInto(out)
  314. return out
  315. }
  316. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  317. func (in *TypeChecking) DeepCopyInto(out *TypeChecking) {
  318. *out = *in
  319. if in.ExpressionWarnings != nil {
  320. in, out := &in.ExpressionWarnings, &out.ExpressionWarnings
  321. *out = make([]ExpressionWarning, len(*in))
  322. copy(*out, *in)
  323. }
  324. return
  325. }
  326. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypeChecking.
  327. func (in *TypeChecking) DeepCopy() *TypeChecking {
  328. if in == nil {
  329. return nil
  330. }
  331. out := new(TypeChecking)
  332. in.DeepCopyInto(out)
  333. return out
  334. }
  335. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  336. func (in *ValidatingAdmissionPolicy) DeepCopyInto(out *ValidatingAdmissionPolicy) {
  337. *out = *in
  338. out.TypeMeta = in.TypeMeta
  339. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  340. in.Spec.DeepCopyInto(&out.Spec)
  341. in.Status.DeepCopyInto(&out.Status)
  342. return
  343. }
  344. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicy.
  345. func (in *ValidatingAdmissionPolicy) DeepCopy() *ValidatingAdmissionPolicy {
  346. if in == nil {
  347. return nil
  348. }
  349. out := new(ValidatingAdmissionPolicy)
  350. in.DeepCopyInto(out)
  351. return out
  352. }
  353. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  354. func (in *ValidatingAdmissionPolicy) DeepCopyObject() runtime.Object {
  355. if c := in.DeepCopy(); c != nil {
  356. return c
  357. }
  358. return nil
  359. }
  360. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  361. func (in *ValidatingAdmissionPolicyBinding) DeepCopyInto(out *ValidatingAdmissionPolicyBinding) {
  362. *out = *in
  363. out.TypeMeta = in.TypeMeta
  364. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  365. in.Spec.DeepCopyInto(&out.Spec)
  366. return
  367. }
  368. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBinding.
  369. func (in *ValidatingAdmissionPolicyBinding) DeepCopy() *ValidatingAdmissionPolicyBinding {
  370. if in == nil {
  371. return nil
  372. }
  373. out := new(ValidatingAdmissionPolicyBinding)
  374. in.DeepCopyInto(out)
  375. return out
  376. }
  377. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  378. func (in *ValidatingAdmissionPolicyBinding) DeepCopyObject() runtime.Object {
  379. if c := in.DeepCopy(); c != nil {
  380. return c
  381. }
  382. return nil
  383. }
  384. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  385. func (in *ValidatingAdmissionPolicyBindingList) DeepCopyInto(out *ValidatingAdmissionPolicyBindingList) {
  386. *out = *in
  387. out.TypeMeta = in.TypeMeta
  388. in.ListMeta.DeepCopyInto(&out.ListMeta)
  389. if in.Items != nil {
  390. in, out := &in.Items, &out.Items
  391. *out = make([]ValidatingAdmissionPolicyBinding, len(*in))
  392. for i := range *in {
  393. (*in)[i].DeepCopyInto(&(*out)[i])
  394. }
  395. }
  396. return
  397. }
  398. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBindingList.
  399. func (in *ValidatingAdmissionPolicyBindingList) DeepCopy() *ValidatingAdmissionPolicyBindingList {
  400. if in == nil {
  401. return nil
  402. }
  403. out := new(ValidatingAdmissionPolicyBindingList)
  404. in.DeepCopyInto(out)
  405. return out
  406. }
  407. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  408. func (in *ValidatingAdmissionPolicyBindingList) DeepCopyObject() runtime.Object {
  409. if c := in.DeepCopy(); c != nil {
  410. return c
  411. }
  412. return nil
  413. }
  414. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  415. func (in *ValidatingAdmissionPolicyBindingSpec) DeepCopyInto(out *ValidatingAdmissionPolicyBindingSpec) {
  416. *out = *in
  417. if in.ParamRef != nil {
  418. in, out := &in.ParamRef, &out.ParamRef
  419. *out = new(ParamRef)
  420. (*in).DeepCopyInto(*out)
  421. }
  422. if in.MatchResources != nil {
  423. in, out := &in.MatchResources, &out.MatchResources
  424. *out = new(MatchResources)
  425. (*in).DeepCopyInto(*out)
  426. }
  427. if in.ValidationActions != nil {
  428. in, out := &in.ValidationActions, &out.ValidationActions
  429. *out = make([]ValidationAction, len(*in))
  430. copy(*out, *in)
  431. }
  432. return
  433. }
  434. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBindingSpec.
  435. func (in *ValidatingAdmissionPolicyBindingSpec) DeepCopy() *ValidatingAdmissionPolicyBindingSpec {
  436. if in == nil {
  437. return nil
  438. }
  439. out := new(ValidatingAdmissionPolicyBindingSpec)
  440. in.DeepCopyInto(out)
  441. return out
  442. }
  443. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  444. func (in *ValidatingAdmissionPolicyList) DeepCopyInto(out *ValidatingAdmissionPolicyList) {
  445. *out = *in
  446. out.TypeMeta = in.TypeMeta
  447. in.ListMeta.DeepCopyInto(&out.ListMeta)
  448. if in.Items != nil {
  449. in, out := &in.Items, &out.Items
  450. *out = make([]ValidatingAdmissionPolicy, len(*in))
  451. for i := range *in {
  452. (*in)[i].DeepCopyInto(&(*out)[i])
  453. }
  454. }
  455. return
  456. }
  457. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyList.
  458. func (in *ValidatingAdmissionPolicyList) DeepCopy() *ValidatingAdmissionPolicyList {
  459. if in == nil {
  460. return nil
  461. }
  462. out := new(ValidatingAdmissionPolicyList)
  463. in.DeepCopyInto(out)
  464. return out
  465. }
  466. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  467. func (in *ValidatingAdmissionPolicyList) DeepCopyObject() runtime.Object {
  468. if c := in.DeepCopy(); c != nil {
  469. return c
  470. }
  471. return nil
  472. }
  473. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  474. func (in *ValidatingAdmissionPolicySpec) DeepCopyInto(out *ValidatingAdmissionPolicySpec) {
  475. *out = *in
  476. if in.ParamKind != nil {
  477. in, out := &in.ParamKind, &out.ParamKind
  478. *out = new(ParamKind)
  479. **out = **in
  480. }
  481. if in.MatchConstraints != nil {
  482. in, out := &in.MatchConstraints, &out.MatchConstraints
  483. *out = new(MatchResources)
  484. (*in).DeepCopyInto(*out)
  485. }
  486. if in.Validations != nil {
  487. in, out := &in.Validations, &out.Validations
  488. *out = make([]Validation, len(*in))
  489. for i := range *in {
  490. (*in)[i].DeepCopyInto(&(*out)[i])
  491. }
  492. }
  493. if in.FailurePolicy != nil {
  494. in, out := &in.FailurePolicy, &out.FailurePolicy
  495. *out = new(FailurePolicyType)
  496. **out = **in
  497. }
  498. if in.AuditAnnotations != nil {
  499. in, out := &in.AuditAnnotations, &out.AuditAnnotations
  500. *out = make([]AuditAnnotation, len(*in))
  501. copy(*out, *in)
  502. }
  503. if in.MatchConditions != nil {
  504. in, out := &in.MatchConditions, &out.MatchConditions
  505. *out = make([]MatchCondition, len(*in))
  506. copy(*out, *in)
  507. }
  508. if in.Variables != nil {
  509. in, out := &in.Variables, &out.Variables
  510. *out = make([]Variable, len(*in))
  511. copy(*out, *in)
  512. }
  513. return
  514. }
  515. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicySpec.
  516. func (in *ValidatingAdmissionPolicySpec) DeepCopy() *ValidatingAdmissionPolicySpec {
  517. if in == nil {
  518. return nil
  519. }
  520. out := new(ValidatingAdmissionPolicySpec)
  521. in.DeepCopyInto(out)
  522. return out
  523. }
  524. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  525. func (in *ValidatingAdmissionPolicyStatus) DeepCopyInto(out *ValidatingAdmissionPolicyStatus) {
  526. *out = *in
  527. if in.TypeChecking != nil {
  528. in, out := &in.TypeChecking, &out.TypeChecking
  529. *out = new(TypeChecking)
  530. (*in).DeepCopyInto(*out)
  531. }
  532. if in.Conditions != nil {
  533. in, out := &in.Conditions, &out.Conditions
  534. *out = make([]v1.Condition, len(*in))
  535. for i := range *in {
  536. (*in)[i].DeepCopyInto(&(*out)[i])
  537. }
  538. }
  539. return
  540. }
  541. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyStatus.
  542. func (in *ValidatingAdmissionPolicyStatus) DeepCopy() *ValidatingAdmissionPolicyStatus {
  543. if in == nil {
  544. return nil
  545. }
  546. out := new(ValidatingAdmissionPolicyStatus)
  547. in.DeepCopyInto(out)
  548. return out
  549. }
  550. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  551. func (in *ValidatingWebhook) DeepCopyInto(out *ValidatingWebhook) {
  552. *out = *in
  553. in.ClientConfig.DeepCopyInto(&out.ClientConfig)
  554. if in.Rules != nil {
  555. in, out := &in.Rules, &out.Rules
  556. *out = make([]admissionregistrationv1.RuleWithOperations, len(*in))
  557. for i := range *in {
  558. (*in)[i].DeepCopyInto(&(*out)[i])
  559. }
  560. }
  561. if in.FailurePolicy != nil {
  562. in, out := &in.FailurePolicy, &out.FailurePolicy
  563. *out = new(FailurePolicyType)
  564. **out = **in
  565. }
  566. if in.MatchPolicy != nil {
  567. in, out := &in.MatchPolicy, &out.MatchPolicy
  568. *out = new(MatchPolicyType)
  569. **out = **in
  570. }
  571. if in.NamespaceSelector != nil {
  572. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  573. *out = new(v1.LabelSelector)
  574. (*in).DeepCopyInto(*out)
  575. }
  576. if in.ObjectSelector != nil {
  577. in, out := &in.ObjectSelector, &out.ObjectSelector
  578. *out = new(v1.LabelSelector)
  579. (*in).DeepCopyInto(*out)
  580. }
  581. if in.SideEffects != nil {
  582. in, out := &in.SideEffects, &out.SideEffects
  583. *out = new(SideEffectClass)
  584. **out = **in
  585. }
  586. if in.TimeoutSeconds != nil {
  587. in, out := &in.TimeoutSeconds, &out.TimeoutSeconds
  588. *out = new(int32)
  589. **out = **in
  590. }
  591. if in.AdmissionReviewVersions != nil {
  592. in, out := &in.AdmissionReviewVersions, &out.AdmissionReviewVersions
  593. *out = make([]string, len(*in))
  594. copy(*out, *in)
  595. }
  596. if in.MatchConditions != nil {
  597. in, out := &in.MatchConditions, &out.MatchConditions
  598. *out = make([]MatchCondition, len(*in))
  599. copy(*out, *in)
  600. }
  601. return
  602. }
  603. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhook.
  604. func (in *ValidatingWebhook) DeepCopy() *ValidatingWebhook {
  605. if in == nil {
  606. return nil
  607. }
  608. out := new(ValidatingWebhook)
  609. in.DeepCopyInto(out)
  610. return out
  611. }
  612. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  613. func (in *ValidatingWebhookConfiguration) DeepCopyInto(out *ValidatingWebhookConfiguration) {
  614. *out = *in
  615. out.TypeMeta = in.TypeMeta
  616. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  617. if in.Webhooks != nil {
  618. in, out := &in.Webhooks, &out.Webhooks
  619. *out = make([]ValidatingWebhook, len(*in))
  620. for i := range *in {
  621. (*in)[i].DeepCopyInto(&(*out)[i])
  622. }
  623. }
  624. return
  625. }
  626. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfiguration.
  627. func (in *ValidatingWebhookConfiguration) DeepCopy() *ValidatingWebhookConfiguration {
  628. if in == nil {
  629. return nil
  630. }
  631. out := new(ValidatingWebhookConfiguration)
  632. in.DeepCopyInto(out)
  633. return out
  634. }
  635. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  636. func (in *ValidatingWebhookConfiguration) DeepCopyObject() runtime.Object {
  637. if c := in.DeepCopy(); c != nil {
  638. return c
  639. }
  640. return nil
  641. }
  642. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  643. func (in *ValidatingWebhookConfigurationList) DeepCopyInto(out *ValidatingWebhookConfigurationList) {
  644. *out = *in
  645. out.TypeMeta = in.TypeMeta
  646. in.ListMeta.DeepCopyInto(&out.ListMeta)
  647. if in.Items != nil {
  648. in, out := &in.Items, &out.Items
  649. *out = make([]ValidatingWebhookConfiguration, len(*in))
  650. for i := range *in {
  651. (*in)[i].DeepCopyInto(&(*out)[i])
  652. }
  653. }
  654. return
  655. }
  656. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfigurationList.
  657. func (in *ValidatingWebhookConfigurationList) DeepCopy() *ValidatingWebhookConfigurationList {
  658. if in == nil {
  659. return nil
  660. }
  661. out := new(ValidatingWebhookConfigurationList)
  662. in.DeepCopyInto(out)
  663. return out
  664. }
  665. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  666. func (in *ValidatingWebhookConfigurationList) DeepCopyObject() runtime.Object {
  667. if c := in.DeepCopy(); c != nil {
  668. return c
  669. }
  670. return nil
  671. }
  672. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  673. func (in *Validation) DeepCopyInto(out *Validation) {
  674. *out = *in
  675. if in.Reason != nil {
  676. in, out := &in.Reason, &out.Reason
  677. *out = new(v1.StatusReason)
  678. **out = **in
  679. }
  680. return
  681. }
  682. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Validation.
  683. func (in *Validation) DeepCopy() *Validation {
  684. if in == nil {
  685. return nil
  686. }
  687. out := new(Validation)
  688. in.DeepCopyInto(out)
  689. return out
  690. }
  691. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  692. func (in *Variable) DeepCopyInto(out *Variable) {
  693. *out = *in
  694. return
  695. }
  696. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variable.
  697. func (in *Variable) DeepCopy() *Variable {
  698. if in == nil {
  699. return nil
  700. }
  701. out := new(Variable)
  702. in.DeepCopyInto(out)
  703. return out
  704. }
  705. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  706. func (in *WebhookClientConfig) DeepCopyInto(out *WebhookClientConfig) {
  707. *out = *in
  708. if in.URL != nil {
  709. in, out := &in.URL, &out.URL
  710. *out = new(string)
  711. **out = **in
  712. }
  713. if in.Service != nil {
  714. in, out := &in.Service, &out.Service
  715. *out = new(ServiceReference)
  716. (*in).DeepCopyInto(*out)
  717. }
  718. if in.CABundle != nil {
  719. in, out := &in.CABundle, &out.CABundle
  720. *out = make([]byte, len(*in))
  721. copy(*out, *in)
  722. }
  723. return
  724. }
  725. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookClientConfig.
  726. func (in *WebhookClientConfig) DeepCopy() *WebhookClientConfig {
  727. if in == nil {
  728. return nil
  729. }
  730. out := new(WebhookClientConfig)
  731. in.DeepCopyInto(out)
  732. return out
  733. }