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: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: db
|
||||
name: db
|
||||
@@ -21,7 +20,6 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: wordpress
|
||||
name: wordpress
|
||||
@@ -40,7 +38,6 @@ spec:
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: db
|
||||
name: db
|
||||
@@ -52,7 +49,6 @@ spec:
|
||||
serviceName: db
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/statefulset-default: "true"
|
||||
io.kompose.service: db
|
||||
@@ -73,15 +69,12 @@ spec:
|
||||
- containerPort: 3306
|
||||
hostPort: 3306
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/mysql
|
||||
name: db-data
|
||||
restartPolicy: Always
|
||||
updateStrategy: {}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: db-data
|
||||
name: db-data
|
||||
@@ -96,7 +89,6 @@ spec:
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: wordpress
|
||||
name: wordpress
|
||||
@@ -108,7 +100,6 @@ spec:
|
||||
serviceName: wordpress
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/statefulset-default: "true"
|
||||
io.kompose.service: wordpress
|
||||
@@ -129,15 +120,12 @@ spec:
|
||||
- containerPort: 80
|
||||
hostPort: 8000
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /var/www/html
|
||||
name: wordpress-data
|
||||
restartPolicy: Always
|
||||
updateStrategy: {}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: wordpress-data
|
||||
name: wordpress-data
|
||||
|
||||
+2
-30
@@ -2,7 +2,6 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: db
|
||||
name: db
|
||||
@@ -19,7 +18,6 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: wordpress
|
||||
name: wordpress
|
||||
@@ -36,7 +34,6 @@ spec:
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: db
|
||||
name: db
|
||||
@@ -48,7 +45,6 @@ spec:
|
||||
serviceName: db
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/statefulset-default: "true"
|
||||
io.kompose.service: db
|
||||
@@ -69,15 +65,12 @@ spec:
|
||||
- containerPort: 3306
|
||||
hostPort: 3306
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/mysql
|
||||
name: db-data
|
||||
restartPolicy: Always
|
||||
updateStrategy: {}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: db-data
|
||||
name: db-data
|
||||
@@ -92,7 +85,6 @@ spec:
|
||||
apiVersion: apps.openshift.io/v1
|
||||
kind: DeploymentConfig
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: db
|
||||
name: db
|
||||
@@ -101,11 +93,9 @@ spec:
|
||||
selector:
|
||||
io.kompose.service: db
|
||||
strategy:
|
||||
resources: {}
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/statefulset-default: "true"
|
||||
io.kompose.service: db
|
||||
@@ -126,7 +116,6 @@ spec:
|
||||
- containerPort: 3306
|
||||
hostPort: 3306
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/mysql
|
||||
name: db-data
|
||||
@@ -148,7 +137,6 @@ spec:
|
||||
apiVersion: image.openshift.io/v1
|
||||
kind: ImageStream
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: db
|
||||
name: db
|
||||
@@ -156,12 +144,9 @@ spec:
|
||||
lookupPolicy:
|
||||
local: false
|
||||
tags:
|
||||
- annotations: null
|
||||
from:
|
||||
- from:
|
||||
kind: DockerImage
|
||||
name: mysql:5.7
|
||||
generation: null
|
||||
importPolicy: {}
|
||||
name: "5.7"
|
||||
referencePolicy:
|
||||
type: ""
|
||||
@@ -171,7 +156,6 @@ spec:
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: wordpress
|
||||
name: wordpress
|
||||
@@ -183,7 +167,6 @@ spec:
|
||||
serviceName: wordpress
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/statefulset-default: "true"
|
||||
io.kompose.service: wordpress
|
||||
@@ -204,15 +187,12 @@ spec:
|
||||
- containerPort: 80
|
||||
hostPort: 8000
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /var/www/html
|
||||
name: wordpress-data
|
||||
restartPolicy: Always
|
||||
updateStrategy: {}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: wordpress-data
|
||||
name: wordpress-data
|
||||
@@ -227,7 +207,6 @@ spec:
|
||||
apiVersion: apps.openshift.io/v1
|
||||
kind: DeploymentConfig
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: wordpress
|
||||
name: wordpress
|
||||
@@ -236,11 +215,9 @@ spec:
|
||||
selector:
|
||||
io.kompose.service: wordpress
|
||||
strategy:
|
||||
resources: {}
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/statefulset-default: "true"
|
||||
io.kompose.service: wordpress
|
||||
@@ -261,7 +238,6 @@ spec:
|
||||
- containerPort: 80
|
||||
hostPort: 8000
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /var/www/html
|
||||
name: wordpress-data
|
||||
@@ -283,7 +259,6 @@ spec:
|
||||
apiVersion: image.openshift.io/v1
|
||||
kind: ImageStream
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: wordpress
|
||||
name: wordpress
|
||||
@@ -291,12 +266,9 @@ spec:
|
||||
lookupPolicy:
|
||||
local: false
|
||||
tags:
|
||||
- annotations: null
|
||||
from:
|
||||
- from:
|
||||
kind: DockerImage
|
||||
name: wordpress:latest
|
||||
generation: null
|
||||
importPolicy: {}
|
||||
name: latest
|
||||
referencePolicy:
|
||||
type: ""
|
||||
|
||||
Reference in New Issue
Block a user