zz_generated.deepcopy.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  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. metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  19. runtime "k8s.io/apimachinery/pkg/runtime"
  20. )
  21. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  22. func (in *ContainerResourceMetricSource) DeepCopyInto(out *ContainerResourceMetricSource) {
  23. *out = *in
  24. if in.TargetAverageUtilization != nil {
  25. in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization
  26. *out = new(int32)
  27. **out = **in
  28. }
  29. if in.TargetAverageValue != nil {
  30. in, out := &in.TargetAverageValue, &out.TargetAverageValue
  31. x := (*in).DeepCopy()
  32. *out = &x
  33. }
  34. return
  35. }
  36. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResourceMetricSource.
  37. func (in *ContainerResourceMetricSource) DeepCopy() *ContainerResourceMetricSource {
  38. if in == nil {
  39. return nil
  40. }
  41. out := new(ContainerResourceMetricSource)
  42. in.DeepCopyInto(out)
  43. return out
  44. }
  45. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  46. func (in *ContainerResourceMetricStatus) DeepCopyInto(out *ContainerResourceMetricStatus) {
  47. *out = *in
  48. if in.CurrentAverageUtilization != nil {
  49. in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization
  50. *out = new(int32)
  51. **out = **in
  52. }
  53. out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
  54. return
  55. }
  56. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResourceMetricStatus.
  57. func (in *ContainerResourceMetricStatus) DeepCopy() *ContainerResourceMetricStatus {
  58. if in == nil {
  59. return nil
  60. }
  61. out := new(ContainerResourceMetricStatus)
  62. in.DeepCopyInto(out)
  63. return out
  64. }
  65. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  66. func (in *CrossVersionObjectReference) DeepCopyInto(out *CrossVersionObjectReference) {
  67. *out = *in
  68. return
  69. }
  70. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrossVersionObjectReference.
  71. func (in *CrossVersionObjectReference) DeepCopy() *CrossVersionObjectReference {
  72. if in == nil {
  73. return nil
  74. }
  75. out := new(CrossVersionObjectReference)
  76. in.DeepCopyInto(out)
  77. return out
  78. }
  79. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  80. func (in *ExternalMetricSource) DeepCopyInto(out *ExternalMetricSource) {
  81. *out = *in
  82. if in.MetricSelector != nil {
  83. in, out := &in.MetricSelector, &out.MetricSelector
  84. *out = new(metav1.LabelSelector)
  85. (*in).DeepCopyInto(*out)
  86. }
  87. if in.TargetValue != nil {
  88. in, out := &in.TargetValue, &out.TargetValue
  89. x := (*in).DeepCopy()
  90. *out = &x
  91. }
  92. if in.TargetAverageValue != nil {
  93. in, out := &in.TargetAverageValue, &out.TargetAverageValue
  94. x := (*in).DeepCopy()
  95. *out = &x
  96. }
  97. return
  98. }
  99. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricSource.
  100. func (in *ExternalMetricSource) DeepCopy() *ExternalMetricSource {
  101. if in == nil {
  102. return nil
  103. }
  104. out := new(ExternalMetricSource)
  105. in.DeepCopyInto(out)
  106. return out
  107. }
  108. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  109. func (in *ExternalMetricStatus) DeepCopyInto(out *ExternalMetricStatus) {
  110. *out = *in
  111. if in.MetricSelector != nil {
  112. in, out := &in.MetricSelector, &out.MetricSelector
  113. *out = new(metav1.LabelSelector)
  114. (*in).DeepCopyInto(*out)
  115. }
  116. out.CurrentValue = in.CurrentValue.DeepCopy()
  117. if in.CurrentAverageValue != nil {
  118. in, out := &in.CurrentAverageValue, &out.CurrentAverageValue
  119. x := (*in).DeepCopy()
  120. *out = &x
  121. }
  122. return
  123. }
  124. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricStatus.
  125. func (in *ExternalMetricStatus) DeepCopy() *ExternalMetricStatus {
  126. if in == nil {
  127. return nil
  128. }
  129. out := new(ExternalMetricStatus)
  130. in.DeepCopyInto(out)
  131. return out
  132. }
  133. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  134. func (in *HorizontalPodAutoscaler) DeepCopyInto(out *HorizontalPodAutoscaler) {
  135. *out = *in
  136. out.TypeMeta = in.TypeMeta
  137. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  138. in.Spec.DeepCopyInto(&out.Spec)
  139. in.Status.DeepCopyInto(&out.Status)
  140. return
  141. }
  142. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscaler.
  143. func (in *HorizontalPodAutoscaler) DeepCopy() *HorizontalPodAutoscaler {
  144. if in == nil {
  145. return nil
  146. }
  147. out := new(HorizontalPodAutoscaler)
  148. in.DeepCopyInto(out)
  149. return out
  150. }
  151. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  152. func (in *HorizontalPodAutoscaler) DeepCopyObject() runtime.Object {
  153. if c := in.DeepCopy(); c != nil {
  154. return c
  155. }
  156. return nil
  157. }
  158. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  159. func (in *HorizontalPodAutoscalerCondition) DeepCopyInto(out *HorizontalPodAutoscalerCondition) {
  160. *out = *in
  161. in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
  162. return
  163. }
  164. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerCondition.
  165. func (in *HorizontalPodAutoscalerCondition) DeepCopy() *HorizontalPodAutoscalerCondition {
  166. if in == nil {
  167. return nil
  168. }
  169. out := new(HorizontalPodAutoscalerCondition)
  170. in.DeepCopyInto(out)
  171. return out
  172. }
  173. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  174. func (in *HorizontalPodAutoscalerList) DeepCopyInto(out *HorizontalPodAutoscalerList) {
  175. *out = *in
  176. out.TypeMeta = in.TypeMeta
  177. in.ListMeta.DeepCopyInto(&out.ListMeta)
  178. if in.Items != nil {
  179. in, out := &in.Items, &out.Items
  180. *out = make([]HorizontalPodAutoscaler, len(*in))
  181. for i := range *in {
  182. (*in)[i].DeepCopyInto(&(*out)[i])
  183. }
  184. }
  185. return
  186. }
  187. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerList.
  188. func (in *HorizontalPodAutoscalerList) DeepCopy() *HorizontalPodAutoscalerList {
  189. if in == nil {
  190. return nil
  191. }
  192. out := new(HorizontalPodAutoscalerList)
  193. in.DeepCopyInto(out)
  194. return out
  195. }
  196. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  197. func (in *HorizontalPodAutoscalerList) DeepCopyObject() runtime.Object {
  198. if c := in.DeepCopy(); c != nil {
  199. return c
  200. }
  201. return nil
  202. }
  203. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  204. func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) {
  205. *out = *in
  206. out.ScaleTargetRef = in.ScaleTargetRef
  207. if in.MinReplicas != nil {
  208. in, out := &in.MinReplicas, &out.MinReplicas
  209. *out = new(int32)
  210. **out = **in
  211. }
  212. if in.TargetCPUUtilizationPercentage != nil {
  213. in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage
  214. *out = new(int32)
  215. **out = **in
  216. }
  217. return
  218. }
  219. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec.
  220. func (in *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec {
  221. if in == nil {
  222. return nil
  223. }
  224. out := new(HorizontalPodAutoscalerSpec)
  225. in.DeepCopyInto(out)
  226. return out
  227. }
  228. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  229. func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) {
  230. *out = *in
  231. if in.ObservedGeneration != nil {
  232. in, out := &in.ObservedGeneration, &out.ObservedGeneration
  233. *out = new(int64)
  234. **out = **in
  235. }
  236. if in.LastScaleTime != nil {
  237. in, out := &in.LastScaleTime, &out.LastScaleTime
  238. *out = (*in).DeepCopy()
  239. }
  240. if in.CurrentCPUUtilizationPercentage != nil {
  241. in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage
  242. *out = new(int32)
  243. **out = **in
  244. }
  245. return
  246. }
  247. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus.
  248. func (in *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus {
  249. if in == nil {
  250. return nil
  251. }
  252. out := new(HorizontalPodAutoscalerStatus)
  253. in.DeepCopyInto(out)
  254. return out
  255. }
  256. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  257. func (in *MetricSpec) DeepCopyInto(out *MetricSpec) {
  258. *out = *in
  259. if in.Object != nil {
  260. in, out := &in.Object, &out.Object
  261. *out = new(ObjectMetricSource)
  262. (*in).DeepCopyInto(*out)
  263. }
  264. if in.Pods != nil {
  265. in, out := &in.Pods, &out.Pods
  266. *out = new(PodsMetricSource)
  267. (*in).DeepCopyInto(*out)
  268. }
  269. if in.Resource != nil {
  270. in, out := &in.Resource, &out.Resource
  271. *out = new(ResourceMetricSource)
  272. (*in).DeepCopyInto(*out)
  273. }
  274. if in.ContainerResource != nil {
  275. in, out := &in.ContainerResource, &out.ContainerResource
  276. *out = new(ContainerResourceMetricSource)
  277. (*in).DeepCopyInto(*out)
  278. }
  279. if in.External != nil {
  280. in, out := &in.External, &out.External
  281. *out = new(ExternalMetricSource)
  282. (*in).DeepCopyInto(*out)
  283. }
  284. return
  285. }
  286. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec.
  287. func (in *MetricSpec) DeepCopy() *MetricSpec {
  288. if in == nil {
  289. return nil
  290. }
  291. out := new(MetricSpec)
  292. in.DeepCopyInto(out)
  293. return out
  294. }
  295. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  296. func (in *MetricStatus) DeepCopyInto(out *MetricStatus) {
  297. *out = *in
  298. if in.Object != nil {
  299. in, out := &in.Object, &out.Object
  300. *out = new(ObjectMetricStatus)
  301. (*in).DeepCopyInto(*out)
  302. }
  303. if in.Pods != nil {
  304. in, out := &in.Pods, &out.Pods
  305. *out = new(PodsMetricStatus)
  306. (*in).DeepCopyInto(*out)
  307. }
  308. if in.Resource != nil {
  309. in, out := &in.Resource, &out.Resource
  310. *out = new(ResourceMetricStatus)
  311. (*in).DeepCopyInto(*out)
  312. }
  313. if in.ContainerResource != nil {
  314. in, out := &in.ContainerResource, &out.ContainerResource
  315. *out = new(ContainerResourceMetricStatus)
  316. (*in).DeepCopyInto(*out)
  317. }
  318. if in.External != nil {
  319. in, out := &in.External, &out.External
  320. *out = new(ExternalMetricStatus)
  321. (*in).DeepCopyInto(*out)
  322. }
  323. return
  324. }
  325. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus.
  326. func (in *MetricStatus) DeepCopy() *MetricStatus {
  327. if in == nil {
  328. return nil
  329. }
  330. out := new(MetricStatus)
  331. in.DeepCopyInto(out)
  332. return out
  333. }
  334. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  335. func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) {
  336. *out = *in
  337. out.Target = in.Target
  338. out.TargetValue = in.TargetValue.DeepCopy()
  339. if in.Selector != nil {
  340. in, out := &in.Selector, &out.Selector
  341. *out = new(metav1.LabelSelector)
  342. (*in).DeepCopyInto(*out)
  343. }
  344. if in.AverageValue != nil {
  345. in, out := &in.AverageValue, &out.AverageValue
  346. x := (*in).DeepCopy()
  347. *out = &x
  348. }
  349. return
  350. }
  351. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource.
  352. func (in *ObjectMetricSource) DeepCopy() *ObjectMetricSource {
  353. if in == nil {
  354. return nil
  355. }
  356. out := new(ObjectMetricSource)
  357. in.DeepCopyInto(out)
  358. return out
  359. }
  360. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  361. func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) {
  362. *out = *in
  363. out.Target = in.Target
  364. out.CurrentValue = in.CurrentValue.DeepCopy()
  365. if in.Selector != nil {
  366. in, out := &in.Selector, &out.Selector
  367. *out = new(metav1.LabelSelector)
  368. (*in).DeepCopyInto(*out)
  369. }
  370. if in.AverageValue != nil {
  371. in, out := &in.AverageValue, &out.AverageValue
  372. x := (*in).DeepCopy()
  373. *out = &x
  374. }
  375. return
  376. }
  377. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus.
  378. func (in *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus {
  379. if in == nil {
  380. return nil
  381. }
  382. out := new(ObjectMetricStatus)
  383. in.DeepCopyInto(out)
  384. return out
  385. }
  386. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  387. func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) {
  388. *out = *in
  389. out.TargetAverageValue = in.TargetAverageValue.DeepCopy()
  390. if in.Selector != nil {
  391. in, out := &in.Selector, &out.Selector
  392. *out = new(metav1.LabelSelector)
  393. (*in).DeepCopyInto(*out)
  394. }
  395. return
  396. }
  397. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource.
  398. func (in *PodsMetricSource) DeepCopy() *PodsMetricSource {
  399. if in == nil {
  400. return nil
  401. }
  402. out := new(PodsMetricSource)
  403. in.DeepCopyInto(out)
  404. return out
  405. }
  406. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  407. func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) {
  408. *out = *in
  409. out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
  410. if in.Selector != nil {
  411. in, out := &in.Selector, &out.Selector
  412. *out = new(metav1.LabelSelector)
  413. (*in).DeepCopyInto(*out)
  414. }
  415. return
  416. }
  417. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus.
  418. func (in *PodsMetricStatus) DeepCopy() *PodsMetricStatus {
  419. if in == nil {
  420. return nil
  421. }
  422. out := new(PodsMetricStatus)
  423. in.DeepCopyInto(out)
  424. return out
  425. }
  426. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  427. func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) {
  428. *out = *in
  429. if in.TargetAverageUtilization != nil {
  430. in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization
  431. *out = new(int32)
  432. **out = **in
  433. }
  434. if in.TargetAverageValue != nil {
  435. in, out := &in.TargetAverageValue, &out.TargetAverageValue
  436. x := (*in).DeepCopy()
  437. *out = &x
  438. }
  439. return
  440. }
  441. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource.
  442. func (in *ResourceMetricSource) DeepCopy() *ResourceMetricSource {
  443. if in == nil {
  444. return nil
  445. }
  446. out := new(ResourceMetricSource)
  447. in.DeepCopyInto(out)
  448. return out
  449. }
  450. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  451. func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) {
  452. *out = *in
  453. if in.CurrentAverageUtilization != nil {
  454. in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization
  455. *out = new(int32)
  456. **out = **in
  457. }
  458. out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
  459. return
  460. }
  461. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus.
  462. func (in *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus {
  463. if in == nil {
  464. return nil
  465. }
  466. out := new(ResourceMetricStatus)
  467. in.DeepCopyInto(out)
  468. return out
  469. }
  470. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  471. func (in *Scale) DeepCopyInto(out *Scale) {
  472. *out = *in
  473. out.TypeMeta = in.TypeMeta
  474. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  475. out.Spec = in.Spec
  476. out.Status = in.Status
  477. return
  478. }
  479. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scale.
  480. func (in *Scale) DeepCopy() *Scale {
  481. if in == nil {
  482. return nil
  483. }
  484. out := new(Scale)
  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 *Scale) 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 *ScaleSpec) DeepCopyInto(out *ScaleSpec) {
  497. *out = *in
  498. return
  499. }
  500. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleSpec.
  501. func (in *ScaleSpec) DeepCopy() *ScaleSpec {
  502. if in == nil {
  503. return nil
  504. }
  505. out := new(ScaleSpec)
  506. in.DeepCopyInto(out)
  507. return out
  508. }
  509. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  510. func (in *ScaleStatus) DeepCopyInto(out *ScaleStatus) {
  511. *out = *in
  512. return
  513. }
  514. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleStatus.
  515. func (in *ScaleStatus) DeepCopy() *ScaleStatus {
  516. if in == nil {
  517. return nil
  518. }
  519. out := new(ScaleStatus)
  520. in.DeepCopyInto(out)
  521. return out
  522. }