zz_generated.deepcopy.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  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 v2beta1
  17. import (
  18. v1 "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(v1.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(v1.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.Metrics != nil {
  213. in, out := &in.Metrics, &out.Metrics
  214. *out = make([]MetricSpec, len(*in))
  215. for i := range *in {
  216. (*in)[i].DeepCopyInto(&(*out)[i])
  217. }
  218. }
  219. return
  220. }
  221. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec.
  222. func (in *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec {
  223. if in == nil {
  224. return nil
  225. }
  226. out := new(HorizontalPodAutoscalerSpec)
  227. in.DeepCopyInto(out)
  228. return out
  229. }
  230. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  231. func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) {
  232. *out = *in
  233. if in.ObservedGeneration != nil {
  234. in, out := &in.ObservedGeneration, &out.ObservedGeneration
  235. *out = new(int64)
  236. **out = **in
  237. }
  238. if in.LastScaleTime != nil {
  239. in, out := &in.LastScaleTime, &out.LastScaleTime
  240. *out = (*in).DeepCopy()
  241. }
  242. if in.CurrentMetrics != nil {
  243. in, out := &in.CurrentMetrics, &out.CurrentMetrics
  244. *out = make([]MetricStatus, len(*in))
  245. for i := range *in {
  246. (*in)[i].DeepCopyInto(&(*out)[i])
  247. }
  248. }
  249. if in.Conditions != nil {
  250. in, out := &in.Conditions, &out.Conditions
  251. *out = make([]HorizontalPodAutoscalerCondition, len(*in))
  252. for i := range *in {
  253. (*in)[i].DeepCopyInto(&(*out)[i])
  254. }
  255. }
  256. return
  257. }
  258. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus.
  259. func (in *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus {
  260. if in == nil {
  261. return nil
  262. }
  263. out := new(HorizontalPodAutoscalerStatus)
  264. in.DeepCopyInto(out)
  265. return out
  266. }
  267. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  268. func (in *MetricSpec) DeepCopyInto(out *MetricSpec) {
  269. *out = *in
  270. if in.Object != nil {
  271. in, out := &in.Object, &out.Object
  272. *out = new(ObjectMetricSource)
  273. (*in).DeepCopyInto(*out)
  274. }
  275. if in.Pods != nil {
  276. in, out := &in.Pods, &out.Pods
  277. *out = new(PodsMetricSource)
  278. (*in).DeepCopyInto(*out)
  279. }
  280. if in.Resource != nil {
  281. in, out := &in.Resource, &out.Resource
  282. *out = new(ResourceMetricSource)
  283. (*in).DeepCopyInto(*out)
  284. }
  285. if in.ContainerResource != nil {
  286. in, out := &in.ContainerResource, &out.ContainerResource
  287. *out = new(ContainerResourceMetricSource)
  288. (*in).DeepCopyInto(*out)
  289. }
  290. if in.External != nil {
  291. in, out := &in.External, &out.External
  292. *out = new(ExternalMetricSource)
  293. (*in).DeepCopyInto(*out)
  294. }
  295. return
  296. }
  297. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec.
  298. func (in *MetricSpec) DeepCopy() *MetricSpec {
  299. if in == nil {
  300. return nil
  301. }
  302. out := new(MetricSpec)
  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 *MetricStatus) DeepCopyInto(out *MetricStatus) {
  308. *out = *in
  309. if in.Object != nil {
  310. in, out := &in.Object, &out.Object
  311. *out = new(ObjectMetricStatus)
  312. (*in).DeepCopyInto(*out)
  313. }
  314. if in.Pods != nil {
  315. in, out := &in.Pods, &out.Pods
  316. *out = new(PodsMetricStatus)
  317. (*in).DeepCopyInto(*out)
  318. }
  319. if in.Resource != nil {
  320. in, out := &in.Resource, &out.Resource
  321. *out = new(ResourceMetricStatus)
  322. (*in).DeepCopyInto(*out)
  323. }
  324. if in.ContainerResource != nil {
  325. in, out := &in.ContainerResource, &out.ContainerResource
  326. *out = new(ContainerResourceMetricStatus)
  327. (*in).DeepCopyInto(*out)
  328. }
  329. if in.External != nil {
  330. in, out := &in.External, &out.External
  331. *out = new(ExternalMetricStatus)
  332. (*in).DeepCopyInto(*out)
  333. }
  334. return
  335. }
  336. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus.
  337. func (in *MetricStatus) DeepCopy() *MetricStatus {
  338. if in == nil {
  339. return nil
  340. }
  341. out := new(MetricStatus)
  342. in.DeepCopyInto(out)
  343. return out
  344. }
  345. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  346. func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) {
  347. *out = *in
  348. out.Target = in.Target
  349. out.TargetValue = in.TargetValue.DeepCopy()
  350. if in.Selector != nil {
  351. in, out := &in.Selector, &out.Selector
  352. *out = new(v1.LabelSelector)
  353. (*in).DeepCopyInto(*out)
  354. }
  355. if in.AverageValue != nil {
  356. in, out := &in.AverageValue, &out.AverageValue
  357. x := (*in).DeepCopy()
  358. *out = &x
  359. }
  360. return
  361. }
  362. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource.
  363. func (in *ObjectMetricSource) DeepCopy() *ObjectMetricSource {
  364. if in == nil {
  365. return nil
  366. }
  367. out := new(ObjectMetricSource)
  368. in.DeepCopyInto(out)
  369. return out
  370. }
  371. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  372. func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) {
  373. *out = *in
  374. out.Target = in.Target
  375. out.CurrentValue = in.CurrentValue.DeepCopy()
  376. if in.Selector != nil {
  377. in, out := &in.Selector, &out.Selector
  378. *out = new(v1.LabelSelector)
  379. (*in).DeepCopyInto(*out)
  380. }
  381. if in.AverageValue != nil {
  382. in, out := &in.AverageValue, &out.AverageValue
  383. x := (*in).DeepCopy()
  384. *out = &x
  385. }
  386. return
  387. }
  388. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus.
  389. func (in *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus {
  390. if in == nil {
  391. return nil
  392. }
  393. out := new(ObjectMetricStatus)
  394. in.DeepCopyInto(out)
  395. return out
  396. }
  397. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  398. func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) {
  399. *out = *in
  400. out.TargetAverageValue = in.TargetAverageValue.DeepCopy()
  401. if in.Selector != nil {
  402. in, out := &in.Selector, &out.Selector
  403. *out = new(v1.LabelSelector)
  404. (*in).DeepCopyInto(*out)
  405. }
  406. return
  407. }
  408. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource.
  409. func (in *PodsMetricSource) DeepCopy() *PodsMetricSource {
  410. if in == nil {
  411. return nil
  412. }
  413. out := new(PodsMetricSource)
  414. in.DeepCopyInto(out)
  415. return out
  416. }
  417. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  418. func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) {
  419. *out = *in
  420. out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
  421. if in.Selector != nil {
  422. in, out := &in.Selector, &out.Selector
  423. *out = new(v1.LabelSelector)
  424. (*in).DeepCopyInto(*out)
  425. }
  426. return
  427. }
  428. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus.
  429. func (in *PodsMetricStatus) DeepCopy() *PodsMetricStatus {
  430. if in == nil {
  431. return nil
  432. }
  433. out := new(PodsMetricStatus)
  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 *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) {
  439. *out = *in
  440. if in.TargetAverageUtilization != nil {
  441. in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization
  442. *out = new(int32)
  443. **out = **in
  444. }
  445. if in.TargetAverageValue != nil {
  446. in, out := &in.TargetAverageValue, &out.TargetAverageValue
  447. x := (*in).DeepCopy()
  448. *out = &x
  449. }
  450. return
  451. }
  452. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource.
  453. func (in *ResourceMetricSource) DeepCopy() *ResourceMetricSource {
  454. if in == nil {
  455. return nil
  456. }
  457. out := new(ResourceMetricSource)
  458. in.DeepCopyInto(out)
  459. return out
  460. }
  461. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  462. func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) {
  463. *out = *in
  464. if in.CurrentAverageUtilization != nil {
  465. in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization
  466. *out = new(int32)
  467. **out = **in
  468. }
  469. out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
  470. return
  471. }
  472. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus.
  473. func (in *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus {
  474. if in == nil {
  475. return nil
  476. }
  477. out := new(ResourceMetricStatus)
  478. in.DeepCopyInto(out)
  479. return out
  480. }