| 1 |
//go:build !ignore_autogenerated |
| 2 |
// +build !ignore_autogenerated |
| 3 |
|
| 4 |
/* |
| 5 |
Copyright The Kubernetes Authors. |
| 6 |
|
| 7 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 |
you may not use this file except in compliance with the License. |
| 9 |
You may obtain a copy of the License at |
| 10 |
|
| 11 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 12 |
|
| 13 |
Unless required by applicable law or agreed to in writing, software |
| 14 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 15 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 |
See the License for the specific language governing permissions and |
| 17 |
limitations under the License. |
| 18 |
*/ |
| 19 |
|
| 20 |
// Code generated by conversion-gen. DO NOT EDIT. |
| 21 |
|
| 22 |
package v1alpha1 |
| 23 |
|
| 24 |
import ( |
| 25 |
conversion "k8s.io/apimachinery/pkg/conversion" |
| 26 |
runtime "k8s.io/apimachinery/pkg/runtime" |
| 27 |
webhookadmission "k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission" |
| 28 |
) |
| 29 |
|
| 30 |
func init() { |
| 31 |
localSchemeBuilder.Register(RegisterConversions) |
| 32 |
} |
| 33 |
|
| 34 |
// RegisterConversions adds conversion functions to the given scheme. |
| 35 |
// Public to allow building arbitrary schemes. |
| 36 |
func RegisterConversions(s *runtime.Scheme) error { |
| 37 |
if err := s.AddGeneratedConversionFunc((*WebhookAdmission)(nil), (*webhookadmission.WebhookAdmission)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 38 |
return Convert_v1alpha1_WebhookAdmission_To_webhookadmission_WebhookAdmission(a.(*WebhookAdmission), b.(*webhookadmission.WebhookAdmission), scope) |
| 39 |
}); err != nil { |
| 40 |
return err |
| 41 |
} |
| 42 |
if err := s.AddGeneratedConversionFunc((*webhookadmission.WebhookAdmission)(nil), (*WebhookAdmission)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 43 |
return Convert_webhookadmission_WebhookAdmission_To_v1alpha1_WebhookAdmission(a.(*webhookadmission.WebhookAdmission), b.(*WebhookAdmission), scope) |
| 44 |
}); err != nil { |
| 45 |
return err |
| 46 |
} |
| 47 |
return nil |
| 48 |
} |
| 49 |
|
| 50 |
func autoConvert_v1alpha1_WebhookAdmission_To_webhookadmission_WebhookAdmission(in *WebhookAdmission, out *webhookadmission.WebhookAdmission, s conversion.Scope) error { |
| 51 |
out.KubeConfigFile = in.KubeConfigFile |
| 52 |
return nil |
| 53 |
} |
| 54 |
|
| 55 |
// Convert_v1alpha1_WebhookAdmission_To_webhookadmission_WebhookAdmission is an autogenerated conversion function. |
| 56 |
func Convert_v1alpha1_WebhookAdmission_To_webhookadmission_WebhookAdmission(in *WebhookAdmission, out *webhookadmission.WebhookAdmission, s conversion.Scope) error { |
| 57 |
return autoConvert_v1alpha1_WebhookAdmission_To_webhookadmission_WebhookAdmission(in, out, s) |
| 58 |
} |
| 59 |
|
| 60 |
func autoConvert_webhookadmission_WebhookAdmission_To_v1alpha1_WebhookAdmission(in *webhookadmission.WebhookAdmission, out *WebhookAdmission, s conversion.Scope) error { |
| 61 |
out.KubeConfigFile = in.KubeConfigFile |
| 62 |
return nil |
| 63 |
} |
| 64 |
|
| 65 |
// Convert_webhookadmission_WebhookAdmission_To_v1alpha1_WebhookAdmission is an autogenerated conversion function. |
| 66 |
func Convert_webhookadmission_WebhookAdmission_To_v1alpha1_WebhookAdmission(in *webhookadmission.WebhookAdmission, out *WebhookAdmission, s conversion.Scope) error { |
| 67 |
return autoConvert_webhookadmission_WebhookAdmission_To_v1alpha1_WebhookAdmission(in, out, s) |
| 68 |
} |