forked from LaconicNetwork/kompose
feat(1765): update tests, move unit test to proper file, improve removeEmptyInterfaces algo
Signed-off-by: Martin Jirku <martin@jirku.sk>
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: bar
|
||||
name: bar
|
||||
@@ -11,10 +10,8 @@ spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
io.kompose.service: bar
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/multiple-files-default: "true"
|
||||
io.kompose.service: bar
|
||||
@@ -22,7 +19,6 @@ spec:
|
||||
containers:
|
||||
- image: bar
|
||||
name: bar
|
||||
resources: {}
|
||||
restartPolicy: Always
|
||||
|
||||
|
||||
@@ -30,7 +26,6 @@ spec:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: foo
|
||||
name: foo
|
||||
@@ -39,10 +34,8 @@ spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
io.kompose.service: foo
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/multiple-files-default: "true"
|
||||
io.kompose.service: foo
|
||||
@@ -50,7 +43,6 @@ spec:
|
||||
containers:
|
||||
- image: foo
|
||||
name: foo
|
||||
resources: {}
|
||||
restartPolicy: Always
|
||||
|
||||
|
||||
|
||||
+2
-24
@@ -2,7 +2,6 @@
|
||||
apiVersion: apps.openshift.io/v1
|
||||
kind: DeploymentConfig
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: bar
|
||||
name: bar
|
||||
@@ -10,11 +9,8 @@ spec:
|
||||
replicas: 99
|
||||
selector:
|
||||
io.kompose.service: bar
|
||||
strategy:
|
||||
resources: {}
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/multiple-files-default: "true"
|
||||
io.kompose.service: bar
|
||||
@@ -22,7 +18,6 @@ spec:
|
||||
containers:
|
||||
- image: ' '
|
||||
name: bar
|
||||
resources: {}
|
||||
restartPolicy: Always
|
||||
test: false
|
||||
triggers:
|
||||
@@ -36,12 +31,10 @@ spec:
|
||||
name: bar:latest
|
||||
type: ImageChange
|
||||
|
||||
|
||||
---
|
||||
apiVersion: image.openshift.io/v1
|
||||
kind: ImageStream
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: bar
|
||||
name: bar
|
||||
@@ -49,22 +42,17 @@ spec:
|
||||
lookupPolicy:
|
||||
local: false
|
||||
tags:
|
||||
- annotations: null
|
||||
from:
|
||||
- from:
|
||||
kind: DockerImage
|
||||
name: bar
|
||||
generation: null
|
||||
importPolicy: {}
|
||||
name: latest
|
||||
referencePolicy:
|
||||
type: ""
|
||||
|
||||
|
||||
---
|
||||
apiVersion: apps.openshift.io/v1
|
||||
kind: DeploymentConfig
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: foo
|
||||
name: foo
|
||||
@@ -72,11 +60,8 @@ spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
io.kompose.service: foo
|
||||
strategy:
|
||||
resources: {}
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/multiple-files-default: "true"
|
||||
io.kompose.service: foo
|
||||
@@ -84,7 +69,6 @@ spec:
|
||||
containers:
|
||||
- image: ' '
|
||||
name: foo
|
||||
resources: {}
|
||||
restartPolicy: Always
|
||||
test: false
|
||||
triggers:
|
||||
@@ -98,12 +82,10 @@ spec:
|
||||
name: foo:latest
|
||||
type: ImageChange
|
||||
|
||||
|
||||
---
|
||||
apiVersion: image.openshift.io/v1
|
||||
kind: ImageStream
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: foo
|
||||
name: foo
|
||||
@@ -111,14 +93,10 @@ spec:
|
||||
lookupPolicy:
|
||||
local: false
|
||||
tags:
|
||||
- annotations: null
|
||||
from:
|
||||
- from:
|
||||
kind: DockerImage
|
||||
name: foo
|
||||
generation: null
|
||||
importPolicy: {}
|
||||
name: latest
|
||||
referencePolicy:
|
||||
type: ""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user