zz_generated.deepcopy.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  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. corev1 "k8s.io/api/core/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 *CSIDriver) DeepCopyInto(out *CSIDriver) {
  22. *out = *in
  23. out.TypeMeta = in.TypeMeta
  24. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  25. in.Spec.DeepCopyInto(&out.Spec)
  26. return
  27. }
  28. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIDriver.
  29. func (in *CSIDriver) DeepCopy() *CSIDriver {
  30. if in == nil {
  31. return nil
  32. }
  33. out := new(CSIDriver)
  34. in.DeepCopyInto(out)
  35. return out
  36. }
  37. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  38. func (in *CSIDriver) DeepCopyObject() runtime.Object {
  39. if c := in.DeepCopy(); c != nil {
  40. return c
  41. }
  42. return nil
  43. }
  44. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  45. func (in *CSIDriverList) DeepCopyInto(out *CSIDriverList) {
  46. *out = *in
  47. out.TypeMeta = in.TypeMeta
  48. in.ListMeta.DeepCopyInto(&out.ListMeta)
  49. if in.Items != nil {
  50. in, out := &in.Items, &out.Items
  51. *out = make([]CSIDriver, len(*in))
  52. for i := range *in {
  53. (*in)[i].DeepCopyInto(&(*out)[i])
  54. }
  55. }
  56. return
  57. }
  58. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIDriverList.
  59. func (in *CSIDriverList) DeepCopy() *CSIDriverList {
  60. if in == nil {
  61. return nil
  62. }
  63. out := new(CSIDriverList)
  64. in.DeepCopyInto(out)
  65. return out
  66. }
  67. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  68. func (in *CSIDriverList) DeepCopyObject() runtime.Object {
  69. if c := in.DeepCopy(); c != nil {
  70. return c
  71. }
  72. return nil
  73. }
  74. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  75. func (in *CSIDriverSpec) DeepCopyInto(out *CSIDriverSpec) {
  76. *out = *in
  77. if in.AttachRequired != nil {
  78. in, out := &in.AttachRequired, &out.AttachRequired
  79. *out = new(bool)
  80. **out = **in
  81. }
  82. if in.PodInfoOnMount != nil {
  83. in, out := &in.PodInfoOnMount, &out.PodInfoOnMount
  84. *out = new(bool)
  85. **out = **in
  86. }
  87. if in.VolumeLifecycleModes != nil {
  88. in, out := &in.VolumeLifecycleModes, &out.VolumeLifecycleModes
  89. *out = make([]VolumeLifecycleMode, len(*in))
  90. copy(*out, *in)
  91. }
  92. if in.StorageCapacity != nil {
  93. in, out := &in.StorageCapacity, &out.StorageCapacity
  94. *out = new(bool)
  95. **out = **in
  96. }
  97. if in.FSGroupPolicy != nil {
  98. in, out := &in.FSGroupPolicy, &out.FSGroupPolicy
  99. *out = new(FSGroupPolicy)
  100. **out = **in
  101. }
  102. return
  103. }
  104. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIDriverSpec.
  105. func (in *CSIDriverSpec) DeepCopy() *CSIDriverSpec {
  106. if in == nil {
  107. return nil
  108. }
  109. out := new(CSIDriverSpec)
  110. in.DeepCopyInto(out)
  111. return out
  112. }
  113. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  114. func (in *CSINode) DeepCopyInto(out *CSINode) {
  115. *out = *in
  116. out.TypeMeta = in.TypeMeta
  117. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  118. in.Spec.DeepCopyInto(&out.Spec)
  119. return
  120. }
  121. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSINode.
  122. func (in *CSINode) DeepCopy() *CSINode {
  123. if in == nil {
  124. return nil
  125. }
  126. out := new(CSINode)
  127. in.DeepCopyInto(out)
  128. return out
  129. }
  130. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  131. func (in *CSINode) DeepCopyObject() runtime.Object {
  132. if c := in.DeepCopy(); c != nil {
  133. return c
  134. }
  135. return nil
  136. }
  137. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  138. func (in *CSINodeDriver) DeepCopyInto(out *CSINodeDriver) {
  139. *out = *in
  140. if in.TopologyKeys != nil {
  141. in, out := &in.TopologyKeys, &out.TopologyKeys
  142. *out = make([]string, len(*in))
  143. copy(*out, *in)
  144. }
  145. if in.Allocatable != nil {
  146. in, out := &in.Allocatable, &out.Allocatable
  147. *out = new(VolumeNodeResources)
  148. (*in).DeepCopyInto(*out)
  149. }
  150. return
  151. }
  152. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSINodeDriver.
  153. func (in *CSINodeDriver) DeepCopy() *CSINodeDriver {
  154. if in == nil {
  155. return nil
  156. }
  157. out := new(CSINodeDriver)
  158. in.DeepCopyInto(out)
  159. return out
  160. }
  161. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  162. func (in *CSINodeList) DeepCopyInto(out *CSINodeList) {
  163. *out = *in
  164. out.TypeMeta = in.TypeMeta
  165. in.ListMeta.DeepCopyInto(&out.ListMeta)
  166. if in.Items != nil {
  167. in, out := &in.Items, &out.Items
  168. *out = make([]CSINode, len(*in))
  169. for i := range *in {
  170. (*in)[i].DeepCopyInto(&(*out)[i])
  171. }
  172. }
  173. return
  174. }
  175. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSINodeList.
  176. func (in *CSINodeList) DeepCopy() *CSINodeList {
  177. if in == nil {
  178. return nil
  179. }
  180. out := new(CSINodeList)
  181. in.DeepCopyInto(out)
  182. return out
  183. }
  184. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  185. func (in *CSINodeList) DeepCopyObject() runtime.Object {
  186. if c := in.DeepCopy(); c != nil {
  187. return c
  188. }
  189. return nil
  190. }
  191. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  192. func (in *CSINodeSpec) DeepCopyInto(out *CSINodeSpec) {
  193. *out = *in
  194. if in.Drivers != nil {
  195. in, out := &in.Drivers, &out.Drivers
  196. *out = make([]CSINodeDriver, len(*in))
  197. for i := range *in {
  198. (*in)[i].DeepCopyInto(&(*out)[i])
  199. }
  200. }
  201. return
  202. }
  203. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSINodeSpec.
  204. func (in *CSINodeSpec) DeepCopy() *CSINodeSpec {
  205. if in == nil {
  206. return nil
  207. }
  208. out := new(CSINodeSpec)
  209. in.DeepCopyInto(out)
  210. return out
  211. }
  212. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  213. func (in *StorageClass) DeepCopyInto(out *StorageClass) {
  214. *out = *in
  215. out.TypeMeta = in.TypeMeta
  216. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  217. if in.Parameters != nil {
  218. in, out := &in.Parameters, &out.Parameters
  219. *out = make(map[string]string, len(*in))
  220. for key, val := range *in {
  221. (*out)[key] = val
  222. }
  223. }
  224. if in.ReclaimPolicy != nil {
  225. in, out := &in.ReclaimPolicy, &out.ReclaimPolicy
  226. *out = new(corev1.PersistentVolumeReclaimPolicy)
  227. **out = **in
  228. }
  229. if in.MountOptions != nil {
  230. in, out := &in.MountOptions, &out.MountOptions
  231. *out = make([]string, len(*in))
  232. copy(*out, *in)
  233. }
  234. if in.AllowVolumeExpansion != nil {
  235. in, out := &in.AllowVolumeExpansion, &out.AllowVolumeExpansion
  236. *out = new(bool)
  237. **out = **in
  238. }
  239. if in.VolumeBindingMode != nil {
  240. in, out := &in.VolumeBindingMode, &out.VolumeBindingMode
  241. *out = new(VolumeBindingMode)
  242. **out = **in
  243. }
  244. if in.AllowedTopologies != nil {
  245. in, out := &in.AllowedTopologies, &out.AllowedTopologies
  246. *out = make([]corev1.TopologySelectorTerm, len(*in))
  247. for i := range *in {
  248. (*in)[i].DeepCopyInto(&(*out)[i])
  249. }
  250. }
  251. return
  252. }
  253. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass.
  254. func (in *StorageClass) DeepCopy() *StorageClass {
  255. if in == nil {
  256. return nil
  257. }
  258. out := new(StorageClass)
  259. in.DeepCopyInto(out)
  260. return out
  261. }
  262. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  263. func (in *StorageClass) DeepCopyObject() runtime.Object {
  264. if c := in.DeepCopy(); c != nil {
  265. return c
  266. }
  267. return nil
  268. }
  269. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  270. func (in *StorageClassList) DeepCopyInto(out *StorageClassList) {
  271. *out = *in
  272. out.TypeMeta = in.TypeMeta
  273. in.ListMeta.DeepCopyInto(&out.ListMeta)
  274. if in.Items != nil {
  275. in, out := &in.Items, &out.Items
  276. *out = make([]StorageClass, len(*in))
  277. for i := range *in {
  278. (*in)[i].DeepCopyInto(&(*out)[i])
  279. }
  280. }
  281. return
  282. }
  283. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassList.
  284. func (in *StorageClassList) DeepCopy() *StorageClassList {
  285. if in == nil {
  286. return nil
  287. }
  288. out := new(StorageClassList)
  289. in.DeepCopyInto(out)
  290. return out
  291. }
  292. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  293. func (in *StorageClassList) DeepCopyObject() runtime.Object {
  294. if c := in.DeepCopy(); c != nil {
  295. return c
  296. }
  297. return nil
  298. }
  299. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  300. func (in *VolumeAttachment) DeepCopyInto(out *VolumeAttachment) {
  301. *out = *in
  302. out.TypeMeta = in.TypeMeta
  303. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  304. in.Spec.DeepCopyInto(&out.Spec)
  305. in.Status.DeepCopyInto(&out.Status)
  306. return
  307. }
  308. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachment.
  309. func (in *VolumeAttachment) DeepCopy() *VolumeAttachment {
  310. if in == nil {
  311. return nil
  312. }
  313. out := new(VolumeAttachment)
  314. in.DeepCopyInto(out)
  315. return out
  316. }
  317. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  318. func (in *VolumeAttachment) DeepCopyObject() runtime.Object {
  319. if c := in.DeepCopy(); c != nil {
  320. return c
  321. }
  322. return nil
  323. }
  324. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  325. func (in *VolumeAttachmentList) DeepCopyInto(out *VolumeAttachmentList) {
  326. *out = *in
  327. out.TypeMeta = in.TypeMeta
  328. in.ListMeta.DeepCopyInto(&out.ListMeta)
  329. if in.Items != nil {
  330. in, out := &in.Items, &out.Items
  331. *out = make([]VolumeAttachment, len(*in))
  332. for i := range *in {
  333. (*in)[i].DeepCopyInto(&(*out)[i])
  334. }
  335. }
  336. return
  337. }
  338. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentList.
  339. func (in *VolumeAttachmentList) DeepCopy() *VolumeAttachmentList {
  340. if in == nil {
  341. return nil
  342. }
  343. out := new(VolumeAttachmentList)
  344. in.DeepCopyInto(out)
  345. return out
  346. }
  347. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  348. func (in *VolumeAttachmentList) DeepCopyObject() runtime.Object {
  349. if c := in.DeepCopy(); c != nil {
  350. return c
  351. }
  352. return nil
  353. }
  354. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  355. func (in *VolumeAttachmentSource) DeepCopyInto(out *VolumeAttachmentSource) {
  356. *out = *in
  357. if in.PersistentVolumeName != nil {
  358. in, out := &in.PersistentVolumeName, &out.PersistentVolumeName
  359. *out = new(string)
  360. **out = **in
  361. }
  362. if in.InlineVolumeSpec != nil {
  363. in, out := &in.InlineVolumeSpec, &out.InlineVolumeSpec
  364. *out = new(corev1.PersistentVolumeSpec)
  365. (*in).DeepCopyInto(*out)
  366. }
  367. return
  368. }
  369. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSource.
  370. func (in *VolumeAttachmentSource) DeepCopy() *VolumeAttachmentSource {
  371. if in == nil {
  372. return nil
  373. }
  374. out := new(VolumeAttachmentSource)
  375. in.DeepCopyInto(out)
  376. return out
  377. }
  378. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  379. func (in *VolumeAttachmentSpec) DeepCopyInto(out *VolumeAttachmentSpec) {
  380. *out = *in
  381. in.Source.DeepCopyInto(&out.Source)
  382. return
  383. }
  384. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSpec.
  385. func (in *VolumeAttachmentSpec) DeepCopy() *VolumeAttachmentSpec {
  386. if in == nil {
  387. return nil
  388. }
  389. out := new(VolumeAttachmentSpec)
  390. in.DeepCopyInto(out)
  391. return out
  392. }
  393. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  394. func (in *VolumeAttachmentStatus) DeepCopyInto(out *VolumeAttachmentStatus) {
  395. *out = *in
  396. if in.AttachmentMetadata != nil {
  397. in, out := &in.AttachmentMetadata, &out.AttachmentMetadata
  398. *out = make(map[string]string, len(*in))
  399. for key, val := range *in {
  400. (*out)[key] = val
  401. }
  402. }
  403. if in.AttachError != nil {
  404. in, out := &in.AttachError, &out.AttachError
  405. *out = new(VolumeError)
  406. (*in).DeepCopyInto(*out)
  407. }
  408. if in.DetachError != nil {
  409. in, out := &in.DetachError, &out.DetachError
  410. *out = new(VolumeError)
  411. (*in).DeepCopyInto(*out)
  412. }
  413. return
  414. }
  415. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentStatus.
  416. func (in *VolumeAttachmentStatus) DeepCopy() *VolumeAttachmentStatus {
  417. if in == nil {
  418. return nil
  419. }
  420. out := new(VolumeAttachmentStatus)
  421. in.DeepCopyInto(out)
  422. return out
  423. }
  424. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  425. func (in *VolumeError) DeepCopyInto(out *VolumeError) {
  426. *out = *in
  427. in.Time.DeepCopyInto(&out.Time)
  428. return
  429. }
  430. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeError.
  431. func (in *VolumeError) DeepCopy() *VolumeError {
  432. if in == nil {
  433. return nil
  434. }
  435. out := new(VolumeError)
  436. in.DeepCopyInto(out)
  437. return out
  438. }
  439. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  440. func (in *VolumeNodeResources) DeepCopyInto(out *VolumeNodeResources) {
  441. *out = *in
  442. if in.Count != nil {
  443. in, out := &in.Count, &out.Count
  444. *out = new(int32)
  445. **out = **in
  446. }
  447. return
  448. }
  449. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeNodeResources.
  450. func (in *VolumeNodeResources) DeepCopy() *VolumeNodeResources {
  451. if in == nil {
  452. return nil
  453. }
  454. out := new(VolumeNodeResources)
  455. in.DeepCopyInto(out)
  456. return out
  457. }