zz_generated.deepcopy.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright The Kubernetes Authors.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. */
  14. // Code generated by deepcopy-gen. DO NOT EDIT.
  15. package v1
  16. import (
  17. corev1 "k8s.io/api/core/v1"
  18. metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  19. runtime "k8s.io/apimachinery/pkg/runtime"
  20. intstr "k8s.io/apimachinery/pkg/util/intstr"
  21. )
  22. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  23. func (in *HTTPIngressPath) DeepCopyInto(out *HTTPIngressPath) {
  24. *out = *in
  25. if in.PathType != nil {
  26. in, out := &in.PathType, &out.PathType
  27. *out = new(PathType)
  28. **out = **in
  29. }
  30. in.Backend.DeepCopyInto(&out.Backend)
  31. return
  32. }
  33. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPIngressPath.
  34. func (in *HTTPIngressPath) DeepCopy() *HTTPIngressPath {
  35. if in == nil {
  36. return nil
  37. }
  38. out := new(HTTPIngressPath)
  39. in.DeepCopyInto(out)
  40. return out
  41. }
  42. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  43. func (in *HTTPIngressRuleValue) DeepCopyInto(out *HTTPIngressRuleValue) {
  44. *out = *in
  45. if in.Paths != nil {
  46. in, out := &in.Paths, &out.Paths
  47. *out = make([]HTTPIngressPath, len(*in))
  48. for i := range *in {
  49. (*in)[i].DeepCopyInto(&(*out)[i])
  50. }
  51. }
  52. return
  53. }
  54. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPIngressRuleValue.
  55. func (in *HTTPIngressRuleValue) DeepCopy() *HTTPIngressRuleValue {
  56. if in == nil {
  57. return nil
  58. }
  59. out := new(HTTPIngressRuleValue)
  60. in.DeepCopyInto(out)
  61. return out
  62. }
  63. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  64. func (in *IPBlock) DeepCopyInto(out *IPBlock) {
  65. *out = *in
  66. if in.Except != nil {
  67. in, out := &in.Except, &out.Except
  68. *out = make([]string, len(*in))
  69. copy(*out, *in)
  70. }
  71. return
  72. }
  73. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPBlock.
  74. func (in *IPBlock) DeepCopy() *IPBlock {
  75. if in == nil {
  76. return nil
  77. }
  78. out := new(IPBlock)
  79. in.DeepCopyInto(out)
  80. return out
  81. }
  82. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  83. func (in *Ingress) DeepCopyInto(out *Ingress) {
  84. *out = *in
  85. out.TypeMeta = in.TypeMeta
  86. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  87. in.Spec.DeepCopyInto(&out.Spec)
  88. in.Status.DeepCopyInto(&out.Status)
  89. return
  90. }
  91. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress.
  92. func (in *Ingress) DeepCopy() *Ingress {
  93. if in == nil {
  94. return nil
  95. }
  96. out := new(Ingress)
  97. in.DeepCopyInto(out)
  98. return out
  99. }
  100. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  101. func (in *Ingress) DeepCopyObject() runtime.Object {
  102. if c := in.DeepCopy(); c != nil {
  103. return c
  104. }
  105. return nil
  106. }
  107. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  108. func (in *IngressBackend) DeepCopyInto(out *IngressBackend) {
  109. *out = *in
  110. if in.Service != nil {
  111. in, out := &in.Service, &out.Service
  112. *out = new(IngressServiceBackend)
  113. **out = **in
  114. }
  115. if in.Resource != nil {
  116. in, out := &in.Resource, &out.Resource
  117. *out = new(corev1.TypedLocalObjectReference)
  118. (*in).DeepCopyInto(*out)
  119. }
  120. return
  121. }
  122. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressBackend.
  123. func (in *IngressBackend) DeepCopy() *IngressBackend {
  124. if in == nil {
  125. return nil
  126. }
  127. out := new(IngressBackend)
  128. in.DeepCopyInto(out)
  129. return out
  130. }
  131. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  132. func (in *IngressClass) DeepCopyInto(out *IngressClass) {
  133. *out = *in
  134. out.TypeMeta = in.TypeMeta
  135. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  136. in.Spec.DeepCopyInto(&out.Spec)
  137. return
  138. }
  139. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClass.
  140. func (in *IngressClass) DeepCopy() *IngressClass {
  141. if in == nil {
  142. return nil
  143. }
  144. out := new(IngressClass)
  145. in.DeepCopyInto(out)
  146. return out
  147. }
  148. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  149. func (in *IngressClass) DeepCopyObject() runtime.Object {
  150. if c := in.DeepCopy(); c != nil {
  151. return c
  152. }
  153. return nil
  154. }
  155. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  156. func (in *IngressClassList) DeepCopyInto(out *IngressClassList) {
  157. *out = *in
  158. out.TypeMeta = in.TypeMeta
  159. in.ListMeta.DeepCopyInto(&out.ListMeta)
  160. if in.Items != nil {
  161. in, out := &in.Items, &out.Items
  162. *out = make([]IngressClass, len(*in))
  163. for i := range *in {
  164. (*in)[i].DeepCopyInto(&(*out)[i])
  165. }
  166. }
  167. return
  168. }
  169. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassList.
  170. func (in *IngressClassList) DeepCopy() *IngressClassList {
  171. if in == nil {
  172. return nil
  173. }
  174. out := new(IngressClassList)
  175. in.DeepCopyInto(out)
  176. return out
  177. }
  178. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  179. func (in *IngressClassList) DeepCopyObject() runtime.Object {
  180. if c := in.DeepCopy(); c != nil {
  181. return c
  182. }
  183. return nil
  184. }
  185. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  186. func (in *IngressClassParametersReference) DeepCopyInto(out *IngressClassParametersReference) {
  187. *out = *in
  188. if in.APIGroup != nil {
  189. in, out := &in.APIGroup, &out.APIGroup
  190. *out = new(string)
  191. **out = **in
  192. }
  193. if in.Scope != nil {
  194. in, out := &in.Scope, &out.Scope
  195. *out = new(string)
  196. **out = **in
  197. }
  198. if in.Namespace != nil {
  199. in, out := &in.Namespace, &out.Namespace
  200. *out = new(string)
  201. **out = **in
  202. }
  203. return
  204. }
  205. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassParametersReference.
  206. func (in *IngressClassParametersReference) DeepCopy() *IngressClassParametersReference {
  207. if in == nil {
  208. return nil
  209. }
  210. out := new(IngressClassParametersReference)
  211. in.DeepCopyInto(out)
  212. return out
  213. }
  214. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  215. func (in *IngressClassSpec) DeepCopyInto(out *IngressClassSpec) {
  216. *out = *in
  217. if in.Parameters != nil {
  218. in, out := &in.Parameters, &out.Parameters
  219. *out = new(IngressClassParametersReference)
  220. (*in).DeepCopyInto(*out)
  221. }
  222. return
  223. }
  224. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassSpec.
  225. func (in *IngressClassSpec) DeepCopy() *IngressClassSpec {
  226. if in == nil {
  227. return nil
  228. }
  229. out := new(IngressClassSpec)
  230. in.DeepCopyInto(out)
  231. return out
  232. }
  233. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  234. func (in *IngressList) DeepCopyInto(out *IngressList) {
  235. *out = *in
  236. out.TypeMeta = in.TypeMeta
  237. in.ListMeta.DeepCopyInto(&out.ListMeta)
  238. if in.Items != nil {
  239. in, out := &in.Items, &out.Items
  240. *out = make([]Ingress, len(*in))
  241. for i := range *in {
  242. (*in)[i].DeepCopyInto(&(*out)[i])
  243. }
  244. }
  245. return
  246. }
  247. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressList.
  248. func (in *IngressList) DeepCopy() *IngressList {
  249. if in == nil {
  250. return nil
  251. }
  252. out := new(IngressList)
  253. in.DeepCopyInto(out)
  254. return out
  255. }
  256. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  257. func (in *IngressList) DeepCopyObject() runtime.Object {
  258. if c := in.DeepCopy(); c != nil {
  259. return c
  260. }
  261. return nil
  262. }
  263. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  264. func (in *IngressRule) DeepCopyInto(out *IngressRule) {
  265. *out = *in
  266. in.IngressRuleValue.DeepCopyInto(&out.IngressRuleValue)
  267. return
  268. }
  269. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRule.
  270. func (in *IngressRule) DeepCopy() *IngressRule {
  271. if in == nil {
  272. return nil
  273. }
  274. out := new(IngressRule)
  275. in.DeepCopyInto(out)
  276. return out
  277. }
  278. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  279. func (in *IngressRuleValue) DeepCopyInto(out *IngressRuleValue) {
  280. *out = *in
  281. if in.HTTP != nil {
  282. in, out := &in.HTTP, &out.HTTP
  283. *out = new(HTTPIngressRuleValue)
  284. (*in).DeepCopyInto(*out)
  285. }
  286. return
  287. }
  288. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRuleValue.
  289. func (in *IngressRuleValue) DeepCopy() *IngressRuleValue {
  290. if in == nil {
  291. return nil
  292. }
  293. out := new(IngressRuleValue)
  294. in.DeepCopyInto(out)
  295. return out
  296. }
  297. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  298. func (in *IngressServiceBackend) DeepCopyInto(out *IngressServiceBackend) {
  299. *out = *in
  300. out.Port = in.Port
  301. return
  302. }
  303. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressServiceBackend.
  304. func (in *IngressServiceBackend) DeepCopy() *IngressServiceBackend {
  305. if in == nil {
  306. return nil
  307. }
  308. out := new(IngressServiceBackend)
  309. in.DeepCopyInto(out)
  310. return out
  311. }
  312. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  313. func (in *IngressSpec) DeepCopyInto(out *IngressSpec) {
  314. *out = *in
  315. if in.IngressClassName != nil {
  316. in, out := &in.IngressClassName, &out.IngressClassName
  317. *out = new(string)
  318. **out = **in
  319. }
  320. if in.DefaultBackend != nil {
  321. in, out := &in.DefaultBackend, &out.DefaultBackend
  322. *out = new(IngressBackend)
  323. (*in).DeepCopyInto(*out)
  324. }
  325. if in.TLS != nil {
  326. in, out := &in.TLS, &out.TLS
  327. *out = make([]IngressTLS, len(*in))
  328. for i := range *in {
  329. (*in)[i].DeepCopyInto(&(*out)[i])
  330. }
  331. }
  332. if in.Rules != nil {
  333. in, out := &in.Rules, &out.Rules
  334. *out = make([]IngressRule, len(*in))
  335. for i := range *in {
  336. (*in)[i].DeepCopyInto(&(*out)[i])
  337. }
  338. }
  339. return
  340. }
  341. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressSpec.
  342. func (in *IngressSpec) DeepCopy() *IngressSpec {
  343. if in == nil {
  344. return nil
  345. }
  346. out := new(IngressSpec)
  347. in.DeepCopyInto(out)
  348. return out
  349. }
  350. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  351. func (in *IngressStatus) DeepCopyInto(out *IngressStatus) {
  352. *out = *in
  353. in.LoadBalancer.DeepCopyInto(&out.LoadBalancer)
  354. return
  355. }
  356. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressStatus.
  357. func (in *IngressStatus) DeepCopy() *IngressStatus {
  358. if in == nil {
  359. return nil
  360. }
  361. out := new(IngressStatus)
  362. in.DeepCopyInto(out)
  363. return out
  364. }
  365. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  366. func (in *IngressTLS) DeepCopyInto(out *IngressTLS) {
  367. *out = *in
  368. if in.Hosts != nil {
  369. in, out := &in.Hosts, &out.Hosts
  370. *out = make([]string, len(*in))
  371. copy(*out, *in)
  372. }
  373. return
  374. }
  375. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressTLS.
  376. func (in *IngressTLS) DeepCopy() *IngressTLS {
  377. if in == nil {
  378. return nil
  379. }
  380. out := new(IngressTLS)
  381. in.DeepCopyInto(out)
  382. return out
  383. }
  384. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  385. func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) {
  386. *out = *in
  387. out.TypeMeta = in.TypeMeta
  388. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  389. in.Spec.DeepCopyInto(&out.Spec)
  390. return
  391. }
  392. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.
  393. func (in *NetworkPolicy) DeepCopy() *NetworkPolicy {
  394. if in == nil {
  395. return nil
  396. }
  397. out := new(NetworkPolicy)
  398. in.DeepCopyInto(out)
  399. return out
  400. }
  401. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  402. func (in *NetworkPolicy) DeepCopyObject() runtime.Object {
  403. if c := in.DeepCopy(); c != nil {
  404. return c
  405. }
  406. return nil
  407. }
  408. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  409. func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) {
  410. *out = *in
  411. if in.Ports != nil {
  412. in, out := &in.Ports, &out.Ports
  413. *out = make([]NetworkPolicyPort, len(*in))
  414. for i := range *in {
  415. (*in)[i].DeepCopyInto(&(*out)[i])
  416. }
  417. }
  418. if in.To != nil {
  419. in, out := &in.To, &out.To
  420. *out = make([]NetworkPolicyPeer, len(*in))
  421. for i := range *in {
  422. (*in)[i].DeepCopyInto(&(*out)[i])
  423. }
  424. }
  425. return
  426. }
  427. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule.
  428. func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule {
  429. if in == nil {
  430. return nil
  431. }
  432. out := new(NetworkPolicyEgressRule)
  433. in.DeepCopyInto(out)
  434. return out
  435. }
  436. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  437. func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) {
  438. *out = *in
  439. if in.Ports != nil {
  440. in, out := &in.Ports, &out.Ports
  441. *out = make([]NetworkPolicyPort, len(*in))
  442. for i := range *in {
  443. (*in)[i].DeepCopyInto(&(*out)[i])
  444. }
  445. }
  446. if in.From != nil {
  447. in, out := &in.From, &out.From
  448. *out = make([]NetworkPolicyPeer, len(*in))
  449. for i := range *in {
  450. (*in)[i].DeepCopyInto(&(*out)[i])
  451. }
  452. }
  453. return
  454. }
  455. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
  456. func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule {
  457. if in == nil {
  458. return nil
  459. }
  460. out := new(NetworkPolicyIngressRule)
  461. in.DeepCopyInto(out)
  462. return out
  463. }
  464. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  465. func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) {
  466. *out = *in
  467. out.TypeMeta = in.TypeMeta
  468. in.ListMeta.DeepCopyInto(&out.ListMeta)
  469. if in.Items != nil {
  470. in, out := &in.Items, &out.Items
  471. *out = make([]NetworkPolicy, len(*in))
  472. for i := range *in {
  473. (*in)[i].DeepCopyInto(&(*out)[i])
  474. }
  475. }
  476. return
  477. }
  478. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList.
  479. func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList {
  480. if in == nil {
  481. return nil
  482. }
  483. out := new(NetworkPolicyList)
  484. in.DeepCopyInto(out)
  485. return out
  486. }
  487. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  488. func (in *NetworkPolicyList) DeepCopyObject() runtime.Object {
  489. if c := in.DeepCopy(); c != nil {
  490. return c
  491. }
  492. return nil
  493. }
  494. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  495. func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) {
  496. *out = *in
  497. if in.PodSelector != nil {
  498. in, out := &in.PodSelector, &out.PodSelector
  499. *out = new(metav1.LabelSelector)
  500. (*in).DeepCopyInto(*out)
  501. }
  502. if in.NamespaceSelector != nil {
  503. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  504. *out = new(metav1.LabelSelector)
  505. (*in).DeepCopyInto(*out)
  506. }
  507. if in.IPBlock != nil {
  508. in, out := &in.IPBlock, &out.IPBlock
  509. *out = new(IPBlock)
  510. (*in).DeepCopyInto(*out)
  511. }
  512. return
  513. }
  514. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
  515. func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer {
  516. if in == nil {
  517. return nil
  518. }
  519. out := new(NetworkPolicyPeer)
  520. in.DeepCopyInto(out)
  521. return out
  522. }
  523. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  524. func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) {
  525. *out = *in
  526. if in.Protocol != nil {
  527. in, out := &in.Protocol, &out.Protocol
  528. *out = new(corev1.Protocol)
  529. **out = **in
  530. }
  531. if in.Port != nil {
  532. in, out := &in.Port, &out.Port
  533. *out = new(intstr.IntOrString)
  534. **out = **in
  535. }
  536. if in.EndPort != nil {
  537. in, out := &in.EndPort, &out.EndPort
  538. *out = new(int32)
  539. **out = **in
  540. }
  541. return
  542. }
  543. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort.
  544. func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort {
  545. if in == nil {
  546. return nil
  547. }
  548. out := new(NetworkPolicyPort)
  549. in.DeepCopyInto(out)
  550. return out
  551. }
  552. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  553. func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) {
  554. *out = *in
  555. in.PodSelector.DeepCopyInto(&out.PodSelector)
  556. if in.Ingress != nil {
  557. in, out := &in.Ingress, &out.Ingress
  558. *out = make([]NetworkPolicyIngressRule, len(*in))
  559. for i := range *in {
  560. (*in)[i].DeepCopyInto(&(*out)[i])
  561. }
  562. }
  563. if in.Egress != nil {
  564. in, out := &in.Egress, &out.Egress
  565. *out = make([]NetworkPolicyEgressRule, len(*in))
  566. for i := range *in {
  567. (*in)[i].DeepCopyInto(&(*out)[i])
  568. }
  569. }
  570. if in.PolicyTypes != nil {
  571. in, out := &in.PolicyTypes, &out.PolicyTypes
  572. *out = make([]PolicyType, len(*in))
  573. copy(*out, *in)
  574. }
  575. return
  576. }
  577. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec.
  578. func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec {
  579. if in == nil {
  580. return nil
  581. }
  582. out := new(NetworkPolicySpec)
  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 *ServiceBackendPort) DeepCopyInto(out *ServiceBackendPort) {
  588. *out = *in
  589. return
  590. }
  591. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBackendPort.
  592. func (in *ServiceBackendPort) DeepCopy() *ServiceBackendPort {
  593. if in == nil {
  594. return nil
  595. }
  596. out := new(ServiceBackendPort)
  597. in.DeepCopyInto(out)
  598. return out
  599. }