zz_generated.conversion.go 4.2 KB

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