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
// return fmt.Errorf("Must supply value for \"%s\"", label)
228
-
// }
222
+
funcvalidateRuntimeName(runtimestring) error {
223
+
isValid, err:=IsValidName(runtime)
224
+
iferr!=nil {
225
+
returnfmt.Errorf("failed to validate runtime name: %w", err)
226
+
}
227
+
if!isValid {
228
+
returnfmt.Errorf("runtime name cannot have any uppercase letters, must start with a character, end with character or number, and be shorter than 63 chars")
err=fmt.Errorf("failed to check the validity of the runtime name: %w", err)
2640
-
} elseif!isValid {
2641
-
err=fmt.Errorf("runtime name cannot have any uppercase letters, must start with a character, end with character or number, and be shorter than 63 chars")
0 commit comments