zz_generated.deepcopy.go 15 KB

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