2
0

zz_generated.deepcopy.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661
  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 *IngressRule) DeepCopyInto(out *IngressRule) {
  266. *out = *in
  267. in.IngressRuleValue.DeepCopyInto(&out.IngressRuleValue)
  268. return
  269. }
  270. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRule.
  271. func (in *IngressRule) DeepCopy() *IngressRule {
  272. if in == nil {
  273. return nil
  274. }
  275. out := new(IngressRule)
  276. in.DeepCopyInto(out)
  277. return out
  278. }
  279. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  280. func (in *IngressRuleValue) DeepCopyInto(out *IngressRuleValue) {
  281. *out = *in
  282. if in.HTTP != nil {
  283. in, out := &in.HTTP, &out.HTTP
  284. *out = new(HTTPIngressRuleValue)
  285. (*in).DeepCopyInto(*out)
  286. }
  287. return
  288. }
  289. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRuleValue.
  290. func (in *IngressRuleValue) DeepCopy() *IngressRuleValue {
  291. if in == nil {
  292. return nil
  293. }
  294. out := new(IngressRuleValue)
  295. in.DeepCopyInto(out)
  296. return out
  297. }
  298. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  299. func (in *IngressServiceBackend) DeepCopyInto(out *IngressServiceBackend) {
  300. *out = *in
  301. out.Port = in.Port
  302. return
  303. }
  304. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressServiceBackend.
  305. func (in *IngressServiceBackend) DeepCopy() *IngressServiceBackend {
  306. if in == nil {
  307. return nil
  308. }
  309. out := new(IngressServiceBackend)
  310. in.DeepCopyInto(out)
  311. return out
  312. }
  313. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  314. func (in *IngressSpec) DeepCopyInto(out *IngressSpec) {
  315. *out = *in
  316. if in.IngressClassName != nil {
  317. in, out := &in.IngressClassName, &out.IngressClassName
  318. *out = new(string)
  319. **out = **in
  320. }
  321. if in.DefaultBackend != nil {
  322. in, out := &in.DefaultBackend, &out.DefaultBackend
  323. *out = new(IngressBackend)
  324. (*in).DeepCopyInto(*out)
  325. }
  326. if in.TLS != nil {
  327. in, out := &in.TLS, &out.TLS
  328. *out = make([]IngressTLS, len(*in))
  329. for i := range *in {
  330. (*in)[i].DeepCopyInto(&(*out)[i])
  331. }
  332. }
  333. if in.Rules != nil {
  334. in, out := &in.Rules, &out.Rules
  335. *out = make([]IngressRule, len(*in))
  336. for i := range *in {
  337. (*in)[i].DeepCopyInto(&(*out)[i])
  338. }
  339. }
  340. return
  341. }
  342. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressSpec.
  343. func (in *IngressSpec) DeepCopy() *IngressSpec {
  344. if in == nil {
  345. return nil
  346. }
  347. out := new(IngressSpec)
  348. in.DeepCopyInto(out)
  349. return out
  350. }
  351. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  352. func (in *IngressStatus) DeepCopyInto(out *IngressStatus) {
  353. *out = *in
  354. in.LoadBalancer.DeepCopyInto(&out.LoadBalancer)
  355. return
  356. }
  357. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressStatus.
  358. func (in *IngressStatus) DeepCopy() *IngressStatus {
  359. if in == nil {
  360. return nil
  361. }
  362. out := new(IngressStatus)
  363. in.DeepCopyInto(out)
  364. return out
  365. }
  366. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  367. func (in *IngressTLS) DeepCopyInto(out *IngressTLS) {
  368. *out = *in
  369. if in.Hosts != nil {
  370. in, out := &in.Hosts, &out.Hosts
  371. *out = make([]string, len(*in))
  372. copy(*out, *in)
  373. }
  374. return
  375. }
  376. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressTLS.
  377. func (in *IngressTLS) DeepCopy() *IngressTLS {
  378. if in == nil {
  379. return nil
  380. }
  381. out := new(IngressTLS)
  382. in.DeepCopyInto(out)
  383. return out
  384. }
  385. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  386. func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) {
  387. *out = *in
  388. out.TypeMeta = in.TypeMeta
  389. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  390. in.Spec.DeepCopyInto(&out.Spec)
  391. return
  392. }
  393. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.
  394. func (in *NetworkPolicy) DeepCopy() *NetworkPolicy {
  395. if in == nil {
  396. return nil
  397. }
  398. out := new(NetworkPolicy)
  399. in.DeepCopyInto(out)
  400. return out
  401. }
  402. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  403. func (in *NetworkPolicy) DeepCopyObject() runtime.Object {
  404. if c := in.DeepCopy(); c != nil {
  405. return c
  406. }
  407. return nil
  408. }
  409. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  410. func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) {
  411. *out = *in
  412. if in.Ports != nil {
  413. in, out := &in.Ports, &out.Ports
  414. *out = make([]NetworkPolicyPort, len(*in))
  415. for i := range *in {
  416. (*in)[i].DeepCopyInto(&(*out)[i])
  417. }
  418. }
  419. if in.To != nil {
  420. in, out := &in.To, &out.To
  421. *out = make([]NetworkPolicyPeer, len(*in))
  422. for i := range *in {
  423. (*in)[i].DeepCopyInto(&(*out)[i])
  424. }
  425. }
  426. return
  427. }
  428. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule.
  429. func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule {
  430. if in == nil {
  431. return nil
  432. }
  433. out := new(NetworkPolicyEgressRule)
  434. in.DeepCopyInto(out)
  435. return out
  436. }
  437. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  438. func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) {
  439. *out = *in
  440. if in.Ports != nil {
  441. in, out := &in.Ports, &out.Ports
  442. *out = make([]NetworkPolicyPort, len(*in))
  443. for i := range *in {
  444. (*in)[i].DeepCopyInto(&(*out)[i])
  445. }
  446. }
  447. if in.From != nil {
  448. in, out := &in.From, &out.From
  449. *out = make([]NetworkPolicyPeer, len(*in))
  450. for i := range *in {
  451. (*in)[i].DeepCopyInto(&(*out)[i])
  452. }
  453. }
  454. return
  455. }
  456. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
  457. func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule {
  458. if in == nil {
  459. return nil
  460. }
  461. out := new(NetworkPolicyIngressRule)
  462. in.DeepCopyInto(out)
  463. return out
  464. }
  465. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  466. func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) {
  467. *out = *in
  468. out.TypeMeta = in.TypeMeta
  469. in.ListMeta.DeepCopyInto(&out.ListMeta)
  470. if in.Items != nil {
  471. in, out := &in.Items, &out.Items
  472. *out = make([]NetworkPolicy, len(*in))
  473. for i := range *in {
  474. (*in)[i].DeepCopyInto(&(*out)[i])
  475. }
  476. }
  477. return
  478. }
  479. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList.
  480. func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList {
  481. if in == nil {
  482. return nil
  483. }
  484. out := new(NetworkPolicyList)
  485. in.DeepCopyInto(out)
  486. return out
  487. }
  488. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  489. func (in *NetworkPolicyList) DeepCopyObject() runtime.Object {
  490. if c := in.DeepCopy(); c != nil {
  491. return c
  492. }
  493. return nil
  494. }
  495. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  496. func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) {
  497. *out = *in
  498. if in.PodSelector != nil {
  499. in, out := &in.PodSelector, &out.PodSelector
  500. *out = new(metav1.LabelSelector)
  501. (*in).DeepCopyInto(*out)
  502. }
  503. if in.NamespaceSelector != nil {
  504. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  505. *out = new(metav1.LabelSelector)
  506. (*in).DeepCopyInto(*out)
  507. }
  508. if in.IPBlock != nil {
  509. in, out := &in.IPBlock, &out.IPBlock
  510. *out = new(IPBlock)
  511. (*in).DeepCopyInto(*out)
  512. }
  513. return
  514. }
  515. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
  516. func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer {
  517. if in == nil {
  518. return nil
  519. }
  520. out := new(NetworkPolicyPeer)
  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 *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) {
  526. *out = *in
  527. if in.Protocol != nil {
  528. in, out := &in.Protocol, &out.Protocol
  529. *out = new(corev1.Protocol)
  530. **out = **in
  531. }
  532. if in.Port != nil {
  533. in, out := &in.Port, &out.Port
  534. *out = new(intstr.IntOrString)
  535. **out = **in
  536. }
  537. if in.EndPort != nil {
  538. in, out := &in.EndPort, &out.EndPort
  539. *out = new(int32)
  540. **out = **in
  541. }
  542. return
  543. }
  544. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort.
  545. func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort {
  546. if in == nil {
  547. return nil
  548. }
  549. out := new(NetworkPolicyPort)
  550. in.DeepCopyInto(out)
  551. return out
  552. }
  553. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  554. func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) {
  555. *out = *in
  556. in.PodSelector.DeepCopyInto(&out.PodSelector)
  557. if in.Ingress != nil {
  558. in, out := &in.Ingress, &out.Ingress
  559. *out = make([]NetworkPolicyIngressRule, len(*in))
  560. for i := range *in {
  561. (*in)[i].DeepCopyInto(&(*out)[i])
  562. }
  563. }
  564. if in.Egress != nil {
  565. in, out := &in.Egress, &out.Egress
  566. *out = make([]NetworkPolicyEgressRule, len(*in))
  567. for i := range *in {
  568. (*in)[i].DeepCopyInto(&(*out)[i])
  569. }
  570. }
  571. if in.PolicyTypes != nil {
  572. in, out := &in.PolicyTypes, &out.PolicyTypes
  573. *out = make([]PolicyType, len(*in))
  574. copy(*out, *in)
  575. }
  576. return
  577. }
  578. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec.
  579. func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec {
  580. if in == nil {
  581. return nil
  582. }
  583. out := new(NetworkPolicySpec)
  584. in.DeepCopyInto(out)
  585. return out
  586. }
  587. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  588. func (in *ServiceBackendPort) DeepCopyInto(out *ServiceBackendPort) {
  589. *out = *in
  590. return
  591. }
  592. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBackendPort.
  593. func (in *ServiceBackendPort) DeepCopy() *ServiceBackendPort {
  594. if in == nil {
  595. return nil
  596. }
  597. out := new(ServiceBackendPort)
  598. in.DeepCopyInto(out)
  599. return out
  600. }