func convert_v1_BuildConfig_To_api_BuildConfig(in *BuildConfig, out *newer.BuildConfig, s conversion.Scope) error { if err := s.DefaultConvert(in, out, conversion.IgnoreMissingFields); err != nil { return err } if err := s.Convert(&in.Spec, &out.Parameters, 0); err != nil { return err } if err := s.Convert(&in.Spec.Triggers, &out.Triggers, 0); err != nil { return err } out.LastVersion = in.Status.LastVersion return nil }
func updateBuildConfig(t *testing.T, buildConfigInterface client.BuildConfigInterface, buildConfig *buildapi.BuildConfig) (*buildapi.BuildConfig, error) { buildConfig.Labels = map[string]string{"updated": "true"} return buildConfigInterface.Update(buildConfig) }