1// +build !ignore_autogenerated
2
3/*
4Copyright The Kubernetes Authors.
5
6Licensed under the Apache License, Version 2.0 (the "License");
7you may not use this file except in compliance with the License.
8You may obtain a copy of the License at
9
10    http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing, software
13distributed under the License is distributed on an "AS IS" BASIS,
14WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15See the License for the specific language governing permissions and
16limitations under the License.
17*/
18
19// Code generated by deepcopy-gen. DO NOT EDIT.
20
21package v1beta1
22
23import (
24	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
25	runtime "k8s.io/apimachinery/pkg/runtime"
26)
27
28// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
29func (in *MutatingWebhookConfiguration) DeepCopyInto(out *MutatingWebhookConfiguration) {
30	*out = *in
31	out.TypeMeta = in.TypeMeta
32	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
33	if in.Webhooks != nil {
34		in, out := &in.Webhooks, &out.Webhooks
35		*out = make([]Webhook, len(*in))
36		for i := range *in {
37			(*in)[i].DeepCopyInto(&(*out)[i])
38		}
39	}
40	return
41}
42
43// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfiguration.
44func (in *MutatingWebhookConfiguration) DeepCopy() *MutatingWebhookConfiguration {
45	if in == nil {
46		return nil
47	}
48	out := new(MutatingWebhookConfiguration)
49	in.DeepCopyInto(out)
50	return out
51}
52
53// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
54func (in *MutatingWebhookConfiguration) DeepCopyObject() runtime.Object {
55	if c := in.DeepCopy(); c != nil {
56		return c
57	}
58	return nil
59}
60
61// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
62func (in *MutatingWebhookConfigurationList) DeepCopyInto(out *MutatingWebhookConfigurationList) {
63	*out = *in
64	out.TypeMeta = in.TypeMeta
65	out.ListMeta = in.ListMeta
66	if in.Items != nil {
67		in, out := &in.Items, &out.Items
68		*out = make([]MutatingWebhookConfiguration, len(*in))
69		for i := range *in {
70			(*in)[i].DeepCopyInto(&(*out)[i])
71		}
72	}
73	return
74}
75
76// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfigurationList.
77func (in *MutatingWebhookConfigurationList) DeepCopy() *MutatingWebhookConfigurationList {
78	if in == nil {
79		return nil
80	}
81	out := new(MutatingWebhookConfigurationList)
82	in.DeepCopyInto(out)
83	return out
84}
85
86// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
87func (in *MutatingWebhookConfigurationList) DeepCopyObject() runtime.Object {
88	if c := in.DeepCopy(); c != nil {
89		return c
90	}
91	return nil
92}
93
94// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
95func (in *Rule) DeepCopyInto(out *Rule) {
96	*out = *in
97	if in.APIGroups != nil {
98		in, out := &in.APIGroups, &out.APIGroups
99		*out = make([]string, len(*in))
100		copy(*out, *in)
101	}
102	if in.APIVersions != nil {
103		in, out := &in.APIVersions, &out.APIVersions
104		*out = make([]string, len(*in))
105		copy(*out, *in)
106	}
107	if in.Resources != nil {
108		in, out := &in.Resources, &out.Resources
109		*out = make([]string, len(*in))
110		copy(*out, *in)
111	}
112	if in.Scope != nil {
113		in, out := &in.Scope, &out.Scope
114		*out = new(ScopeType)
115		**out = **in
116	}
117	return
118}
119
120// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
121func (in *Rule) DeepCopy() *Rule {
122	if in == nil {
123		return nil
124	}
125	out := new(Rule)
126	in.DeepCopyInto(out)
127	return out
128}
129
130// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
131func (in *RuleWithOperations) DeepCopyInto(out *RuleWithOperations) {
132	*out = *in
133	if in.Operations != nil {
134		in, out := &in.Operations, &out.Operations
135		*out = make([]OperationType, len(*in))
136		copy(*out, *in)
137	}
138	in.Rule.DeepCopyInto(&out.Rule)
139	return
140}
141
142// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleWithOperations.
143func (in *RuleWithOperations) DeepCopy() *RuleWithOperations {
144	if in == nil {
145		return nil
146	}
147	out := new(RuleWithOperations)
148	in.DeepCopyInto(out)
149	return out
150}
151
152// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
153func (in *ServiceReference) DeepCopyInto(out *ServiceReference) {
154	*out = *in
155	if in.Path != nil {
156		in, out := &in.Path, &out.Path
157		*out = new(string)
158		**out = **in
159	}
160	return
161}
162
163// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference.
164func (in *ServiceReference) DeepCopy() *ServiceReference {
165	if in == nil {
166		return nil
167	}
168	out := new(ServiceReference)
169	in.DeepCopyInto(out)
170	return out
171}
172
173// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
174func (in *ValidatingWebhookConfiguration) DeepCopyInto(out *ValidatingWebhookConfiguration) {
175	*out = *in
176	out.TypeMeta = in.TypeMeta
177	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
178	if in.Webhooks != nil {
179		in, out := &in.Webhooks, &out.Webhooks
180		*out = make([]Webhook, len(*in))
181		for i := range *in {
182			(*in)[i].DeepCopyInto(&(*out)[i])
183		}
184	}
185	return
186}
187
188// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfiguration.
189func (in *ValidatingWebhookConfiguration) DeepCopy() *ValidatingWebhookConfiguration {
190	if in == nil {
191		return nil
192	}
193	out := new(ValidatingWebhookConfiguration)
194	in.DeepCopyInto(out)
195	return out
196}
197
198// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
199func (in *ValidatingWebhookConfiguration) DeepCopyObject() runtime.Object {
200	if c := in.DeepCopy(); c != nil {
201		return c
202	}
203	return nil
204}
205
206// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
207func (in *ValidatingWebhookConfigurationList) DeepCopyInto(out *ValidatingWebhookConfigurationList) {
208	*out = *in
209	out.TypeMeta = in.TypeMeta
210	out.ListMeta = in.ListMeta
211	if in.Items != nil {
212		in, out := &in.Items, &out.Items
213		*out = make([]ValidatingWebhookConfiguration, len(*in))
214		for i := range *in {
215			(*in)[i].DeepCopyInto(&(*out)[i])
216		}
217	}
218	return
219}
220
221// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfigurationList.
222func (in *ValidatingWebhookConfigurationList) DeepCopy() *ValidatingWebhookConfigurationList {
223	if in == nil {
224		return nil
225	}
226	out := new(ValidatingWebhookConfigurationList)
227	in.DeepCopyInto(out)
228	return out
229}
230
231// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
232func (in *ValidatingWebhookConfigurationList) DeepCopyObject() runtime.Object {
233	if c := in.DeepCopy(); c != nil {
234		return c
235	}
236	return nil
237}
238
239// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
240func (in *Webhook) DeepCopyInto(out *Webhook) {
241	*out = *in
242	in.ClientConfig.DeepCopyInto(&out.ClientConfig)
243	if in.Rules != nil {
244		in, out := &in.Rules, &out.Rules
245		*out = make([]RuleWithOperations, len(*in))
246		for i := range *in {
247			(*in)[i].DeepCopyInto(&(*out)[i])
248		}
249	}
250	if in.FailurePolicy != nil {
251		in, out := &in.FailurePolicy, &out.FailurePolicy
252		*out = new(FailurePolicyType)
253		**out = **in
254	}
255	if in.NamespaceSelector != nil {
256		in, out := &in.NamespaceSelector, &out.NamespaceSelector
257		*out = new(v1.LabelSelector)
258		(*in).DeepCopyInto(*out)
259	}
260	if in.SideEffects != nil {
261		in, out := &in.SideEffects, &out.SideEffects
262		*out = new(SideEffectClass)
263		**out = **in
264	}
265	if in.TimeoutSeconds != nil {
266		in, out := &in.TimeoutSeconds, &out.TimeoutSeconds
267		*out = new(int32)
268		**out = **in
269	}
270	if in.AdmissionReviewVersions != nil {
271		in, out := &in.AdmissionReviewVersions, &out.AdmissionReviewVersions
272		*out = make([]string, len(*in))
273		copy(*out, *in)
274	}
275	return
276}
277
278// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Webhook.
279func (in *Webhook) DeepCopy() *Webhook {
280	if in == nil {
281		return nil
282	}
283	out := new(Webhook)
284	in.DeepCopyInto(out)
285	return out
286}
287
288// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
289func (in *WebhookClientConfig) DeepCopyInto(out *WebhookClientConfig) {
290	*out = *in
291	if in.URL != nil {
292		in, out := &in.URL, &out.URL
293		*out = new(string)
294		**out = **in
295	}
296	if in.Service != nil {
297		in, out := &in.Service, &out.Service
298		*out = new(ServiceReference)
299		(*in).DeepCopyInto(*out)
300	}
301	if in.CABundle != nil {
302		in, out := &in.CABundle, &out.CABundle
303		*out = make([]byte, len(*in))
304		copy(*out, *in)
305	}
306	return
307}
308
309// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookClientConfig.
310func (in *WebhookClientConfig) DeepCopy() *WebhookClientConfig {
311	if in == nil {
312		return nil
313	}
314	out := new(WebhookClientConfig)
315	in.DeepCopyInto(out)
316	return out
317}
318