zz_generated.deepcopy.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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 v1
  17. import (
  18. metav1 "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 *MutatingWebhook) DeepCopyInto(out *MutatingWebhook) {
  23. *out = *in
  24. in.ClientConfig.DeepCopyInto(&out.ClientConfig)
  25. if in.Rules != nil {
  26. in, out := &in.Rules, &out.Rules
  27. *out = make([]RuleWithOperations, len(*in))
  28. for i := range *in {
  29. (*in)[i].DeepCopyInto(&(*out)[i])
  30. }
  31. }
  32. if in.FailurePolicy != nil {
  33. in, out := &in.FailurePolicy, &out.FailurePolicy
  34. *out = new(FailurePolicyType)
  35. **out = **in
  36. }
  37. if in.MatchPolicy != nil {
  38. in, out := &in.MatchPolicy, &out.MatchPolicy
  39. *out = new(MatchPolicyType)
  40. **out = **in
  41. }
  42. if in.NamespaceSelector != nil {
  43. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  44. *out = new(metav1.LabelSelector)
  45. (*in).DeepCopyInto(*out)
  46. }
  47. if in.ObjectSelector != nil {
  48. in, out := &in.ObjectSelector, &out.ObjectSelector
  49. *out = new(metav1.LabelSelector)
  50. (*in).DeepCopyInto(*out)
  51. }
  52. if in.SideEffects != nil {
  53. in, out := &in.SideEffects, &out.SideEffects
  54. *out = new(SideEffectClass)
  55. **out = **in
  56. }
  57. if in.TimeoutSeconds != nil {
  58. in, out := &in.TimeoutSeconds, &out.TimeoutSeconds
  59. *out = new(int32)
  60. **out = **in
  61. }
  62. if in.AdmissionReviewVersions != nil {
  63. in, out := &in.AdmissionReviewVersions, &out.AdmissionReviewVersions
  64. *out = make([]string, len(*in))
  65. copy(*out, *in)
  66. }
  67. if in.ReinvocationPolicy != nil {
  68. in, out := &in.ReinvocationPolicy, &out.ReinvocationPolicy
  69. *out = new(ReinvocationPolicyType)
  70. **out = **in
  71. }
  72. return
  73. }
  74. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhook.
  75. func (in *MutatingWebhook) DeepCopy() *MutatingWebhook {
  76. if in == nil {
  77. return nil
  78. }
  79. out := new(MutatingWebhook)
  80. in.DeepCopyInto(out)
  81. return out
  82. }
  83. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  84. func (in *MutatingWebhookConfiguration) DeepCopyInto(out *MutatingWebhookConfiguration) {
  85. *out = *in
  86. out.TypeMeta = in.TypeMeta
  87. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  88. if in.Webhooks != nil {
  89. in, out := &in.Webhooks, &out.Webhooks
  90. *out = make([]MutatingWebhook, len(*in))
  91. for i := range *in {
  92. (*in)[i].DeepCopyInto(&(*out)[i])
  93. }
  94. }
  95. return
  96. }
  97. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfiguration.
  98. func (in *MutatingWebhookConfiguration) DeepCopy() *MutatingWebhookConfiguration {
  99. if in == nil {
  100. return nil
  101. }
  102. out := new(MutatingWebhookConfiguration)
  103. in.DeepCopyInto(out)
  104. return out
  105. }
  106. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  107. func (in *MutatingWebhookConfiguration) DeepCopyObject() runtime.Object {
  108. if c := in.DeepCopy(); c != nil {
  109. return c
  110. }
  111. return nil
  112. }
  113. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  114. func (in *MutatingWebhookConfigurationList) DeepCopyInto(out *MutatingWebhookConfigurationList) {
  115. *out = *in
  116. out.TypeMeta = in.TypeMeta
  117. in.ListMeta.DeepCopyInto(&out.ListMeta)
  118. if in.Items != nil {
  119. in, out := &in.Items, &out.Items
  120. *out = make([]MutatingWebhookConfiguration, len(*in))
  121. for i := range *in {
  122. (*in)[i].DeepCopyInto(&(*out)[i])
  123. }
  124. }
  125. return
  126. }
  127. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfigurationList.
  128. func (in *MutatingWebhookConfigurationList) DeepCopy() *MutatingWebhookConfigurationList {
  129. if in == nil {
  130. return nil
  131. }
  132. out := new(MutatingWebhookConfigurationList)
  133. in.DeepCopyInto(out)
  134. return out
  135. }
  136. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  137. func (in *MutatingWebhookConfigurationList) DeepCopyObject() runtime.Object {
  138. if c := in.DeepCopy(); c != nil {
  139. return c
  140. }
  141. return nil
  142. }
  143. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  144. func (in *Rule) DeepCopyInto(out *Rule) {
  145. *out = *in
  146. if in.APIGroups != nil {
  147. in, out := &in.APIGroups, &out.APIGroups
  148. *out = make([]string, len(*in))
  149. copy(*out, *in)
  150. }
  151. if in.APIVersions != nil {
  152. in, out := &in.APIVersions, &out.APIVersions
  153. *out = make([]string, len(*in))
  154. copy(*out, *in)
  155. }
  156. if in.Resources != nil {
  157. in, out := &in.Resources, &out.Resources
  158. *out = make([]string, len(*in))
  159. copy(*out, *in)
  160. }
  161. if in.Scope != nil {
  162. in, out := &in.Scope, &out.Scope
  163. *out = new(ScopeType)
  164. **out = **in
  165. }
  166. return
  167. }
  168. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
  169. func (in *Rule) DeepCopy() *Rule {
  170. if in == nil {
  171. return nil
  172. }
  173. out := new(Rule)
  174. in.DeepCopyInto(out)
  175. return out
  176. }
  177. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  178. func (in *RuleWithOperations) DeepCopyInto(out *RuleWithOperations) {
  179. *out = *in
  180. if in.Operations != nil {
  181. in, out := &in.Operations, &out.Operations
  182. *out = make([]OperationType, len(*in))
  183. copy(*out, *in)
  184. }
  185. in.Rule.DeepCopyInto(&out.Rule)
  186. return
  187. }
  188. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleWithOperations.
  189. func (in *RuleWithOperations) DeepCopy() *RuleWithOperations {
  190. if in == nil {
  191. return nil
  192. }
  193. out := new(RuleWithOperations)
  194. in.DeepCopyInto(out)
  195. return out
  196. }
  197. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  198. func (in *ServiceReference) DeepCopyInto(out *ServiceReference) {
  199. *out = *in
  200. if in.Path != nil {
  201. in, out := &in.Path, &out.Path
  202. *out = new(string)
  203. **out = **in
  204. }
  205. if in.Port != nil {
  206. in, out := &in.Port, &out.Port
  207. *out = new(int32)
  208. **out = **in
  209. }
  210. return
  211. }
  212. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference.
  213. func (in *ServiceReference) DeepCopy() *ServiceReference {
  214. if in == nil {
  215. return nil
  216. }
  217. out := new(ServiceReference)
  218. in.DeepCopyInto(out)
  219. return out
  220. }
  221. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  222. func (in *ValidatingWebhook) DeepCopyInto(out *ValidatingWebhook) {
  223. *out = *in
  224. in.ClientConfig.DeepCopyInto(&out.ClientConfig)
  225. if in.Rules != nil {
  226. in, out := &in.Rules, &out.Rules
  227. *out = make([]RuleWithOperations, len(*in))
  228. for i := range *in {
  229. (*in)[i].DeepCopyInto(&(*out)[i])
  230. }
  231. }
  232. if in.FailurePolicy != nil {
  233. in, out := &in.FailurePolicy, &out.FailurePolicy
  234. *out = new(FailurePolicyType)
  235. **out = **in
  236. }
  237. if in.MatchPolicy != nil {
  238. in, out := &in.MatchPolicy, &out.MatchPolicy
  239. *out = new(MatchPolicyType)
  240. **out = **in
  241. }
  242. if in.NamespaceSelector != nil {
  243. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  244. *out = new(metav1.LabelSelector)
  245. (*in).DeepCopyInto(*out)
  246. }
  247. if in.ObjectSelector != nil {
  248. in, out := &in.ObjectSelector, &out.ObjectSelector
  249. *out = new(metav1.LabelSelector)
  250. (*in).DeepCopyInto(*out)
  251. }
  252. if in.SideEffects != nil {
  253. in, out := &in.SideEffects, &out.SideEffects
  254. *out = new(SideEffectClass)
  255. **out = **in
  256. }
  257. if in.TimeoutSeconds != nil {
  258. in, out := &in.TimeoutSeconds, &out.TimeoutSeconds
  259. *out = new(int32)
  260. **out = **in
  261. }
  262. if in.AdmissionReviewVersions != nil {
  263. in, out := &in.AdmissionReviewVersions, &out.AdmissionReviewVersions
  264. *out = make([]string, len(*in))
  265. copy(*out, *in)
  266. }
  267. return
  268. }
  269. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhook.
  270. func (in *ValidatingWebhook) DeepCopy() *ValidatingWebhook {
  271. if in == nil {
  272. return nil
  273. }
  274. out := new(ValidatingWebhook)
  275. in.DeepCopyInto(out)
  276. return out
  277. }
  278. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  279. func (in *ValidatingWebhookConfiguration) DeepCopyInto(out *ValidatingWebhookConfiguration) {
  280. *out = *in
  281. out.TypeMeta = in.TypeMeta
  282. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  283. if in.Webhooks != nil {
  284. in, out := &in.Webhooks, &out.Webhooks
  285. *out = make([]ValidatingWebhook, len(*in))
  286. for i := range *in {
  287. (*in)[i].DeepCopyInto(&(*out)[i])
  288. }
  289. }
  290. return
  291. }
  292. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfiguration.
  293. func (in *ValidatingWebhookConfiguration) DeepCopy() *ValidatingWebhookConfiguration {
  294. if in == nil {
  295. return nil
  296. }
  297. out := new(ValidatingWebhookConfiguration)
  298. in.DeepCopyInto(out)
  299. return out
  300. }
  301. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  302. func (in *ValidatingWebhookConfiguration) DeepCopyObject() runtime.Object {
  303. if c := in.DeepCopy(); c != nil {
  304. return c
  305. }
  306. return nil
  307. }
  308. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  309. func (in *ValidatingWebhookConfigurationList) DeepCopyInto(out *ValidatingWebhookConfigurationList) {
  310. *out = *in
  311. out.TypeMeta = in.TypeMeta
  312. in.ListMeta.DeepCopyInto(&out.ListMeta)
  313. if in.Items != nil {
  314. in, out := &in.Items, &out.Items
  315. *out = make([]ValidatingWebhookConfiguration, len(*in))
  316. for i := range *in {
  317. (*in)[i].DeepCopyInto(&(*out)[i])
  318. }
  319. }
  320. return
  321. }
  322. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfigurationList.
  323. func (in *ValidatingWebhookConfigurationList) DeepCopy() *ValidatingWebhookConfigurationList {
  324. if in == nil {
  325. return nil
  326. }
  327. out := new(ValidatingWebhookConfigurationList)
  328. in.DeepCopyInto(out)
  329. return out
  330. }
  331. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  332. func (in *ValidatingWebhookConfigurationList) DeepCopyObject() runtime.Object {
  333. if c := in.DeepCopy(); c != nil {
  334. return c
  335. }
  336. return nil
  337. }
  338. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  339. func (in *WebhookClientConfig) DeepCopyInto(out *WebhookClientConfig) {
  340. *out = *in
  341. if in.URL != nil {
  342. in, out := &in.URL, &out.URL
  343. *out = new(string)
  344. **out = **in
  345. }
  346. if in.Service != nil {
  347. in, out := &in.Service, &out.Service
  348. *out = new(ServiceReference)
  349. (*in).DeepCopyInto(*out)
  350. }
  351. if in.CABundle != nil {
  352. in, out := &in.CABundle, &out.CABundle
  353. *out = make([]byte, len(*in))
  354. copy(*out, *in)
  355. }
  356. return
  357. }
  358. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookClientConfig.
  359. func (in *WebhookClientConfig) DeepCopy() *WebhookClientConfig {
  360. if in == nil {
  361. return nil
  362. }
  363. out := new(WebhookClientConfig)
  364. in.DeepCopyInto(out)
  365. return out
  366. }