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