zz_generated.deepcopy.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  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 v1alpha1
  17. import (
  18. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  19. runtime "k8s.io/apimachinery/pkg/runtime"
  20. )
  21. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  22. func (in *AuditAnnotation) DeepCopyInto(out *AuditAnnotation) {
  23. *out = *in
  24. return
  25. }
  26. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditAnnotation.
  27. func (in *AuditAnnotation) DeepCopy() *AuditAnnotation {
  28. if in == nil {
  29. return nil
  30. }
  31. out := new(AuditAnnotation)
  32. in.DeepCopyInto(out)
  33. return out
  34. }
  35. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  36. func (in *ExpressionWarning) DeepCopyInto(out *ExpressionWarning) {
  37. *out = *in
  38. return
  39. }
  40. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExpressionWarning.
  41. func (in *ExpressionWarning) DeepCopy() *ExpressionWarning {
  42. if in == nil {
  43. return nil
  44. }
  45. out := new(ExpressionWarning)
  46. in.DeepCopyInto(out)
  47. return out
  48. }
  49. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  50. func (in *MatchCondition) DeepCopyInto(out *MatchCondition) {
  51. *out = *in
  52. return
  53. }
  54. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchCondition.
  55. func (in *MatchCondition) DeepCopy() *MatchCondition {
  56. if in == nil {
  57. return nil
  58. }
  59. out := new(MatchCondition)
  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 *MatchResources) DeepCopyInto(out *MatchResources) {
  65. *out = *in
  66. if in.NamespaceSelector != nil {
  67. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  68. *out = new(v1.LabelSelector)
  69. (*in).DeepCopyInto(*out)
  70. }
  71. if in.ObjectSelector != nil {
  72. in, out := &in.ObjectSelector, &out.ObjectSelector
  73. *out = new(v1.LabelSelector)
  74. (*in).DeepCopyInto(*out)
  75. }
  76. if in.ResourceRules != nil {
  77. in, out := &in.ResourceRules, &out.ResourceRules
  78. *out = make([]NamedRuleWithOperations, len(*in))
  79. for i := range *in {
  80. (*in)[i].DeepCopyInto(&(*out)[i])
  81. }
  82. }
  83. if in.ExcludeResourceRules != nil {
  84. in, out := &in.ExcludeResourceRules, &out.ExcludeResourceRules
  85. *out = make([]NamedRuleWithOperations, len(*in))
  86. for i := range *in {
  87. (*in)[i].DeepCopyInto(&(*out)[i])
  88. }
  89. }
  90. if in.MatchPolicy != nil {
  91. in, out := &in.MatchPolicy, &out.MatchPolicy
  92. *out = new(MatchPolicyType)
  93. **out = **in
  94. }
  95. return
  96. }
  97. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchResources.
  98. func (in *MatchResources) DeepCopy() *MatchResources {
  99. if in == nil {
  100. return nil
  101. }
  102. out := new(MatchResources)
  103. in.DeepCopyInto(out)
  104. return out
  105. }
  106. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  107. func (in *NamedRuleWithOperations) DeepCopyInto(out *NamedRuleWithOperations) {
  108. *out = *in
  109. if in.ResourceNames != nil {
  110. in, out := &in.ResourceNames, &out.ResourceNames
  111. *out = make([]string, len(*in))
  112. copy(*out, *in)
  113. }
  114. in.RuleWithOperations.DeepCopyInto(&out.RuleWithOperations)
  115. return
  116. }
  117. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedRuleWithOperations.
  118. func (in *NamedRuleWithOperations) DeepCopy() *NamedRuleWithOperations {
  119. if in == nil {
  120. return nil
  121. }
  122. out := new(NamedRuleWithOperations)
  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 *ParamKind) DeepCopyInto(out *ParamKind) {
  128. *out = *in
  129. return
  130. }
  131. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamKind.
  132. func (in *ParamKind) DeepCopy() *ParamKind {
  133. if in == nil {
  134. return nil
  135. }
  136. out := new(ParamKind)
  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 *ParamRef) DeepCopyInto(out *ParamRef) {
  142. *out = *in
  143. if in.Selector != nil {
  144. in, out := &in.Selector, &out.Selector
  145. *out = new(v1.LabelSelector)
  146. (*in).DeepCopyInto(*out)
  147. }
  148. if in.ParameterNotFoundAction != nil {
  149. in, out := &in.ParameterNotFoundAction, &out.ParameterNotFoundAction
  150. *out = new(ParameterNotFoundActionType)
  151. **out = **in
  152. }
  153. return
  154. }
  155. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamRef.
  156. func (in *ParamRef) DeepCopy() *ParamRef {
  157. if in == nil {
  158. return nil
  159. }
  160. out := new(ParamRef)
  161. in.DeepCopyInto(out)
  162. return out
  163. }
  164. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  165. func (in *TypeChecking) DeepCopyInto(out *TypeChecking) {
  166. *out = *in
  167. if in.ExpressionWarnings != nil {
  168. in, out := &in.ExpressionWarnings, &out.ExpressionWarnings
  169. *out = make([]ExpressionWarning, len(*in))
  170. copy(*out, *in)
  171. }
  172. return
  173. }
  174. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypeChecking.
  175. func (in *TypeChecking) DeepCopy() *TypeChecking {
  176. if in == nil {
  177. return nil
  178. }
  179. out := new(TypeChecking)
  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 *ValidatingAdmissionPolicy) DeepCopyInto(out *ValidatingAdmissionPolicy) {
  185. *out = *in
  186. out.TypeMeta = in.TypeMeta
  187. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  188. in.Spec.DeepCopyInto(&out.Spec)
  189. in.Status.DeepCopyInto(&out.Status)
  190. return
  191. }
  192. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicy.
  193. func (in *ValidatingAdmissionPolicy) DeepCopy() *ValidatingAdmissionPolicy {
  194. if in == nil {
  195. return nil
  196. }
  197. out := new(ValidatingAdmissionPolicy)
  198. in.DeepCopyInto(out)
  199. return out
  200. }
  201. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  202. func (in *ValidatingAdmissionPolicy) DeepCopyObject() runtime.Object {
  203. if c := in.DeepCopy(); c != nil {
  204. return c
  205. }
  206. return nil
  207. }
  208. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  209. func (in *ValidatingAdmissionPolicyBinding) DeepCopyInto(out *ValidatingAdmissionPolicyBinding) {
  210. *out = *in
  211. out.TypeMeta = in.TypeMeta
  212. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  213. in.Spec.DeepCopyInto(&out.Spec)
  214. return
  215. }
  216. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBinding.
  217. func (in *ValidatingAdmissionPolicyBinding) DeepCopy() *ValidatingAdmissionPolicyBinding {
  218. if in == nil {
  219. return nil
  220. }
  221. out := new(ValidatingAdmissionPolicyBinding)
  222. in.DeepCopyInto(out)
  223. return out
  224. }
  225. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  226. func (in *ValidatingAdmissionPolicyBinding) DeepCopyObject() runtime.Object {
  227. if c := in.DeepCopy(); c != nil {
  228. return c
  229. }
  230. return nil
  231. }
  232. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  233. func (in *ValidatingAdmissionPolicyBindingList) DeepCopyInto(out *ValidatingAdmissionPolicyBindingList) {
  234. *out = *in
  235. out.TypeMeta = in.TypeMeta
  236. in.ListMeta.DeepCopyInto(&out.ListMeta)
  237. if in.Items != nil {
  238. in, out := &in.Items, &out.Items
  239. *out = make([]ValidatingAdmissionPolicyBinding, len(*in))
  240. for i := range *in {
  241. (*in)[i].DeepCopyInto(&(*out)[i])
  242. }
  243. }
  244. return
  245. }
  246. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBindingList.
  247. func (in *ValidatingAdmissionPolicyBindingList) DeepCopy() *ValidatingAdmissionPolicyBindingList {
  248. if in == nil {
  249. return nil
  250. }
  251. out := new(ValidatingAdmissionPolicyBindingList)
  252. in.DeepCopyInto(out)
  253. return out
  254. }
  255. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  256. func (in *ValidatingAdmissionPolicyBindingList) DeepCopyObject() runtime.Object {
  257. if c := in.DeepCopy(); c != nil {
  258. return c
  259. }
  260. return nil
  261. }
  262. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  263. func (in *ValidatingAdmissionPolicyBindingSpec) DeepCopyInto(out *ValidatingAdmissionPolicyBindingSpec) {
  264. *out = *in
  265. if in.ParamRef != nil {
  266. in, out := &in.ParamRef, &out.ParamRef
  267. *out = new(ParamRef)
  268. (*in).DeepCopyInto(*out)
  269. }
  270. if in.MatchResources != nil {
  271. in, out := &in.MatchResources, &out.MatchResources
  272. *out = new(MatchResources)
  273. (*in).DeepCopyInto(*out)
  274. }
  275. if in.ValidationActions != nil {
  276. in, out := &in.ValidationActions, &out.ValidationActions
  277. *out = make([]ValidationAction, len(*in))
  278. copy(*out, *in)
  279. }
  280. return
  281. }
  282. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBindingSpec.
  283. func (in *ValidatingAdmissionPolicyBindingSpec) DeepCopy() *ValidatingAdmissionPolicyBindingSpec {
  284. if in == nil {
  285. return nil
  286. }
  287. out := new(ValidatingAdmissionPolicyBindingSpec)
  288. in.DeepCopyInto(out)
  289. return out
  290. }
  291. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  292. func (in *ValidatingAdmissionPolicyList) DeepCopyInto(out *ValidatingAdmissionPolicyList) {
  293. *out = *in
  294. out.TypeMeta = in.TypeMeta
  295. in.ListMeta.DeepCopyInto(&out.ListMeta)
  296. if in.Items != nil {
  297. in, out := &in.Items, &out.Items
  298. *out = make([]ValidatingAdmissionPolicy, len(*in))
  299. for i := range *in {
  300. (*in)[i].DeepCopyInto(&(*out)[i])
  301. }
  302. }
  303. return
  304. }
  305. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyList.
  306. func (in *ValidatingAdmissionPolicyList) DeepCopy() *ValidatingAdmissionPolicyList {
  307. if in == nil {
  308. return nil
  309. }
  310. out := new(ValidatingAdmissionPolicyList)
  311. in.DeepCopyInto(out)
  312. return out
  313. }
  314. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  315. func (in *ValidatingAdmissionPolicyList) DeepCopyObject() runtime.Object {
  316. if c := in.DeepCopy(); c != nil {
  317. return c
  318. }
  319. return nil
  320. }
  321. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  322. func (in *ValidatingAdmissionPolicySpec) DeepCopyInto(out *ValidatingAdmissionPolicySpec) {
  323. *out = *in
  324. if in.ParamKind != nil {
  325. in, out := &in.ParamKind, &out.ParamKind
  326. *out = new(ParamKind)
  327. **out = **in
  328. }
  329. if in.MatchConstraints != nil {
  330. in, out := &in.MatchConstraints, &out.MatchConstraints
  331. *out = new(MatchResources)
  332. (*in).DeepCopyInto(*out)
  333. }
  334. if in.Validations != nil {
  335. in, out := &in.Validations, &out.Validations
  336. *out = make([]Validation, len(*in))
  337. for i := range *in {
  338. (*in)[i].DeepCopyInto(&(*out)[i])
  339. }
  340. }
  341. if in.FailurePolicy != nil {
  342. in, out := &in.FailurePolicy, &out.FailurePolicy
  343. *out = new(FailurePolicyType)
  344. **out = **in
  345. }
  346. if in.AuditAnnotations != nil {
  347. in, out := &in.AuditAnnotations, &out.AuditAnnotations
  348. *out = make([]AuditAnnotation, len(*in))
  349. copy(*out, *in)
  350. }
  351. if in.MatchConditions != nil {
  352. in, out := &in.MatchConditions, &out.MatchConditions
  353. *out = make([]MatchCondition, len(*in))
  354. copy(*out, *in)
  355. }
  356. if in.Variables != nil {
  357. in, out := &in.Variables, &out.Variables
  358. *out = make([]Variable, len(*in))
  359. copy(*out, *in)
  360. }
  361. return
  362. }
  363. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicySpec.
  364. func (in *ValidatingAdmissionPolicySpec) DeepCopy() *ValidatingAdmissionPolicySpec {
  365. if in == nil {
  366. return nil
  367. }
  368. out := new(ValidatingAdmissionPolicySpec)
  369. in.DeepCopyInto(out)
  370. return out
  371. }
  372. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  373. func (in *ValidatingAdmissionPolicyStatus) DeepCopyInto(out *ValidatingAdmissionPolicyStatus) {
  374. *out = *in
  375. if in.TypeChecking != nil {
  376. in, out := &in.TypeChecking, &out.TypeChecking
  377. *out = new(TypeChecking)
  378. (*in).DeepCopyInto(*out)
  379. }
  380. if in.Conditions != nil {
  381. in, out := &in.Conditions, &out.Conditions
  382. *out = make([]v1.Condition, len(*in))
  383. for i := range *in {
  384. (*in)[i].DeepCopyInto(&(*out)[i])
  385. }
  386. }
  387. return
  388. }
  389. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyStatus.
  390. func (in *ValidatingAdmissionPolicyStatus) DeepCopy() *ValidatingAdmissionPolicyStatus {
  391. if in == nil {
  392. return nil
  393. }
  394. out := new(ValidatingAdmissionPolicyStatus)
  395. in.DeepCopyInto(out)
  396. return out
  397. }
  398. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  399. func (in *Validation) DeepCopyInto(out *Validation) {
  400. *out = *in
  401. if in.Reason != nil {
  402. in, out := &in.Reason, &out.Reason
  403. *out = new(v1.StatusReason)
  404. **out = **in
  405. }
  406. return
  407. }
  408. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Validation.
  409. func (in *Validation) DeepCopy() *Validation {
  410. if in == nil {
  411. return nil
  412. }
  413. out := new(Validation)
  414. in.DeepCopyInto(out)
  415. return out
  416. }
  417. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  418. func (in *Variable) DeepCopyInto(out *Variable) {
  419. *out = *in
  420. return
  421. }
  422. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variable.
  423. func (in *Variable) DeepCopy() *Variable {
  424. if in == nil {
  425. return nil
  426. }
  427. out := new(Variable)
  428. in.DeepCopyInto(out)
  429. return out
  430. }