zz_generated.deepcopy.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  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 v1beta1
  16. import (
  17. corev1 "k8s.io/api/core/v1"
  18. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  19. runtime "k8s.io/apimachinery/pkg/runtime"
  20. intstr "k8s.io/apimachinery/pkg/util/intstr"
  21. )
  22. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  23. func (in *AllowedCSIDriver) DeepCopyInto(out *AllowedCSIDriver) {
  24. *out = *in
  25. return
  26. }
  27. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllowedCSIDriver.
  28. func (in *AllowedCSIDriver) DeepCopy() *AllowedCSIDriver {
  29. if in == nil {
  30. return nil
  31. }
  32. out := new(AllowedCSIDriver)
  33. in.DeepCopyInto(out)
  34. return out
  35. }
  36. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  37. func (in *AllowedFlexVolume) DeepCopyInto(out *AllowedFlexVolume) {
  38. *out = *in
  39. return
  40. }
  41. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllowedFlexVolume.
  42. func (in *AllowedFlexVolume) DeepCopy() *AllowedFlexVolume {
  43. if in == nil {
  44. return nil
  45. }
  46. out := new(AllowedFlexVolume)
  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 *AllowedHostPath) DeepCopyInto(out *AllowedHostPath) {
  52. *out = *in
  53. return
  54. }
  55. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllowedHostPath.
  56. func (in *AllowedHostPath) DeepCopy() *AllowedHostPath {
  57. if in == nil {
  58. return nil
  59. }
  60. out := new(AllowedHostPath)
  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 *Eviction) DeepCopyInto(out *Eviction) {
  66. *out = *in
  67. out.TypeMeta = in.TypeMeta
  68. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  69. if in.DeleteOptions != nil {
  70. in, out := &in.DeleteOptions, &out.DeleteOptions
  71. *out = new(v1.DeleteOptions)
  72. (*in).DeepCopyInto(*out)
  73. }
  74. return
  75. }
  76. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Eviction.
  77. func (in *Eviction) DeepCopy() *Eviction {
  78. if in == nil {
  79. return nil
  80. }
  81. out := new(Eviction)
  82. in.DeepCopyInto(out)
  83. return out
  84. }
  85. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  86. func (in *Eviction) DeepCopyObject() runtime.Object {
  87. if c := in.DeepCopy(); c != nil {
  88. return c
  89. }
  90. return nil
  91. }
  92. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  93. func (in *FSGroupStrategyOptions) DeepCopyInto(out *FSGroupStrategyOptions) {
  94. *out = *in
  95. if in.Ranges != nil {
  96. in, out := &in.Ranges, &out.Ranges
  97. *out = make([]IDRange, len(*in))
  98. copy(*out, *in)
  99. }
  100. return
  101. }
  102. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FSGroupStrategyOptions.
  103. func (in *FSGroupStrategyOptions) DeepCopy() *FSGroupStrategyOptions {
  104. if in == nil {
  105. return nil
  106. }
  107. out := new(FSGroupStrategyOptions)
  108. in.DeepCopyInto(out)
  109. return out
  110. }
  111. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  112. func (in *HostPortRange) DeepCopyInto(out *HostPortRange) {
  113. *out = *in
  114. return
  115. }
  116. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPortRange.
  117. func (in *HostPortRange) DeepCopy() *HostPortRange {
  118. if in == nil {
  119. return nil
  120. }
  121. out := new(HostPortRange)
  122. in.DeepCopyInto(out)
  123. return out
  124. }
  125. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  126. func (in *IDRange) DeepCopyInto(out *IDRange) {
  127. *out = *in
  128. return
  129. }
  130. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IDRange.
  131. func (in *IDRange) DeepCopy() *IDRange {
  132. if in == nil {
  133. return nil
  134. }
  135. out := new(IDRange)
  136. in.DeepCopyInto(out)
  137. return out
  138. }
  139. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  140. func (in *PodDisruptionBudget) DeepCopyInto(out *PodDisruptionBudget) {
  141. *out = *in
  142. out.TypeMeta = in.TypeMeta
  143. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  144. in.Spec.DeepCopyInto(&out.Spec)
  145. in.Status.DeepCopyInto(&out.Status)
  146. return
  147. }
  148. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudget.
  149. func (in *PodDisruptionBudget) DeepCopy() *PodDisruptionBudget {
  150. if in == nil {
  151. return nil
  152. }
  153. out := new(PodDisruptionBudget)
  154. in.DeepCopyInto(out)
  155. return out
  156. }
  157. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  158. func (in *PodDisruptionBudget) DeepCopyObject() runtime.Object {
  159. if c := in.DeepCopy(); c != nil {
  160. return c
  161. }
  162. return nil
  163. }
  164. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  165. func (in *PodDisruptionBudgetList) DeepCopyInto(out *PodDisruptionBudgetList) {
  166. *out = *in
  167. out.TypeMeta = in.TypeMeta
  168. in.ListMeta.DeepCopyInto(&out.ListMeta)
  169. if in.Items != nil {
  170. in, out := &in.Items, &out.Items
  171. *out = make([]PodDisruptionBudget, len(*in))
  172. for i := range *in {
  173. (*in)[i].DeepCopyInto(&(*out)[i])
  174. }
  175. }
  176. return
  177. }
  178. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetList.
  179. func (in *PodDisruptionBudgetList) DeepCopy() *PodDisruptionBudgetList {
  180. if in == nil {
  181. return nil
  182. }
  183. out := new(PodDisruptionBudgetList)
  184. in.DeepCopyInto(out)
  185. return out
  186. }
  187. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  188. func (in *PodDisruptionBudgetList) DeepCopyObject() runtime.Object {
  189. if c := in.DeepCopy(); c != nil {
  190. return c
  191. }
  192. return nil
  193. }
  194. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  195. func (in *PodDisruptionBudgetSpec) DeepCopyInto(out *PodDisruptionBudgetSpec) {
  196. *out = *in
  197. if in.MinAvailable != nil {
  198. in, out := &in.MinAvailable, &out.MinAvailable
  199. *out = new(intstr.IntOrString)
  200. **out = **in
  201. }
  202. if in.Selector != nil {
  203. in, out := &in.Selector, &out.Selector
  204. *out = new(v1.LabelSelector)
  205. (*in).DeepCopyInto(*out)
  206. }
  207. if in.MaxUnavailable != nil {
  208. in, out := &in.MaxUnavailable, &out.MaxUnavailable
  209. *out = new(intstr.IntOrString)
  210. **out = **in
  211. }
  212. return
  213. }
  214. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetSpec.
  215. func (in *PodDisruptionBudgetSpec) DeepCopy() *PodDisruptionBudgetSpec {
  216. if in == nil {
  217. return nil
  218. }
  219. out := new(PodDisruptionBudgetSpec)
  220. in.DeepCopyInto(out)
  221. return out
  222. }
  223. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  224. func (in *PodDisruptionBudgetStatus) DeepCopyInto(out *PodDisruptionBudgetStatus) {
  225. *out = *in
  226. if in.DisruptedPods != nil {
  227. in, out := &in.DisruptedPods, &out.DisruptedPods
  228. *out = make(map[string]v1.Time, len(*in))
  229. for key, val := range *in {
  230. (*out)[key] = *val.DeepCopy()
  231. }
  232. }
  233. return
  234. }
  235. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetStatus.
  236. func (in *PodDisruptionBudgetStatus) DeepCopy() *PodDisruptionBudgetStatus {
  237. if in == nil {
  238. return nil
  239. }
  240. out := new(PodDisruptionBudgetStatus)
  241. in.DeepCopyInto(out)
  242. return out
  243. }
  244. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  245. func (in *PodSecurityPolicy) DeepCopyInto(out *PodSecurityPolicy) {
  246. *out = *in
  247. out.TypeMeta = in.TypeMeta
  248. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  249. in.Spec.DeepCopyInto(&out.Spec)
  250. return
  251. }
  252. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicy.
  253. func (in *PodSecurityPolicy) DeepCopy() *PodSecurityPolicy {
  254. if in == nil {
  255. return nil
  256. }
  257. out := new(PodSecurityPolicy)
  258. in.DeepCopyInto(out)
  259. return out
  260. }
  261. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  262. func (in *PodSecurityPolicy) DeepCopyObject() runtime.Object {
  263. if c := in.DeepCopy(); c != nil {
  264. return c
  265. }
  266. return nil
  267. }
  268. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  269. func (in *PodSecurityPolicyList) DeepCopyInto(out *PodSecurityPolicyList) {
  270. *out = *in
  271. out.TypeMeta = in.TypeMeta
  272. in.ListMeta.DeepCopyInto(&out.ListMeta)
  273. if in.Items != nil {
  274. in, out := &in.Items, &out.Items
  275. *out = make([]PodSecurityPolicy, len(*in))
  276. for i := range *in {
  277. (*in)[i].DeepCopyInto(&(*out)[i])
  278. }
  279. }
  280. return
  281. }
  282. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicyList.
  283. func (in *PodSecurityPolicyList) DeepCopy() *PodSecurityPolicyList {
  284. if in == nil {
  285. return nil
  286. }
  287. out := new(PodSecurityPolicyList)
  288. in.DeepCopyInto(out)
  289. return out
  290. }
  291. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  292. func (in *PodSecurityPolicyList) DeepCopyObject() runtime.Object {
  293. if c := in.DeepCopy(); c != nil {
  294. return c
  295. }
  296. return nil
  297. }
  298. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  299. func (in *PodSecurityPolicySpec) DeepCopyInto(out *PodSecurityPolicySpec) {
  300. *out = *in
  301. if in.DefaultAddCapabilities != nil {
  302. in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities
  303. *out = make([]corev1.Capability, len(*in))
  304. copy(*out, *in)
  305. }
  306. if in.RequiredDropCapabilities != nil {
  307. in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities
  308. *out = make([]corev1.Capability, len(*in))
  309. copy(*out, *in)
  310. }
  311. if in.AllowedCapabilities != nil {
  312. in, out := &in.AllowedCapabilities, &out.AllowedCapabilities
  313. *out = make([]corev1.Capability, len(*in))
  314. copy(*out, *in)
  315. }
  316. if in.Volumes != nil {
  317. in, out := &in.Volumes, &out.Volumes
  318. *out = make([]FSType, len(*in))
  319. copy(*out, *in)
  320. }
  321. if in.HostPorts != nil {
  322. in, out := &in.HostPorts, &out.HostPorts
  323. *out = make([]HostPortRange, len(*in))
  324. copy(*out, *in)
  325. }
  326. in.SELinux.DeepCopyInto(&out.SELinux)
  327. in.RunAsUser.DeepCopyInto(&out.RunAsUser)
  328. if in.RunAsGroup != nil {
  329. in, out := &in.RunAsGroup, &out.RunAsGroup
  330. *out = new(RunAsGroupStrategyOptions)
  331. (*in).DeepCopyInto(*out)
  332. }
  333. in.SupplementalGroups.DeepCopyInto(&out.SupplementalGroups)
  334. in.FSGroup.DeepCopyInto(&out.FSGroup)
  335. if in.DefaultAllowPrivilegeEscalation != nil {
  336. in, out := &in.DefaultAllowPrivilegeEscalation, &out.DefaultAllowPrivilegeEscalation
  337. *out = new(bool)
  338. **out = **in
  339. }
  340. if in.AllowPrivilegeEscalation != nil {
  341. in, out := &in.AllowPrivilegeEscalation, &out.AllowPrivilegeEscalation
  342. *out = new(bool)
  343. **out = **in
  344. }
  345. if in.AllowedHostPaths != nil {
  346. in, out := &in.AllowedHostPaths, &out.AllowedHostPaths
  347. *out = make([]AllowedHostPath, len(*in))
  348. copy(*out, *in)
  349. }
  350. if in.AllowedFlexVolumes != nil {
  351. in, out := &in.AllowedFlexVolumes, &out.AllowedFlexVolumes
  352. *out = make([]AllowedFlexVolume, len(*in))
  353. copy(*out, *in)
  354. }
  355. if in.AllowedCSIDrivers != nil {
  356. in, out := &in.AllowedCSIDrivers, &out.AllowedCSIDrivers
  357. *out = make([]AllowedCSIDriver, len(*in))
  358. copy(*out, *in)
  359. }
  360. if in.AllowedUnsafeSysctls != nil {
  361. in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls
  362. *out = make([]string, len(*in))
  363. copy(*out, *in)
  364. }
  365. if in.ForbiddenSysctls != nil {
  366. in, out := &in.ForbiddenSysctls, &out.ForbiddenSysctls
  367. *out = make([]string, len(*in))
  368. copy(*out, *in)
  369. }
  370. if in.AllowedProcMountTypes != nil {
  371. in, out := &in.AllowedProcMountTypes, &out.AllowedProcMountTypes
  372. *out = make([]corev1.ProcMountType, len(*in))
  373. copy(*out, *in)
  374. }
  375. if in.RuntimeClass != nil {
  376. in, out := &in.RuntimeClass, &out.RuntimeClass
  377. *out = new(RuntimeClassStrategyOptions)
  378. (*in).DeepCopyInto(*out)
  379. }
  380. return
  381. }
  382. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicySpec.
  383. func (in *PodSecurityPolicySpec) DeepCopy() *PodSecurityPolicySpec {
  384. if in == nil {
  385. return nil
  386. }
  387. out := new(PodSecurityPolicySpec)
  388. in.DeepCopyInto(out)
  389. return out
  390. }
  391. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  392. func (in *RunAsGroupStrategyOptions) DeepCopyInto(out *RunAsGroupStrategyOptions) {
  393. *out = *in
  394. if in.Ranges != nil {
  395. in, out := &in.Ranges, &out.Ranges
  396. *out = make([]IDRange, len(*in))
  397. copy(*out, *in)
  398. }
  399. return
  400. }
  401. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunAsGroupStrategyOptions.
  402. func (in *RunAsGroupStrategyOptions) DeepCopy() *RunAsGroupStrategyOptions {
  403. if in == nil {
  404. return nil
  405. }
  406. out := new(RunAsGroupStrategyOptions)
  407. in.DeepCopyInto(out)
  408. return out
  409. }
  410. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  411. func (in *RunAsUserStrategyOptions) DeepCopyInto(out *RunAsUserStrategyOptions) {
  412. *out = *in
  413. if in.Ranges != nil {
  414. in, out := &in.Ranges, &out.Ranges
  415. *out = make([]IDRange, len(*in))
  416. copy(*out, *in)
  417. }
  418. return
  419. }
  420. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunAsUserStrategyOptions.
  421. func (in *RunAsUserStrategyOptions) DeepCopy() *RunAsUserStrategyOptions {
  422. if in == nil {
  423. return nil
  424. }
  425. out := new(RunAsUserStrategyOptions)
  426. in.DeepCopyInto(out)
  427. return out
  428. }
  429. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  430. func (in *RuntimeClassStrategyOptions) DeepCopyInto(out *RuntimeClassStrategyOptions) {
  431. *out = *in
  432. if in.AllowedRuntimeClassNames != nil {
  433. in, out := &in.AllowedRuntimeClassNames, &out.AllowedRuntimeClassNames
  434. *out = make([]string, len(*in))
  435. copy(*out, *in)
  436. }
  437. if in.DefaultRuntimeClassName != nil {
  438. in, out := &in.DefaultRuntimeClassName, &out.DefaultRuntimeClassName
  439. *out = new(string)
  440. **out = **in
  441. }
  442. return
  443. }
  444. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassStrategyOptions.
  445. func (in *RuntimeClassStrategyOptions) DeepCopy() *RuntimeClassStrategyOptions {
  446. if in == nil {
  447. return nil
  448. }
  449. out := new(RuntimeClassStrategyOptions)
  450. in.DeepCopyInto(out)
  451. return out
  452. }
  453. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  454. func (in *SELinuxStrategyOptions) DeepCopyInto(out *SELinuxStrategyOptions) {
  455. *out = *in
  456. if in.SELinuxOptions != nil {
  457. in, out := &in.SELinuxOptions, &out.SELinuxOptions
  458. *out = new(corev1.SELinuxOptions)
  459. **out = **in
  460. }
  461. return
  462. }
  463. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SELinuxStrategyOptions.
  464. func (in *SELinuxStrategyOptions) DeepCopy() *SELinuxStrategyOptions {
  465. if in == nil {
  466. return nil
  467. }
  468. out := new(SELinuxStrategyOptions)
  469. in.DeepCopyInto(out)
  470. return out
  471. }
  472. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  473. func (in *SupplementalGroupsStrategyOptions) DeepCopyInto(out *SupplementalGroupsStrategyOptions) {
  474. *out = *in
  475. if in.Ranges != nil {
  476. in, out := &in.Ranges, &out.Ranges
  477. *out = make([]IDRange, len(*in))
  478. copy(*out, *in)
  479. }
  480. return
  481. }
  482. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupplementalGroupsStrategyOptions.
  483. func (in *SupplementalGroupsStrategyOptions) DeepCopy() *SupplementalGroupsStrategyOptions {
  484. if in == nil {
  485. return nil
  486. }
  487. out := new(SupplementalGroupsStrategyOptions)
  488. in.DeepCopyInto(out)
  489. return out
  490. }