-
Notifications
You must be signed in to change notification settings - Fork 455
/
zz_generated.conversion.go
212 lines (185 loc) · 10.6 KB
/
zz_generated.conversion.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by conversion-gen. DO NOT EDIT.
package v1alpha1
import (
unsafe "unsafe"
core "github.com/gardener/gardener/pkg/apis/core"
v1beta1 "github.com/gardener/gardener/pkg/apis/core/v1beta1"
operations "github.com/gardener/gardener/pkg/apis/operations"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
)
func init() {
localSchemeBuilder.Register(RegisterConversions)
}
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(s *runtime.Scheme) error {
if err := s.AddGeneratedConversionFunc((*Bastion)(nil), (*operations.Bastion)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_Bastion_To_operations_Bastion(a.(*Bastion), b.(*operations.Bastion), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*operations.Bastion)(nil), (*Bastion)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_operations_Bastion_To_v1alpha1_Bastion(a.(*operations.Bastion), b.(*Bastion), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*BastionIngressPolicy)(nil), (*operations.BastionIngressPolicy)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_BastionIngressPolicy_To_operations_BastionIngressPolicy(a.(*BastionIngressPolicy), b.(*operations.BastionIngressPolicy), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*operations.BastionIngressPolicy)(nil), (*BastionIngressPolicy)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_operations_BastionIngressPolicy_To_v1alpha1_BastionIngressPolicy(a.(*operations.BastionIngressPolicy), b.(*BastionIngressPolicy), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*BastionList)(nil), (*operations.BastionList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_BastionList_To_operations_BastionList(a.(*BastionList), b.(*operations.BastionList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*operations.BastionList)(nil), (*BastionList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_operations_BastionList_To_v1alpha1_BastionList(a.(*operations.BastionList), b.(*BastionList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*BastionSpec)(nil), (*operations.BastionSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_BastionSpec_To_operations_BastionSpec(a.(*BastionSpec), b.(*operations.BastionSpec), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*operations.BastionSpec)(nil), (*BastionSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_operations_BastionSpec_To_v1alpha1_BastionSpec(a.(*operations.BastionSpec), b.(*BastionSpec), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*BastionStatus)(nil), (*operations.BastionStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_BastionStatus_To_operations_BastionStatus(a.(*BastionStatus), b.(*operations.BastionStatus), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*operations.BastionStatus)(nil), (*BastionStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_operations_BastionStatus_To_v1alpha1_BastionStatus(a.(*operations.BastionStatus), b.(*BastionStatus), scope)
}); err != nil {
return err
}
return nil
}
func autoConvert_v1alpha1_Bastion_To_operations_Bastion(in *Bastion, out *operations.Bastion, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_BastionSpec_To_operations_BastionSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1alpha1_BastionStatus_To_operations_BastionStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
// Convert_v1alpha1_Bastion_To_operations_Bastion is an autogenerated conversion function.
func Convert_v1alpha1_Bastion_To_operations_Bastion(in *Bastion, out *operations.Bastion, s conversion.Scope) error {
return autoConvert_v1alpha1_Bastion_To_operations_Bastion(in, out, s)
}
func autoConvert_operations_Bastion_To_v1alpha1_Bastion(in *operations.Bastion, out *Bastion, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_operations_BastionSpec_To_v1alpha1_BastionSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_operations_BastionStatus_To_v1alpha1_BastionStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
// Convert_operations_Bastion_To_v1alpha1_Bastion is an autogenerated conversion function.
func Convert_operations_Bastion_To_v1alpha1_Bastion(in *operations.Bastion, out *Bastion, s conversion.Scope) error {
return autoConvert_operations_Bastion_To_v1alpha1_Bastion(in, out, s)
}
func autoConvert_v1alpha1_BastionIngressPolicy_To_operations_BastionIngressPolicy(in *BastionIngressPolicy, out *operations.BastionIngressPolicy, s conversion.Scope) error {
out.IPBlock = in.IPBlock
return nil
}
// Convert_v1alpha1_BastionIngressPolicy_To_operations_BastionIngressPolicy is an autogenerated conversion function.
func Convert_v1alpha1_BastionIngressPolicy_To_operations_BastionIngressPolicy(in *BastionIngressPolicy, out *operations.BastionIngressPolicy, s conversion.Scope) error {
return autoConvert_v1alpha1_BastionIngressPolicy_To_operations_BastionIngressPolicy(in, out, s)
}
func autoConvert_operations_BastionIngressPolicy_To_v1alpha1_BastionIngressPolicy(in *operations.BastionIngressPolicy, out *BastionIngressPolicy, s conversion.Scope) error {
out.IPBlock = in.IPBlock
return nil
}
// Convert_operations_BastionIngressPolicy_To_v1alpha1_BastionIngressPolicy is an autogenerated conversion function.
func Convert_operations_BastionIngressPolicy_To_v1alpha1_BastionIngressPolicy(in *operations.BastionIngressPolicy, out *BastionIngressPolicy, s conversion.Scope) error {
return autoConvert_operations_BastionIngressPolicy_To_v1alpha1_BastionIngressPolicy(in, out, s)
}
func autoConvert_v1alpha1_BastionList_To_operations_BastionList(in *BastionList, out *operations.BastionList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]operations.Bastion)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_BastionList_To_operations_BastionList is an autogenerated conversion function.
func Convert_v1alpha1_BastionList_To_operations_BastionList(in *BastionList, out *operations.BastionList, s conversion.Scope) error {
return autoConvert_v1alpha1_BastionList_To_operations_BastionList(in, out, s)
}
func autoConvert_operations_BastionList_To_v1alpha1_BastionList(in *operations.BastionList, out *BastionList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]Bastion)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_operations_BastionList_To_v1alpha1_BastionList is an autogenerated conversion function.
func Convert_operations_BastionList_To_v1alpha1_BastionList(in *operations.BastionList, out *BastionList, s conversion.Scope) error {
return autoConvert_operations_BastionList_To_v1alpha1_BastionList(in, out, s)
}
func autoConvert_v1alpha1_BastionSpec_To_operations_BastionSpec(in *BastionSpec, out *operations.BastionSpec, s conversion.Scope) error {
out.ShootRef = in.ShootRef
out.SeedName = (*string)(unsafe.Pointer(in.SeedName))
out.ProviderType = (*string)(unsafe.Pointer(in.ProviderType))
out.SSHPublicKey = in.SSHPublicKey
out.Ingress = *(*[]operations.BastionIngressPolicy)(unsafe.Pointer(&in.Ingress))
return nil
}
// Convert_v1alpha1_BastionSpec_To_operations_BastionSpec is an autogenerated conversion function.
func Convert_v1alpha1_BastionSpec_To_operations_BastionSpec(in *BastionSpec, out *operations.BastionSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_BastionSpec_To_operations_BastionSpec(in, out, s)
}
func autoConvert_operations_BastionSpec_To_v1alpha1_BastionSpec(in *operations.BastionSpec, out *BastionSpec, s conversion.Scope) error {
out.ShootRef = in.ShootRef
out.SeedName = (*string)(unsafe.Pointer(in.SeedName))
out.ProviderType = (*string)(unsafe.Pointer(in.ProviderType))
out.SSHPublicKey = in.SSHPublicKey
out.Ingress = *(*[]BastionIngressPolicy)(unsafe.Pointer(&in.Ingress))
return nil
}
// Convert_operations_BastionSpec_To_v1alpha1_BastionSpec is an autogenerated conversion function.
func Convert_operations_BastionSpec_To_v1alpha1_BastionSpec(in *operations.BastionSpec, out *BastionSpec, s conversion.Scope) error {
return autoConvert_operations_BastionSpec_To_v1alpha1_BastionSpec(in, out, s)
}
func autoConvert_v1alpha1_BastionStatus_To_operations_BastionStatus(in *BastionStatus, out *operations.BastionStatus, s conversion.Scope) error {
out.Ingress = (*v1.LoadBalancerIngress)(unsafe.Pointer(in.Ingress))
out.Conditions = *(*[]core.Condition)(unsafe.Pointer(&in.Conditions))
out.LastHeartbeatTimestamp = (*metav1.Time)(unsafe.Pointer(in.LastHeartbeatTimestamp))
out.ExpirationTimestamp = (*metav1.Time)(unsafe.Pointer(in.ExpirationTimestamp))
out.ObservedGeneration = (*int64)(unsafe.Pointer(in.ObservedGeneration))
return nil
}
// Convert_v1alpha1_BastionStatus_To_operations_BastionStatus is an autogenerated conversion function.
func Convert_v1alpha1_BastionStatus_To_operations_BastionStatus(in *BastionStatus, out *operations.BastionStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_BastionStatus_To_operations_BastionStatus(in, out, s)
}
func autoConvert_operations_BastionStatus_To_v1alpha1_BastionStatus(in *operations.BastionStatus, out *BastionStatus, s conversion.Scope) error {
out.Ingress = (*v1.LoadBalancerIngress)(unsafe.Pointer(in.Ingress))
out.Conditions = *(*[]v1beta1.Condition)(unsafe.Pointer(&in.Conditions))
out.LastHeartbeatTimestamp = (*metav1.Time)(unsafe.Pointer(in.LastHeartbeatTimestamp))
out.ExpirationTimestamp = (*metav1.Time)(unsafe.Pointer(in.ExpirationTimestamp))
out.ObservedGeneration = (*int64)(unsafe.Pointer(in.ObservedGeneration))
return nil
}
// Convert_operations_BastionStatus_To_v1alpha1_BastionStatus is an autogenerated conversion function.
func Convert_operations_BastionStatus_To_v1alpha1_BastionStatus(in *operations.BastionStatus, out *BastionStatus, s conversion.Scope) error {
return autoConvert_operations_BastionStatus_To_v1alpha1_BastionStatus(in, out, s)
}