zz_generated.deepcopy.go 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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 *MatchResources) DeepCopyInto(out *MatchResources) {
  23. *out = *in
  24. if in.NamespaceSelector != nil {
  25. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  26. *out = new(v1.LabelSelector)
  27. (*in).DeepCopyInto(*out)
  28. }
  29. if in.ObjectSelector != nil {
  30. in, out := &in.ObjectSelector, &out.ObjectSelector
  31. *out = new(v1.LabelSelector)
  32. (*in).DeepCopyInto(*out)
  33. }
  34. if in.ResourceRules != nil {
  35. in, out := &in.ResourceRules, &out.ResourceRules
  36. *out = make([]NamedRuleWithOperations, len(*in))
  37. for i := range *in {
  38. (*in)[i].DeepCopyInto(&(*out)[i])
  39. }
  40. }
  41. if in.ExcludeResourceRules != nil {
  42. in, out := &in.ExcludeResourceRules, &out.ExcludeResourceRules
  43. *out = make([]NamedRuleWithOperations, len(*in))
  44. for i := range *in {
  45. (*in)[i].DeepCopyInto(&(*out)[i])
  46. }
  47. }
  48. if in.MatchPolicy != nil {
  49. in, out := &in.MatchPolicy, &out.MatchPolicy
  50. *out = new(MatchPolicyType)
  51. **out = **in
  52. }
  53. return
  54. }
  55. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchResources.
  56. func (in *MatchResources) DeepCopy() *MatchResources {
  57. if in == nil {
  58. return nil
  59. }
  60. out := new(MatchResources)
  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 *NamedRuleWithOperations) DeepCopyInto(out *NamedRuleWithOperations) {
  66. *out = *in
  67. if in.ResourceNames != nil {
  68. in, out := &in.ResourceNames, &out.ResourceNames
  69. *out = make([]string, len(*in))
  70. copy(*out, *in)
  71. }
  72. in.RuleWithOperations.DeepCopyInto(&out.RuleWithOperations)
  73. return
  74. }
  75. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedRuleWithOperations.
  76. func (in *NamedRuleWithOperations) DeepCopy() *NamedRuleWithOperations {
  77. if in == nil {
  78. return nil
  79. }
  80. out := new(NamedRuleWithOperations)
  81. in.DeepCopyInto(out)
  82. return out
  83. }
  84. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  85. func (in *ParamKind) DeepCopyInto(out *ParamKind) {
  86. *out = *in
  87. return
  88. }
  89. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamKind.
  90. func (in *ParamKind) DeepCopy() *ParamKind {
  91. if in == nil {
  92. return nil
  93. }
  94. out := new(ParamKind)
  95. in.DeepCopyInto(out)
  96. return out
  97. }
  98. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  99. func (in *ParamRef) DeepCopyInto(out *ParamRef) {
  100. *out = *in
  101. return
  102. }
  103. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamRef.
  104. func (in *ParamRef) DeepCopy() *ParamRef {
  105. if in == nil {
  106. return nil
  107. }
  108. out := new(ParamRef)
  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 *ValidatingAdmissionPolicy) DeepCopyInto(out *ValidatingAdmissionPolicy) {
  114. *out = *in
  115. out.TypeMeta = in.TypeMeta
  116. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  117. in.Spec.DeepCopyInto(&out.Spec)
  118. return
  119. }
  120. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicy.
  121. func (in *ValidatingAdmissionPolicy) DeepCopy() *ValidatingAdmissionPolicy {
  122. if in == nil {
  123. return nil
  124. }
  125. out := new(ValidatingAdmissionPolicy)
  126. in.DeepCopyInto(out)
  127. return out
  128. }
  129. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  130. func (in *ValidatingAdmissionPolicy) DeepCopyObject() runtime.Object {
  131. if c := in.DeepCopy(); c != nil {
  132. return c
  133. }
  134. return nil
  135. }
  136. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  137. func (in *ValidatingAdmissionPolicyBinding) DeepCopyInto(out *ValidatingAdmissionPolicyBinding) {
  138. *out = *in
  139. out.TypeMeta = in.TypeMeta
  140. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  141. in.Spec.DeepCopyInto(&out.Spec)
  142. return
  143. }
  144. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBinding.
  145. func (in *ValidatingAdmissionPolicyBinding) DeepCopy() *ValidatingAdmissionPolicyBinding {
  146. if in == nil {
  147. return nil
  148. }
  149. out := new(ValidatingAdmissionPolicyBinding)
  150. in.DeepCopyInto(out)
  151. return out
  152. }
  153. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  154. func (in *ValidatingAdmissionPolicyBinding) DeepCopyObject() runtime.Object {
  155. if c := in.DeepCopy(); c != nil {
  156. return c
  157. }
  158. return nil
  159. }
  160. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  161. func (in *ValidatingAdmissionPolicyBindingList) DeepCopyInto(out *ValidatingAdmissionPolicyBindingList) {
  162. *out = *in
  163. out.TypeMeta = in.TypeMeta
  164. in.ListMeta.DeepCopyInto(&out.ListMeta)
  165. if in.Items != nil {
  166. in, out := &in.Items, &out.Items
  167. *out = make([]ValidatingAdmissionPolicyBinding, len(*in))
  168. for i := range *in {
  169. (*in)[i].DeepCopyInto(&(*out)[i])
  170. }
  171. }
  172. return
  173. }
  174. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBindingList.
  175. func (in *ValidatingAdmissionPolicyBindingList) DeepCopy() *ValidatingAdmissionPolicyBindingList {
  176. if in == nil {
  177. return nil
  178. }
  179. out := new(ValidatingAdmissionPolicyBindingList)
  180. in.DeepCopyInto(out)
  181. return out
  182. }
  183. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  184. func (in *ValidatingAdmissionPolicyBindingList) DeepCopyObject() runtime.Object {
  185. if c := in.DeepCopy(); c != nil {
  186. return c
  187. }
  188. return nil
  189. }
  190. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  191. func (in *ValidatingAdmissionPolicyBindingSpec) DeepCopyInto(out *ValidatingAdmissionPolicyBindingSpec) {
  192. *out = *in
  193. if in.ParamRef != nil {
  194. in, out := &in.ParamRef, &out.ParamRef
  195. *out = new(ParamRef)
  196. **out = **in
  197. }
  198. if in.MatchResources != nil {
  199. in, out := &in.MatchResources, &out.MatchResources
  200. *out = new(MatchResources)
  201. (*in).DeepCopyInto(*out)
  202. }
  203. return
  204. }
  205. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBindingSpec.
  206. func (in *ValidatingAdmissionPolicyBindingSpec) DeepCopy() *ValidatingAdmissionPolicyBindingSpec {
  207. if in == nil {
  208. return nil
  209. }
  210. out := new(ValidatingAdmissionPolicyBindingSpec)
  211. in.DeepCopyInto(out)
  212. return out
  213. }
  214. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  215. func (in *ValidatingAdmissionPolicyList) DeepCopyInto(out *ValidatingAdmissionPolicyList) {
  216. *out = *in
  217. out.TypeMeta = in.TypeMeta
  218. in.ListMeta.DeepCopyInto(&out.ListMeta)
  219. if in.Items != nil {
  220. in, out := &in.Items, &out.Items
  221. *out = make([]ValidatingAdmissionPolicy, len(*in))
  222. for i := range *in {
  223. (*in)[i].DeepCopyInto(&(*out)[i])
  224. }
  225. }
  226. return
  227. }
  228. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyList.
  229. func (in *ValidatingAdmissionPolicyList) DeepCopy() *ValidatingAdmissionPolicyList {
  230. if in == nil {
  231. return nil
  232. }
  233. out := new(ValidatingAdmissionPolicyList)
  234. in.DeepCopyInto(out)
  235. return out
  236. }
  237. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  238. func (in *ValidatingAdmissionPolicyList) DeepCopyObject() runtime.Object {
  239. if c := in.DeepCopy(); c != nil {
  240. return c
  241. }
  242. return nil
  243. }
  244. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  245. func (in *ValidatingAdmissionPolicySpec) DeepCopyInto(out *ValidatingAdmissionPolicySpec) {
  246. *out = *in
  247. if in.ParamKind != nil {
  248. in, out := &in.ParamKind, &out.ParamKind
  249. *out = new(ParamKind)
  250. **out = **in
  251. }
  252. if in.MatchConstraints != nil {
  253. in, out := &in.MatchConstraints, &out.MatchConstraints
  254. *out = new(MatchResources)
  255. (*in).DeepCopyInto(*out)
  256. }
  257. if in.Validations != nil {
  258. in, out := &in.Validations, &out.Validations
  259. *out = make([]Validation, len(*in))
  260. for i := range *in {
  261. (*in)[i].DeepCopyInto(&(*out)[i])
  262. }
  263. }
  264. if in.FailurePolicy != nil {
  265. in, out := &in.FailurePolicy, &out.FailurePolicy
  266. *out = new(FailurePolicyType)
  267. **out = **in
  268. }
  269. return
  270. }
  271. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicySpec.
  272. func (in *ValidatingAdmissionPolicySpec) DeepCopy() *ValidatingAdmissionPolicySpec {
  273. if in == nil {
  274. return nil
  275. }
  276. out := new(ValidatingAdmissionPolicySpec)
  277. in.DeepCopyInto(out)
  278. return out
  279. }
  280. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  281. func (in *Validation) DeepCopyInto(out *Validation) {
  282. *out = *in
  283. if in.Reason != nil {
  284. in, out := &in.Reason, &out.Reason
  285. *out = new(v1.StatusReason)
  286. **out = **in
  287. }
  288. return
  289. }
  290. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Validation.
  291. func (in *Validation) DeepCopy() *Validation {
  292. if in == nil {
  293. return nil
  294. }
  295. out := new(Validation)
  296. in.DeepCopyInto(out)
  297. return out
  298. }