Skip to content

Commit 402100d

Browse files
committed
Build necessary conversions
1 parent 724cad1 commit 402100d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pkg/build/apis/build/v1/conversion.go

+17
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,21 @@ func Convert_build_BuildStrategy_To_v1_BuildStrategy(in *newer.BuildStrategy, ou
149149
return nil
150150
}
151151

152+
func Convert_v1_OptionalNodeSelector_To_build_Map(in *OptionalNodeSelector, out *map[string]string, s conversion.Scope) error {
153+
if in != nil {
154+
*out = *in
155+
}
156+
return nil
157+
158+
}
159+
160+
func Convert_build_Map_To_v1_OptionalNodeSelector(in *map[string]string, out *OptionalNodeSelector, s conversion.Scope) error {
161+
if in != nil {
162+
*out = *in
163+
}
164+
return nil
165+
}
166+
152167
func addConversionFuncs(scheme *runtime.Scheme) error {
153168
return scheme.AddConversionFuncs(
154169
Convert_v1_BuildConfig_To_build_BuildConfig,
@@ -169,6 +184,8 @@ func addConversionFuncs(scheme *runtime.Scheme) error {
169184
Convert_build_BuildSource_To_v1_BuildSource,
170185
Convert_v1_BuildStrategy_To_build_BuildStrategy,
171186
Convert_build_BuildStrategy_To_v1_BuildStrategy,
187+
Convert_v1_OptionalNodeSelector_To_build_Map,
188+
Convert_build_Map_To_v1_OptionalNodeSelector,
172189
)
173190
}
174191

0 commit comments

Comments
 (0)