zz_generated.deepcopy.go 17 KB

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