zz_generated.deepcopy.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728
  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. return
  453. }
  454. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.
  455. func (in *NetworkPolicy) DeepCopy() *NetworkPolicy {
  456. if in == nil {
  457. return nil
  458. }
  459. out := new(NetworkPolicy)
  460. in.DeepCopyInto(out)
  461. return out
  462. }
  463. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  464. func (in *NetworkPolicy) DeepCopyObject() runtime.Object {
  465. if c := in.DeepCopy(); c != nil {
  466. return c
  467. }
  468. return nil
  469. }
  470. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  471. func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) {
  472. *out = *in
  473. if in.Ports != nil {
  474. in, out := &in.Ports, &out.Ports
  475. *out = make([]NetworkPolicyPort, len(*in))
  476. for i := range *in {
  477. (*in)[i].DeepCopyInto(&(*out)[i])
  478. }
  479. }
  480. if in.To != nil {
  481. in, out := &in.To, &out.To
  482. *out = make([]NetworkPolicyPeer, len(*in))
  483. for i := range *in {
  484. (*in)[i].DeepCopyInto(&(*out)[i])
  485. }
  486. }
  487. return
  488. }
  489. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule.
  490. func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule {
  491. if in == nil {
  492. return nil
  493. }
  494. out := new(NetworkPolicyEgressRule)
  495. in.DeepCopyInto(out)
  496. return out
  497. }
  498. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  499. func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) {
  500. *out = *in
  501. if in.Ports != nil {
  502. in, out := &in.Ports, &out.Ports
  503. *out = make([]NetworkPolicyPort, len(*in))
  504. for i := range *in {
  505. (*in)[i].DeepCopyInto(&(*out)[i])
  506. }
  507. }
  508. if in.From != nil {
  509. in, out := &in.From, &out.From
  510. *out = make([]NetworkPolicyPeer, len(*in))
  511. for i := range *in {
  512. (*in)[i].DeepCopyInto(&(*out)[i])
  513. }
  514. }
  515. return
  516. }
  517. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
  518. func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule {
  519. if in == nil {
  520. return nil
  521. }
  522. out := new(NetworkPolicyIngressRule)
  523. in.DeepCopyInto(out)
  524. return out
  525. }
  526. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  527. func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) {
  528. *out = *in
  529. out.TypeMeta = in.TypeMeta
  530. in.ListMeta.DeepCopyInto(&out.ListMeta)
  531. if in.Items != nil {
  532. in, out := &in.Items, &out.Items
  533. *out = make([]NetworkPolicy, len(*in))
  534. for i := range *in {
  535. (*in)[i].DeepCopyInto(&(*out)[i])
  536. }
  537. }
  538. return
  539. }
  540. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList.
  541. func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList {
  542. if in == nil {
  543. return nil
  544. }
  545. out := new(NetworkPolicyList)
  546. in.DeepCopyInto(out)
  547. return out
  548. }
  549. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  550. func (in *NetworkPolicyList) DeepCopyObject() runtime.Object {
  551. if c := in.DeepCopy(); c != nil {
  552. return c
  553. }
  554. return nil
  555. }
  556. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  557. func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) {
  558. *out = *in
  559. if in.PodSelector != nil {
  560. in, out := &in.PodSelector, &out.PodSelector
  561. *out = new(metav1.LabelSelector)
  562. (*in).DeepCopyInto(*out)
  563. }
  564. if in.NamespaceSelector != nil {
  565. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  566. *out = new(metav1.LabelSelector)
  567. (*in).DeepCopyInto(*out)
  568. }
  569. if in.IPBlock != nil {
  570. in, out := &in.IPBlock, &out.IPBlock
  571. *out = new(IPBlock)
  572. (*in).DeepCopyInto(*out)
  573. }
  574. return
  575. }
  576. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
  577. func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer {
  578. if in == nil {
  579. return nil
  580. }
  581. out := new(NetworkPolicyPeer)
  582. in.DeepCopyInto(out)
  583. return out
  584. }
  585. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  586. func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) {
  587. *out = *in
  588. if in.Protocol != nil {
  589. in, out := &in.Protocol, &out.Protocol
  590. *out = new(corev1.Protocol)
  591. **out = **in
  592. }
  593. if in.Port != nil {
  594. in, out := &in.Port, &out.Port
  595. *out = new(intstr.IntOrString)
  596. **out = **in
  597. }
  598. if in.EndPort != nil {
  599. in, out := &in.EndPort, &out.EndPort
  600. *out = new(int32)
  601. **out = **in
  602. }
  603. return
  604. }
  605. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort.
  606. func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort {
  607. if in == nil {
  608. return nil
  609. }
  610. out := new(NetworkPolicyPort)
  611. in.DeepCopyInto(out)
  612. return out
  613. }
  614. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  615. func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) {
  616. *out = *in
  617. in.PodSelector.DeepCopyInto(&out.PodSelector)
  618. if in.Ingress != nil {
  619. in, out := &in.Ingress, &out.Ingress
  620. *out = make([]NetworkPolicyIngressRule, len(*in))
  621. for i := range *in {
  622. (*in)[i].DeepCopyInto(&(*out)[i])
  623. }
  624. }
  625. if in.Egress != nil {
  626. in, out := &in.Egress, &out.Egress
  627. *out = make([]NetworkPolicyEgressRule, len(*in))
  628. for i := range *in {
  629. (*in)[i].DeepCopyInto(&(*out)[i])
  630. }
  631. }
  632. if in.PolicyTypes != nil {
  633. in, out := &in.PolicyTypes, &out.PolicyTypes
  634. *out = make([]PolicyType, len(*in))
  635. copy(*out, *in)
  636. }
  637. return
  638. }
  639. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec.
  640. func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec {
  641. if in == nil {
  642. return nil
  643. }
  644. out := new(NetworkPolicySpec)
  645. in.DeepCopyInto(out)
  646. return out
  647. }
  648. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  649. func (in *ServiceBackendPort) DeepCopyInto(out *ServiceBackendPort) {
  650. *out = *in
  651. return
  652. }
  653. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBackendPort.
  654. func (in *ServiceBackendPort) DeepCopy() *ServiceBackendPort {
  655. if in == nil {
  656. return nil
  657. }
  658. out := new(ServiceBackendPort)
  659. in.DeepCopyInto(out)
  660. return out
  661. }