zz_generated.deepcopy.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  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. corev1 "k8s.io/api/core/v1"
  19. metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  20. runtime "k8s.io/apimachinery/pkg/runtime"
  21. intstr "k8s.io/apimachinery/pkg/util/intstr"
  22. )
  23. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  24. func (in *HTTPIngressPath) DeepCopyInto(out *HTTPIngressPath) {
  25. *out = *in
  26. if in.PathType != nil {
  27. in, out := &in.PathType, &out.PathType
  28. *out = new(PathType)
  29. **out = **in
  30. }
  31. in.Backend.DeepCopyInto(&out.Backend)
  32. return
  33. }
  34. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPIngressPath.
  35. func (in *HTTPIngressPath) DeepCopy() *HTTPIngressPath {
  36. if in == nil {
  37. return nil
  38. }
  39. out := new(HTTPIngressPath)
  40. in.DeepCopyInto(out)
  41. return out
  42. }
  43. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  44. func (in *HTTPIngressRuleValue) DeepCopyInto(out *HTTPIngressRuleValue) {
  45. *out = *in
  46. if in.Paths != nil {
  47. in, out := &in.Paths, &out.Paths
  48. *out = make([]HTTPIngressPath, len(*in))
  49. for i := range *in {
  50. (*in)[i].DeepCopyInto(&(*out)[i])
  51. }
  52. }
  53. return
  54. }
  55. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPIngressRuleValue.
  56. func (in *HTTPIngressRuleValue) DeepCopy() *HTTPIngressRuleValue {
  57. if in == nil {
  58. return nil
  59. }
  60. out := new(HTTPIngressRuleValue)
  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 *IPBlock) DeepCopyInto(out *IPBlock) {
  66. *out = *in
  67. if in.Except != nil {
  68. in, out := &in.Except, &out.Except
  69. *out = make([]string, len(*in))
  70. copy(*out, *in)
  71. }
  72. return
  73. }
  74. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPBlock.
  75. func (in *IPBlock) DeepCopy() *IPBlock {
  76. if in == nil {
  77. return nil
  78. }
  79. out := new(IPBlock)
  80. in.DeepCopyInto(out)
  81. return out
  82. }
  83. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  84. func (in *Ingress) DeepCopyInto(out *Ingress) {
  85. *out = *in
  86. out.TypeMeta = in.TypeMeta
  87. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  88. in.Spec.DeepCopyInto(&out.Spec)
  89. in.Status.DeepCopyInto(&out.Status)
  90. return
  91. }
  92. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress.
  93. func (in *Ingress) DeepCopy() *Ingress {
  94. if in == nil {
  95. return nil
  96. }
  97. out := new(Ingress)
  98. in.DeepCopyInto(out)
  99. return out
  100. }
  101. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  102. func (in *Ingress) DeepCopyObject() runtime.Object {
  103. if c := in.DeepCopy(); c != nil {
  104. return c
  105. }
  106. return nil
  107. }
  108. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  109. func (in *IngressBackend) DeepCopyInto(out *IngressBackend) {
  110. *out = *in
  111. if in.Service != nil {
  112. in, out := &in.Service, &out.Service
  113. *out = new(IngressServiceBackend)
  114. **out = **in
  115. }
  116. if in.Resource != nil {
  117. in, out := &in.Resource, &out.Resource
  118. *out = new(corev1.TypedLocalObjectReference)
  119. (*in).DeepCopyInto(*out)
  120. }
  121. return
  122. }
  123. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressBackend.
  124. func (in *IngressBackend) DeepCopy() *IngressBackend {
  125. if in == nil {
  126. return nil
  127. }
  128. out := new(IngressBackend)
  129. in.DeepCopyInto(out)
  130. return out
  131. }
  132. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  133. func (in *IngressClass) DeepCopyInto(out *IngressClass) {
  134. *out = *in
  135. out.TypeMeta = in.TypeMeta
  136. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  137. in.Spec.DeepCopyInto(&out.Spec)
  138. return
  139. }
  140. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClass.
  141. func (in *IngressClass) DeepCopy() *IngressClass {
  142. if in == nil {
  143. return nil
  144. }
  145. out := new(IngressClass)
  146. in.DeepCopyInto(out)
  147. return out
  148. }
  149. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  150. func (in *IngressClass) DeepCopyObject() runtime.Object {
  151. if c := in.DeepCopy(); c != nil {
  152. return c
  153. }
  154. return nil
  155. }
  156. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  157. func (in *IngressClassList) DeepCopyInto(out *IngressClassList) {
  158. *out = *in
  159. out.TypeMeta = in.TypeMeta
  160. in.ListMeta.DeepCopyInto(&out.ListMeta)
  161. if in.Items != nil {
  162. in, out := &in.Items, &out.Items
  163. *out = make([]IngressClass, len(*in))
  164. for i := range *in {
  165. (*in)[i].DeepCopyInto(&(*out)[i])
  166. }
  167. }
  168. return
  169. }
  170. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassList.
  171. func (in *IngressClassList) DeepCopy() *IngressClassList {
  172. if in == nil {
  173. return nil
  174. }
  175. out := new(IngressClassList)
  176. in.DeepCopyInto(out)
  177. return out
  178. }
  179. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  180. func (in *IngressClassList) DeepCopyObject() runtime.Object {
  181. if c := in.DeepCopy(); c != nil {
  182. return c
  183. }
  184. return nil
  185. }
  186. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  187. func (in *IngressClassParametersReference) DeepCopyInto(out *IngressClassParametersReference) {
  188. *out = *in
  189. if in.APIGroup != nil {
  190. in, out := &in.APIGroup, &out.APIGroup
  191. *out = new(string)
  192. **out = **in
  193. }
  194. if in.Scope != nil {
  195. in, out := &in.Scope, &out.Scope
  196. *out = new(string)
  197. **out = **in
  198. }
  199. if in.Namespace != nil {
  200. in, out := &in.Namespace, &out.Namespace
  201. *out = new(string)
  202. **out = **in
  203. }
  204. return
  205. }
  206. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassParametersReference.
  207. func (in *IngressClassParametersReference) DeepCopy() *IngressClassParametersReference {
  208. if in == nil {
  209. return nil
  210. }
  211. out := new(IngressClassParametersReference)
  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 *IngressClassSpec) DeepCopyInto(out *IngressClassSpec) {
  217. *out = *in
  218. if in.Parameters != nil {
  219. in, out := &in.Parameters, &out.Parameters
  220. *out = new(IngressClassParametersReference)
  221. (*in).DeepCopyInto(*out)
  222. }
  223. return
  224. }
  225. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassSpec.
  226. func (in *IngressClassSpec) DeepCopy() *IngressClassSpec {
  227. if in == nil {
  228. return nil
  229. }
  230. out := new(IngressClassSpec)
  231. in.DeepCopyInto(out)
  232. return out
  233. }
  234. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  235. func (in *IngressList) DeepCopyInto(out *IngressList) {
  236. *out = *in
  237. out.TypeMeta = in.TypeMeta
  238. in.ListMeta.DeepCopyInto(&out.ListMeta)
  239. if in.Items != nil {
  240. in, out := &in.Items, &out.Items
  241. *out = make([]Ingress, len(*in))
  242. for i := range *in {
  243. (*in)[i].DeepCopyInto(&(*out)[i])
  244. }
  245. }
  246. return
  247. }
  248. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressList.
  249. func (in *IngressList) DeepCopy() *IngressList {
  250. if in == nil {
  251. return nil
  252. }
  253. out := new(IngressList)
  254. in.DeepCopyInto(out)
  255. return out
  256. }
  257. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  258. func (in *IngressList) DeepCopyObject() runtime.Object {
  259. if c := in.DeepCopy(); c != nil {
  260. return c
  261. }
  262. return nil
  263. }
  264. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  265. func (in *IngressLoadBalancerIngress) DeepCopyInto(out *IngressLoadBalancerIngress) {
  266. *out = *in
  267. if in.Ports != nil {
  268. in, out := &in.Ports, &out.Ports
  269. *out = make([]IngressPortStatus, len(*in))
  270. for i := range *in {
  271. (*in)[i].DeepCopyInto(&(*out)[i])
  272. }
  273. }
  274. return
  275. }
  276. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalancerIngress.
  277. func (in *IngressLoadBalancerIngress) DeepCopy() *IngressLoadBalancerIngress {
  278. if in == nil {
  279. return nil
  280. }
  281. out := new(IngressLoadBalancerIngress)
  282. in.DeepCopyInto(out)
  283. return out
  284. }
  285. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  286. func (in *IngressLoadBalancerStatus) DeepCopyInto(out *IngressLoadBalancerStatus) {
  287. *out = *in
  288. if in.Ingress != nil {
  289. in, out := &in.Ingress, &out.Ingress
  290. *out = make([]IngressLoadBalancerIngress, len(*in))
  291. for i := range *in {
  292. (*in)[i].DeepCopyInto(&(*out)[i])
  293. }
  294. }
  295. return
  296. }
  297. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalancerStatus.
  298. func (in *IngressLoadBalancerStatus) DeepCopy() *IngressLoadBalancerStatus {
  299. if in == nil {
  300. return nil
  301. }
  302. out := new(IngressLoadBalancerStatus)
  303. in.DeepCopyInto(out)
  304. return out
  305. }
  306. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  307. func (in *IngressPortStatus) DeepCopyInto(out *IngressPortStatus) {
  308. *out = *in
  309. if in.Error != nil {
  310. in, out := &in.Error, &out.Error
  311. *out = new(string)
  312. **out = **in
  313. }
  314. return
  315. }
  316. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressPortStatus.
  317. func (in *IngressPortStatus) DeepCopy() *IngressPortStatus {
  318. if in == nil {
  319. return nil
  320. }
  321. out := new(IngressPortStatus)
  322. in.DeepCopyInto(out)
  323. return out
  324. }
  325. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  326. func (in *IngressRule) DeepCopyInto(out *IngressRule) {
  327. *out = *in
  328. in.IngressRuleValue.DeepCopyInto(&out.IngressRuleValue)
  329. return
  330. }
  331. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRule.
  332. func (in *IngressRule) DeepCopy() *IngressRule {
  333. if in == nil {
  334. return nil
  335. }
  336. out := new(IngressRule)
  337. in.DeepCopyInto(out)
  338. return out
  339. }
  340. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  341. func (in *IngressRuleValue) DeepCopyInto(out *IngressRuleValue) {
  342. *out = *in
  343. if in.HTTP != nil {
  344. in, out := &in.HTTP, &out.HTTP
  345. *out = new(HTTPIngressRuleValue)
  346. (*in).DeepCopyInto(*out)
  347. }
  348. return
  349. }
  350. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRuleValue.
  351. func (in *IngressRuleValue) DeepCopy() *IngressRuleValue {
  352. if in == nil {
  353. return nil
  354. }
  355. out := new(IngressRuleValue)
  356. in.DeepCopyInto(out)
  357. return out
  358. }
  359. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  360. func (in *IngressServiceBackend) DeepCopyInto(out *IngressServiceBackend) {
  361. *out = *in
  362. out.Port = in.Port
  363. return
  364. }
  365. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressServiceBackend.
  366. func (in *IngressServiceBackend) DeepCopy() *IngressServiceBackend {
  367. if in == nil {
  368. return nil
  369. }
  370. out := new(IngressServiceBackend)
  371. in.DeepCopyInto(out)
  372. return out
  373. }
  374. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  375. func (in *IngressSpec) DeepCopyInto(out *IngressSpec) {
  376. *out = *in
  377. if in.IngressClassName != nil {
  378. in, out := &in.IngressClassName, &out.IngressClassName
  379. *out = new(string)
  380. **out = **in
  381. }
  382. if in.DefaultBackend != nil {
  383. in, out := &in.DefaultBackend, &out.DefaultBackend
  384. *out = new(IngressBackend)
  385. (*in).DeepCopyInto(*out)
  386. }
  387. if in.TLS != nil {
  388. in, out := &in.TLS, &out.TLS
  389. *out = make([]IngressTLS, len(*in))
  390. for i := range *in {
  391. (*in)[i].DeepCopyInto(&(*out)[i])
  392. }
  393. }
  394. if in.Rules != nil {
  395. in, out := &in.Rules, &out.Rules
  396. *out = make([]IngressRule, len(*in))
  397. for i := range *in {
  398. (*in)[i].DeepCopyInto(&(*out)[i])
  399. }
  400. }
  401. return
  402. }
  403. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressSpec.
  404. func (in *IngressSpec) DeepCopy() *IngressSpec {
  405. if in == nil {
  406. return nil
  407. }
  408. out := new(IngressSpec)
  409. in.DeepCopyInto(out)
  410. return out
  411. }
  412. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  413. func (in *IngressStatus) DeepCopyInto(out *IngressStatus) {
  414. *out = *in
  415. in.LoadBalancer.DeepCopyInto(&out.LoadBalancer)
  416. return
  417. }
  418. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressStatus.
  419. func (in *IngressStatus) DeepCopy() *IngressStatus {
  420. if in == nil {
  421. return nil
  422. }
  423. out := new(IngressStatus)
  424. in.DeepCopyInto(out)
  425. return out
  426. }
  427. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  428. func (in *IngressTLS) DeepCopyInto(out *IngressTLS) {
  429. *out = *in
  430. if in.Hosts != nil {
  431. in, out := &in.Hosts, &out.Hosts
  432. *out = make([]string, len(*in))
  433. copy(*out, *in)
  434. }
  435. return
  436. }
  437. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressTLS.
  438. func (in *IngressTLS) DeepCopy() *IngressTLS {
  439. if in == nil {
  440. return nil
  441. }
  442. out := new(IngressTLS)
  443. in.DeepCopyInto(out)
  444. return out
  445. }
  446. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  447. func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) {
  448. *out = *in
  449. out.TypeMeta = in.TypeMeta
  450. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  451. in.Spec.DeepCopyInto(&out.Spec)
  452. in.Status.DeepCopyInto(&out.Status)
  453. return
  454. }
  455. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.
  456. func (in *NetworkPolicy) DeepCopy() *NetworkPolicy {
  457. if in == nil {
  458. return nil
  459. }
  460. out := new(NetworkPolicy)
  461. in.DeepCopyInto(out)
  462. return out
  463. }
  464. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  465. func (in *NetworkPolicy) DeepCopyObject() runtime.Object {
  466. if c := in.DeepCopy(); c != nil {
  467. return c
  468. }
  469. return nil
  470. }
  471. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  472. func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) {
  473. *out = *in
  474. if in.Ports != nil {
  475. in, out := &in.Ports, &out.Ports
  476. *out = make([]NetworkPolicyPort, len(*in))
  477. for i := range *in {
  478. (*in)[i].DeepCopyInto(&(*out)[i])
  479. }
  480. }
  481. if in.To != nil {
  482. in, out := &in.To, &out.To
  483. *out = make([]NetworkPolicyPeer, len(*in))
  484. for i := range *in {
  485. (*in)[i].DeepCopyInto(&(*out)[i])
  486. }
  487. }
  488. return
  489. }
  490. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule.
  491. func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule {
  492. if in == nil {
  493. return nil
  494. }
  495. out := new(NetworkPolicyEgressRule)
  496. in.DeepCopyInto(out)
  497. return out
  498. }
  499. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  500. func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) {
  501. *out = *in
  502. if in.Ports != nil {
  503. in, out := &in.Ports, &out.Ports
  504. *out = make([]NetworkPolicyPort, len(*in))
  505. for i := range *in {
  506. (*in)[i].DeepCopyInto(&(*out)[i])
  507. }
  508. }
  509. if in.From != nil {
  510. in, out := &in.From, &out.From
  511. *out = make([]NetworkPolicyPeer, len(*in))
  512. for i := range *in {
  513. (*in)[i].DeepCopyInto(&(*out)[i])
  514. }
  515. }
  516. return
  517. }
  518. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
  519. func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule {
  520. if in == nil {
  521. return nil
  522. }
  523. out := new(NetworkPolicyIngressRule)
  524. in.DeepCopyInto(out)
  525. return out
  526. }
  527. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  528. func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) {
  529. *out = *in
  530. out.TypeMeta = in.TypeMeta
  531. in.ListMeta.DeepCopyInto(&out.ListMeta)
  532. if in.Items != nil {
  533. in, out := &in.Items, &out.Items
  534. *out = make([]NetworkPolicy, 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 NetworkPolicyList.
  542. func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList {
  543. if in == nil {
  544. return nil
  545. }
  546. out := new(NetworkPolicyList)
  547. in.DeepCopyInto(out)
  548. return out
  549. }
  550. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  551. func (in *NetworkPolicyList) DeepCopyObject() runtime.Object {
  552. if c := in.DeepCopy(); c != nil {
  553. return c
  554. }
  555. return nil
  556. }
  557. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  558. func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) {
  559. *out = *in
  560. if in.PodSelector != nil {
  561. in, out := &in.PodSelector, &out.PodSelector
  562. *out = new(metav1.LabelSelector)
  563. (*in).DeepCopyInto(*out)
  564. }
  565. if in.NamespaceSelector != nil {
  566. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  567. *out = new(metav1.LabelSelector)
  568. (*in).DeepCopyInto(*out)
  569. }
  570. if in.IPBlock != nil {
  571. in, out := &in.IPBlock, &out.IPBlock
  572. *out = new(IPBlock)
  573. (*in).DeepCopyInto(*out)
  574. }
  575. return
  576. }
  577. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
  578. func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer {
  579. if in == nil {
  580. return nil
  581. }
  582. out := new(NetworkPolicyPeer)
  583. in.DeepCopyInto(out)
  584. return out
  585. }
  586. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  587. func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) {
  588. *out = *in
  589. if in.Protocol != nil {
  590. in, out := &in.Protocol, &out.Protocol
  591. *out = new(corev1.Protocol)
  592. **out = **in
  593. }
  594. if in.Port != nil {
  595. in, out := &in.Port, &out.Port
  596. *out = new(intstr.IntOrString)
  597. **out = **in
  598. }
  599. if in.EndPort != nil {
  600. in, out := &in.EndPort, &out.EndPort
  601. *out = new(int32)
  602. **out = **in
  603. }
  604. return
  605. }
  606. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort.
  607. func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort {
  608. if in == nil {
  609. return nil
  610. }
  611. out := new(NetworkPolicyPort)
  612. in.DeepCopyInto(out)
  613. return out
  614. }
  615. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  616. func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) {
  617. *out = *in
  618. in.PodSelector.DeepCopyInto(&out.PodSelector)
  619. if in.Ingress != nil {
  620. in, out := &in.Ingress, &out.Ingress
  621. *out = make([]NetworkPolicyIngressRule, len(*in))
  622. for i := range *in {
  623. (*in)[i].DeepCopyInto(&(*out)[i])
  624. }
  625. }
  626. if in.Egress != nil {
  627. in, out := &in.Egress, &out.Egress
  628. *out = make([]NetworkPolicyEgressRule, len(*in))
  629. for i := range *in {
  630. (*in)[i].DeepCopyInto(&(*out)[i])
  631. }
  632. }
  633. if in.PolicyTypes != nil {
  634. in, out := &in.PolicyTypes, &out.PolicyTypes
  635. *out = make([]PolicyType, len(*in))
  636. copy(*out, *in)
  637. }
  638. return
  639. }
  640. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec.
  641. func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec {
  642. if in == nil {
  643. return nil
  644. }
  645. out := new(NetworkPolicySpec)
  646. in.DeepCopyInto(out)
  647. return out
  648. }
  649. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  650. func (in *NetworkPolicyStatus) DeepCopyInto(out *NetworkPolicyStatus) {
  651. *out = *in
  652. if in.Conditions != nil {
  653. in, out := &in.Conditions, &out.Conditions
  654. *out = make([]metav1.Condition, len(*in))
  655. for i := range *in {
  656. (*in)[i].DeepCopyInto(&(*out)[i])
  657. }
  658. }
  659. return
  660. }
  661. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyStatus.
  662. func (in *NetworkPolicyStatus) DeepCopy() *NetworkPolicyStatus {
  663. if in == nil {
  664. return nil
  665. }
  666. out := new(NetworkPolicyStatus)
  667. in.DeepCopyInto(out)
  668. return out
  669. }
  670. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  671. func (in *ServiceBackendPort) DeepCopyInto(out *ServiceBackendPort) {
  672. *out = *in
  673. return
  674. }
  675. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBackendPort.
  676. func (in *ServiceBackendPort) DeepCopy() *ServiceBackendPort {
  677. if in == nil {
  678. return nil
  679. }
  680. out := new(ServiceBackendPort)
  681. in.DeepCopyInto(out)
  682. return out
  683. }