1 // +build !ignore_autogenerated
4 Copyright The Kubernetes Authors.
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
19 // Code generated by deepcopy-gen. DO NOT EDIT.
24 v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
25 runtime "k8s.io/apimachinery/pkg/runtime"
28 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
29 func (in *MutatingWebhookConfiguration) DeepCopyInto(out *MutatingWebhookConfiguration) {
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))
37 (*in)[i].DeepCopyInto(&(*out)[i])
43 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfiguration.
44 func (in *MutatingWebhookConfiguration) DeepCopy() *MutatingWebhookConfiguration {
48 out := new(MutatingWebhookConfiguration)
53 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
54 func (in *MutatingWebhookConfiguration) DeepCopyObject() runtime.Object {
55 if c := in.DeepCopy(); c != nil {
61 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
62 func (in *MutatingWebhookConfigurationList) DeepCopyInto(out *MutatingWebhookConfigurationList) {
64 out.TypeMeta = in.TypeMeta
65 out.ListMeta = in.ListMeta
67 in, out := &in.Items, &out.Items
68 *out = make([]MutatingWebhookConfiguration, len(*in))
70 (*in)[i].DeepCopyInto(&(*out)[i])
76 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfigurationList.
77 func (in *MutatingWebhookConfigurationList) DeepCopy() *MutatingWebhookConfigurationList {
81 out := new(MutatingWebhookConfigurationList)
86 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
87 func (in *MutatingWebhookConfigurationList) DeepCopyObject() runtime.Object {
88 if c := in.DeepCopy(); c != nil {
94 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
95 func (in *Rule) DeepCopyInto(out *Rule) {
97 if in.APIGroups != nil {
98 in, out := &in.APIGroups, &out.APIGroups
99 *out = make([]string, len(*in))
102 if in.APIVersions != nil {
103 in, out := &in.APIVersions, &out.APIVersions
104 *out = make([]string, len(*in))
107 if in.Resources != nil {
108 in, out := &in.Resources, &out.Resources
109 *out = make([]string, len(*in))
115 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
116 func (in *Rule) DeepCopy() *Rule {
125 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
126 func (in *RuleWithOperations) DeepCopyInto(out *RuleWithOperations) {
128 if in.Operations != nil {
129 in, out := &in.Operations, &out.Operations
130 *out = make([]OperationType, len(*in))
133 in.Rule.DeepCopyInto(&out.Rule)
137 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleWithOperations.
138 func (in *RuleWithOperations) DeepCopy() *RuleWithOperations {
142 out := new(RuleWithOperations)
147 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
148 func (in *ServiceReference) DeepCopyInto(out *ServiceReference) {
151 in, out := &in.Path, &out.Path
158 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference.
159 func (in *ServiceReference) DeepCopy() *ServiceReference {
163 out := new(ServiceReference)
168 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
169 func (in *ValidatingWebhookConfiguration) DeepCopyInto(out *ValidatingWebhookConfiguration) {
171 out.TypeMeta = in.TypeMeta
172 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
173 if in.Webhooks != nil {
174 in, out := &in.Webhooks, &out.Webhooks
175 *out = make([]Webhook, len(*in))
177 (*in)[i].DeepCopyInto(&(*out)[i])
183 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfiguration.
184 func (in *ValidatingWebhookConfiguration) DeepCopy() *ValidatingWebhookConfiguration {
188 out := new(ValidatingWebhookConfiguration)
193 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
194 func (in *ValidatingWebhookConfiguration) DeepCopyObject() runtime.Object {
195 if c := in.DeepCopy(); c != nil {
201 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
202 func (in *ValidatingWebhookConfigurationList) DeepCopyInto(out *ValidatingWebhookConfigurationList) {
204 out.TypeMeta = in.TypeMeta
205 out.ListMeta = in.ListMeta
207 in, out := &in.Items, &out.Items
208 *out = make([]ValidatingWebhookConfiguration, len(*in))
210 (*in)[i].DeepCopyInto(&(*out)[i])
216 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfigurationList.
217 func (in *ValidatingWebhookConfigurationList) DeepCopy() *ValidatingWebhookConfigurationList {
221 out := new(ValidatingWebhookConfigurationList)
226 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
227 func (in *ValidatingWebhookConfigurationList) DeepCopyObject() runtime.Object {
228 if c := in.DeepCopy(); c != nil {
234 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
235 func (in *Webhook) DeepCopyInto(out *Webhook) {
237 in.ClientConfig.DeepCopyInto(&out.ClientConfig)
239 in, out := &in.Rules, &out.Rules
240 *out = make([]RuleWithOperations, len(*in))
242 (*in)[i].DeepCopyInto(&(*out)[i])
245 if in.FailurePolicy != nil {
246 in, out := &in.FailurePolicy, &out.FailurePolicy
247 *out = new(FailurePolicyType)
250 if in.NamespaceSelector != nil {
251 in, out := &in.NamespaceSelector, &out.NamespaceSelector
252 *out = new(v1.LabelSelector)
253 (*in).DeepCopyInto(*out)
255 if in.SideEffects != nil {
256 in, out := &in.SideEffects, &out.SideEffects
257 *out = new(SideEffectClass)
263 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Webhook.
264 func (in *Webhook) DeepCopy() *Webhook {
273 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
274 func (in *WebhookClientConfig) DeepCopyInto(out *WebhookClientConfig) {
277 in, out := &in.URL, &out.URL
281 if in.Service != nil {
282 in, out := &in.Service, &out.Service
283 *out = new(ServiceReference)
284 (*in).DeepCopyInto(*out)
286 if in.CABundle != nil {
287 in, out := &in.CABundle, &out.CABundle
288 *out = make([]byte, len(*in))
294 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookClientConfig.
295 func (in *WebhookClientConfig) DeepCopy() *WebhookClientConfig {
299 out := new(WebhookClientConfig)