in generatebundlefile/bundle.go [78:101]
func (c *SDKClients) NewPackageFromInput(project Project) (*api.BundlePackage, error) {
var versionList []api.SourceVersion
var err error
// Check bundle Input registry for ECR Private Registry
if strings.Contains(project.Registry, "amazonaws.com") {
versionList, err = c.ecrClient.GetShaForInputs(project)
if err != nil {
return nil, err
}
}
if len(versionList) < 1 {
return nil, fmt.Errorf("unable to find SHA sum for given input tag %v", project.Versions)
}
bundlePkg := &api.BundlePackage{
Name: project.Name,
WorkloadOnly: project.WorkloadOnly,
Source: api.BundlePackageSource{
Repository: project.Repository,
Registry: project.Registry,
Versions: versionList,
},
}
return bundlePkg, nil
}