|
@@ -433,6 +433,11 @@ func (c *CreateAgent) GetImageRepoURL(name, namespace string) (uint, string, err
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if strings.Contains(imageURI, "pkg.dev") {
|
|
|
|
|
+ repoSlice := strings.Split(imageURI, "/")
|
|
|
|
|
+ imageURI = fmt.Sprintf("%s/%s", imageURI, repoSlice[len(repoSlice)-1])
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return regID, imageURI, nil
|
|
return regID, imageURI, nil
|
|
|
}
|
|
}
|
|
|
|
|
|