From a6da92784ef8b8da593b0fd668e577f1c3b395d8 Mon Sep 17 00:00:00 2001 From: Harvey Lowndes Date: Thu, 12 Jan 2023 17:40:49 +0000 Subject: [PATCH] Allow all for registry url The format is different and not guaranteed to be fixed. We should accept all and allow the functions control plane to handle the validation. --- commands/deploy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/deploy.go b/commands/deploy.go index 686f1259..c180e50f 100644 --- a/commands/deploy.go +++ b/commands/deploy.go @@ -549,7 +549,7 @@ func getRepositoryName(ff *common.FuncFileV20180708) (string, error) { if len(parts) != 2 { return "", fmt.Errorf("cannot parse image %s", ff.ImageNameV20180708()) } - pattern := regexp.MustCompile("(.*)\\.ocir\\.io/([^/]*)/(.*)") + pattern := regexp.MustCompile("(.*)/([^/]*)/(.*)") parts = pattern.FindStringSubmatch(parts[0]) if len(parts) != 4 { return "", fmt.Errorf("cannot parse registry for image %s", ff.ImageNameV20180708())