You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
allErrs=append(allErrs, field.Invalid(fldPath.Child("source"), spec.Source, "must provide a value for at least one of source, binary, images, or dockerfile"))
145
+
allErrs=append(allErrs, field.Invalid(fldPath.Child("source"), "", "must provide a value for at least one source input(git, binary, dockerfile, images)."))
iferr.Type==field.ErrorTypeInvalid&&strings.Contains(err.Field, "spec.source") &&strings.Contains(err.Detail, "must provide a value for at least one of source, binary, images, or dockerfile") {
49
+
iferr.Type==field.ErrorTypeInvalid&&strings.Contains(err.Field, "spec.source") &&strings.Contains(err.Detail, "must provide a value for at least one source input(git, binary, dockerfile, images).") {
returnfmt.Errorf("Build configuration %s/%s has no valid source inputs, if this is a binary build you must specify one of '--from-dir', '--from-repo', or '--from-file'", o.Namespace, o.Name)
300
+
}
289
301
returnerr
290
302
}
291
303
}
@@ -327,7 +339,7 @@ func (o *StartBuildOptions) Run() error {
327
339
iferr!=nil {
328
340
// if --wait options is set, then retry the connection to build logs
os::cmd::expect_failure_and_text "oc start-build ruby-sample-build-invalid-tag --from-dir=. --from-build=${started}""Cannot use '--from-build' flag with binary builds"
167
+
os::cmd::expect_failure_and_text "oc start-build ruby-sample-build-invalid-tag --from-file=. --from-build=${started}""Cannot use '--from-build' flag with binary builds"
168
+
os::cmd::expect_failure_and_text "oc start-build ruby-sample-build-invalid-tag --from-repo=. --from-build=${started}""Cannot use '--from-build' flag with binary builds"
0 commit comments