zz_generated.deepcopy.go 16 KB

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