Fix ImageStream tags in openshift provider mode (#1461)

* Fix ImageStream tags in openshift provider mode

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
This commit is contained in:
Shivam Sandbhor
2021-11-20 13:31:56 +08:00
committed by GitHub
parent 40646f4715
commit a46582bda2
15 changed files with 27 additions and 28 deletions
+1 -2
View File
@@ -56,9 +56,7 @@ func (o *OpenShift) initImageStream(name string, service kobject.ServiceConfig,
if service.Image == "" {
service.Image = name
}
// Retrieve tags and image name for mapping
var importPolicy imageapi.TagImportPolicy
if opt.InsecureRepository {
importPolicy = imageapi.TagImportPolicy{Insecure: true}
@@ -74,6 +72,7 @@ func (o *OpenShift) initImageStream(name string, service kobject.ServiceConfig,
Name: service.Image,
},
ImportPolicy: importPolicy,
Name: GetImageTag(service.Image),
})
}