zz_generated.deepcopy.go 15 KB

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