forked from LaconicNetwork/kompose
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:
parent
40646f4715
commit
a46582bda2
@ -56,9 +56,7 @@ func (o *OpenShift) initImageStream(name string, service kobject.ServiceConfig,
|
|||||||
if service.Image == "" {
|
if service.Image == "" {
|
||||||
service.Image = name
|
service.Image = name
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve tags and image name for mapping
|
// Retrieve tags and image name for mapping
|
||||||
|
|
||||||
var importPolicy imageapi.TagImportPolicy
|
var importPolicy imageapi.TagImportPolicy
|
||||||
if opt.InsecureRepository {
|
if opt.InsecureRepository {
|
||||||
importPolicy = imageapi.TagImportPolicy{Insecure: true}
|
importPolicy = imageapi.TagImportPolicy{Insecure: true}
|
||||||
@ -74,6 +72,7 @@ func (o *OpenShift) initImageStream(name string, service kobject.ServiceConfig,
|
|||||||
Name: service.Image,
|
Name: service.Image,
|
||||||
},
|
},
|
||||||
ImportPolicy: importPolicy,
|
ImportPolicy: importPolicy,
|
||||||
|
Name: GetImageTag(service.Image),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -143,7 +143,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
@ -264,7 +264,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
@ -109,7 +109,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
@ -260,7 +260,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
@ -106,7 +106,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
@ -254,7 +254,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
@ -170,7 +170,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
4
script/test/fixtures/expose/output-ocp.json
vendored
4
script/test/fixtures/expose/output-ocp.json
vendored
@ -145,7 +145,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
@ -253,7 +253,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
@ -248,7 +248,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
@ -376,7 +376,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
@ -507,7 +507,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
@ -638,7 +638,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
@ -84,7 +84,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
@ -183,7 +183,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
@ -102,7 +102,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
@ -258,7 +258,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
@ -180,7 +180,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
@ -324,7 +324,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
@ -259,7 +259,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
@ -481,7 +481,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
@ -136,7 +136,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
2
script/test/fixtures/v2/output-os.json
vendored
2
script/test/fixtures/v2/output-os.json
vendored
@ -432,7 +432,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
4
script/test/fixtures/v3.0/output-os.json
vendored
4
script/test/fixtures/v3.0/output-os.json
vendored
@ -121,7 +121,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
@ -233,7 +233,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
@ -130,7 +130,7 @@
|
|||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "latest",
|
||||||
"annotations": null,
|
"annotations": null,
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "DockerImage",
|
"kind": "DockerImage",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user