zz_generated.deepcopy.go 16 KB

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