zz_generated.deepcopy.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  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. if in.UnhealthyPodEvictionPolicy != nil {
  214. in, out := &in.UnhealthyPodEvictionPolicy, &out.UnhealthyPodEvictionPolicy
  215. *out = new(UnhealthyPodEvictionPolicyType)
  216. **out = **in
  217. }
  218. return
  219. }
  220. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetSpec.
  221. func (in *PodDisruptionBudgetSpec) DeepCopy() *PodDisruptionBudgetSpec {
  222. if in == nil {
  223. return nil
  224. }
  225. out := new(PodDisruptionBudgetSpec)
  226. in.DeepCopyInto(out)
  227. return out
  228. }
  229. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  230. func (in *PodDisruptionBudgetStatus) DeepCopyInto(out *PodDisruptionBudgetStatus) {
  231. *out = *in
  232. if in.DisruptedPods != nil {
  233. in, out := &in.DisruptedPods, &out.DisruptedPods
  234. *out = make(map[string]v1.Time, len(*in))
  235. for key, val := range *in {
  236. (*out)[key] = *val.DeepCopy()
  237. }
  238. }
  239. if in.Conditions != nil {
  240. in, out := &in.Conditions, &out.Conditions
  241. *out = make([]v1.Condition, len(*in))
  242. for i := range *in {
  243. (*in)[i].DeepCopyInto(&(*out)[i])
  244. }
  245. }
  246. return
  247. }
  248. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetStatus.
  249. func (in *PodDisruptionBudgetStatus) DeepCopy() *PodDisruptionBudgetStatus {
  250. if in == nil {
  251. return nil
  252. }
  253. out := new(PodDisruptionBudgetStatus)
  254. in.DeepCopyInto(out)
  255. return out
  256. }
  257. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  258. func (in *PodSecurityPolicy) DeepCopyInto(out *PodSecurityPolicy) {
  259. *out = *in
  260. out.TypeMeta = in.TypeMeta
  261. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  262. in.Spec.DeepCopyInto(&out.Spec)
  263. return
  264. }
  265. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicy.
  266. func (in *PodSecurityPolicy) DeepCopy() *PodSecurityPolicy {
  267. if in == nil {
  268. return nil
  269. }
  270. out := new(PodSecurityPolicy)
  271. in.DeepCopyInto(out)
  272. return out
  273. }
  274. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  275. func (in *PodSecurityPolicy) DeepCopyObject() runtime.Object {
  276. if c := in.DeepCopy(); c != nil {
  277. return c
  278. }
  279. return nil
  280. }
  281. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  282. func (in *PodSecurityPolicyList) DeepCopyInto(out *PodSecurityPolicyList) {
  283. *out = *in
  284. out.TypeMeta = in.TypeMeta
  285. in.ListMeta.DeepCopyInto(&out.ListMeta)
  286. if in.Items != nil {
  287. in, out := &in.Items, &out.Items
  288. *out = make([]PodSecurityPolicy, len(*in))
  289. for i := range *in {
  290. (*in)[i].DeepCopyInto(&(*out)[i])
  291. }
  292. }
  293. return
  294. }
  295. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicyList.
  296. func (in *PodSecurityPolicyList) DeepCopy() *PodSecurityPolicyList {
  297. if in == nil {
  298. return nil
  299. }
  300. out := new(PodSecurityPolicyList)
  301. in.DeepCopyInto(out)
  302. return out
  303. }
  304. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  305. func (in *PodSecurityPolicyList) DeepCopyObject() runtime.Object {
  306. if c := in.DeepCopy(); c != nil {
  307. return c
  308. }
  309. return nil
  310. }
  311. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  312. func (in *PodSecurityPolicySpec) DeepCopyInto(out *PodSecurityPolicySpec) {
  313. *out = *in
  314. if in.DefaultAddCapabilities != nil {
  315. in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities
  316. *out = make([]corev1.Capability, len(*in))
  317. copy(*out, *in)
  318. }
  319. if in.RequiredDropCapabilities != nil {
  320. in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities
  321. *out = make([]corev1.Capability, len(*in))
  322. copy(*out, *in)
  323. }
  324. if in.AllowedCapabilities != nil {
  325. in, out := &in.AllowedCapabilities, &out.AllowedCapabilities
  326. *out = make([]corev1.Capability, len(*in))
  327. copy(*out, *in)
  328. }
  329. if in.Volumes != nil {
  330. in, out := &in.Volumes, &out.Volumes
  331. *out = make([]FSType, len(*in))
  332. copy(*out, *in)
  333. }
  334. if in.HostPorts != nil {
  335. in, out := &in.HostPorts, &out.HostPorts
  336. *out = make([]HostPortRange, len(*in))
  337. copy(*out, *in)
  338. }
  339. in.SELinux.DeepCopyInto(&out.SELinux)
  340. in.RunAsUser.DeepCopyInto(&out.RunAsUser)
  341. if in.RunAsGroup != nil {
  342. in, out := &in.RunAsGroup, &out.RunAsGroup
  343. *out = new(RunAsGroupStrategyOptions)
  344. (*in).DeepCopyInto(*out)
  345. }
  346. in.SupplementalGroups.DeepCopyInto(&out.SupplementalGroups)
  347. in.FSGroup.DeepCopyInto(&out.FSGroup)
  348. if in.DefaultAllowPrivilegeEscalation != nil {
  349. in, out := &in.DefaultAllowPrivilegeEscalation, &out.DefaultAllowPrivilegeEscalation
  350. *out = new(bool)
  351. **out = **in
  352. }
  353. if in.AllowPrivilegeEscalation != nil {
  354. in, out := &in.AllowPrivilegeEscalation, &out.AllowPrivilegeEscalation
  355. *out = new(bool)
  356. **out = **in
  357. }
  358. if in.AllowedHostPaths != nil {
  359. in, out := &in.AllowedHostPaths, &out.AllowedHostPaths
  360. *out = make([]AllowedHostPath, len(*in))
  361. copy(*out, *in)
  362. }
  363. if in.AllowedFlexVolumes != nil {
  364. in, out := &in.AllowedFlexVolumes, &out.AllowedFlexVolumes
  365. *out = make([]AllowedFlexVolume, len(*in))
  366. copy(*out, *in)
  367. }
  368. if in.AllowedCSIDrivers != nil {
  369. in, out := &in.AllowedCSIDrivers, &out.AllowedCSIDrivers
  370. *out = make([]AllowedCSIDriver, len(*in))
  371. copy(*out, *in)
  372. }
  373. if in.AllowedUnsafeSysctls != nil {
  374. in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls
  375. *out = make([]string, len(*in))
  376. copy(*out, *in)
  377. }
  378. if in.ForbiddenSysctls != nil {
  379. in, out := &in.ForbiddenSysctls, &out.ForbiddenSysctls
  380. *out = make([]string, len(*in))
  381. copy(*out, *in)
  382. }
  383. if in.AllowedProcMountTypes != nil {
  384. in, out := &in.AllowedProcMountTypes, &out.AllowedProcMountTypes
  385. *out = make([]corev1.ProcMountType, len(*in))
  386. copy(*out, *in)
  387. }
  388. if in.RuntimeClass != nil {
  389. in, out := &in.RuntimeClass, &out.RuntimeClass
  390. *out = new(RuntimeClassStrategyOptions)
  391. (*in).DeepCopyInto(*out)
  392. }
  393. return
  394. }
  395. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicySpec.
  396. func (in *PodSecurityPolicySpec) DeepCopy() *PodSecurityPolicySpec {
  397. if in == nil {
  398. return nil
  399. }
  400. out := new(PodSecurityPolicySpec)
  401. in.DeepCopyInto(out)
  402. return out
  403. }
  404. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  405. func (in *RunAsGroupStrategyOptions) DeepCopyInto(out *RunAsGroupStrategyOptions) {
  406. *out = *in
  407. if in.Ranges != nil {
  408. in, out := &in.Ranges, &out.Ranges
  409. *out = make([]IDRange, len(*in))
  410. copy(*out, *in)
  411. }
  412. return
  413. }
  414. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunAsGroupStrategyOptions.
  415. func (in *RunAsGroupStrategyOptions) DeepCopy() *RunAsGroupStrategyOptions {
  416. if in == nil {
  417. return nil
  418. }
  419. out := new(RunAsGroupStrategyOptions)
  420. in.DeepCopyInto(out)
  421. return out
  422. }
  423. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  424. func (in *RunAsUserStrategyOptions) DeepCopyInto(out *RunAsUserStrategyOptions) {
  425. *out = *in
  426. if in.Ranges != nil {
  427. in, out := &in.Ranges, &out.Ranges
  428. *out = make([]IDRange, len(*in))
  429. copy(*out, *in)
  430. }
  431. return
  432. }
  433. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunAsUserStrategyOptions.
  434. func (in *RunAsUserStrategyOptions) DeepCopy() *RunAsUserStrategyOptions {
  435. if in == nil {
  436. return nil
  437. }
  438. out := new(RunAsUserStrategyOptions)
  439. in.DeepCopyInto(out)
  440. return out
  441. }
  442. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  443. func (in *RuntimeClassStrategyOptions) DeepCopyInto(out *RuntimeClassStrategyOptions) {
  444. *out = *in
  445. if in.AllowedRuntimeClassNames != nil {
  446. in, out := &in.AllowedRuntimeClassNames, &out.AllowedRuntimeClassNames
  447. *out = make([]string, len(*in))
  448. copy(*out, *in)
  449. }
  450. if in.DefaultRuntimeClassName != nil {
  451. in, out := &in.DefaultRuntimeClassName, &out.DefaultRuntimeClassName
  452. *out = new(string)
  453. **out = **in
  454. }
  455. return
  456. }
  457. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassStrategyOptions.
  458. func (in *RuntimeClassStrategyOptions) DeepCopy() *RuntimeClassStrategyOptions {
  459. if in == nil {
  460. return nil
  461. }
  462. out := new(RuntimeClassStrategyOptions)
  463. in.DeepCopyInto(out)
  464. return out
  465. }
  466. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  467. func (in *SELinuxStrategyOptions) DeepCopyInto(out *SELinuxStrategyOptions) {
  468. *out = *in
  469. if in.SELinuxOptions != nil {
  470. in, out := &in.SELinuxOptions, &out.SELinuxOptions
  471. *out = new(corev1.SELinuxOptions)
  472. **out = **in
  473. }
  474. return
  475. }
  476. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SELinuxStrategyOptions.
  477. func (in *SELinuxStrategyOptions) DeepCopy() *SELinuxStrategyOptions {
  478. if in == nil {
  479. return nil
  480. }
  481. out := new(SELinuxStrategyOptions)
  482. in.DeepCopyInto(out)
  483. return out
  484. }
  485. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  486. func (in *SupplementalGroupsStrategyOptions) DeepCopyInto(out *SupplementalGroupsStrategyOptions) {
  487. *out = *in
  488. if in.Ranges != nil {
  489. in, out := &in.Ranges, &out.Ranges
  490. *out = make([]IDRange, len(*in))
  491. copy(*out, *in)
  492. }
  493. return
  494. }
  495. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupplementalGroupsStrategyOptions.
  496. func (in *SupplementalGroupsStrategyOptions) DeepCopy() *SupplementalGroupsStrategyOptions {
  497. if in == nil {
  498. return nil
  499. }
  500. out := new(SupplementalGroupsStrategyOptions)
  501. in.DeepCopyInto(out)
  502. return out
  503. }