Skip to content

Commit

Permalink
drop status field from test yamls
Browse files Browse the repository at this point in the history
Signed-off-by: shubhindia <[email protected]>
  • Loading branch information
shubhindia committed Oct 29, 2023
1 parent 21d8dc8 commit 9d3dfea
Show file tree
Hide file tree
Showing 47 changed files with 108 additions and 181 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ spec:
targetPort: 0
selector:
io.kompose.service: redis
status:
loadBalancer: {}


---
apiVersion: v1
Expand All @@ -34,8 +33,7 @@ spec:
targetPort: 5000
selector:
io.kompose.service: web
status:
loadBalancer: {}


---
apiVersion: apps/v1
Expand Down Expand Up @@ -67,7 +65,7 @@ spec:
name: redis
resources: {}
restartPolicy: Always
status: {}


---
apiVersion: apps/v1
Expand Down Expand Up @@ -109,5 +107,5 @@ spec:
volumes:
- emptyDir: {}
name: code-volume
status: {}


10 changes: 4 additions & 6 deletions script/test/fixtures/change-in-volume/output-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ spec:
targetPort: 0
selector:
io.kompose.service: redis
status:
loadBalancer: {}


---
apiVersion: v1
Expand All @@ -34,8 +33,7 @@ spec:
targetPort: 5000
selector:
io.kompose.service: web
status:
loadBalancer: {}


---
apiVersion: apps/v1
Expand Down Expand Up @@ -67,7 +65,7 @@ spec:
name: redis
resources: {}
restartPolicy: Always
status: {}


---
apiVersion: apps/v1
Expand Down Expand Up @@ -109,5 +107,5 @@ spec:
volumes:
- emptyDir: {}
name: code-volume
status: {}


Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ spec:
targetPort: 0
selector:
io.kompose.service: redis
status:
loadBalancer: {}


---
apiVersion: v1
Expand All @@ -34,8 +33,7 @@ spec:
targetPort: 5000
selector:
io.kompose.service: web
status:
loadBalancer: {}


---
apiVersion: apps.openshift.io/v1
Expand Down
6 changes: 2 additions & 4 deletions script/test/fixtures/change-in-volume/output-os.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ spec:
targetPort: 0
selector:
io.kompose.service: redis
status:
loadBalancer: {}


---
apiVersion: v1
Expand All @@ -34,8 +33,7 @@ spec:
targetPort: 5000
selector:
io.kompose.service: web
status:
loadBalancer: {}


---
apiVersion: apps.openshift.io/v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ spec:
targetPort: 80
selector:
io.kompose.service: foo
status:
loadBalancer: {}


---
apiVersion: apps/v1
Expand Down Expand Up @@ -53,5 +52,5 @@ spec:
protocol: TCP
resources: {}
restartPolicy: Always
status: {}


5 changes: 2 additions & 3 deletions script/test/fixtures/compose-file-support/output-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ spec:
targetPort: 80
selector:
io.kompose.service: web
status:
loadBalancer: {}


---
apiVersion: apps/v1
Expand Down Expand Up @@ -46,5 +45,5 @@ spec:
protocol: TCP
resources: {}
restartPolicy: Always
status: {}


Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
path: configs.tar
name: db-cm0
name: db-cm0
status: {}


---
apiVersion: v1
Expand Down Expand Up @@ -102,7 +102,7 @@ spec:
path: test-a-key.key
name: web-cm1
name: web-cm1
status: {}


---
apiVersion: v1
Expand Down
4 changes: 2 additions & 2 deletions script/test/fixtures/configmap-volume/output-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
path: configs.tar
name: db-cm0
name: db-cm0
status: {}


---
apiVersion: v1
Expand Down Expand Up @@ -94,7 +94,7 @@ spec:
path: test-a-key.key
name: web-cm1
name: web-cm1
status: {}


---
apiVersion: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ spec:
targetPort: 6379
selector:
io.kompose.service: redis
status:
loadBalancer: {}


---
apiVersion: apps/v1
Expand Down Expand Up @@ -75,5 +74,5 @@ spec:
maxSkew: 1
topologyKey: ssd
whenUnsatisfiable: ScheduleAnyway
status: {}


Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ spec:
targetPort: 6379
selector:
io.kompose.service: redis
status:
loadBalancer: {}


---
apiVersion: apps.openshift.io/v1
Expand Down
10 changes: 4 additions & 6 deletions script/test/fixtures/env-multiple/output-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ spec:
targetPort: 8020
selector:
io.kompose.service: another-namenode
status:
loadBalancer: {}


---
apiVersion: v1
Expand All @@ -37,8 +36,7 @@ spec:
targetPort: 8020
selector:
io.kompose.service: namenode
status:
loadBalancer: {}


---
apiVersion: apps/v1
Expand Down Expand Up @@ -79,7 +77,7 @@ spec:
protocol: TCP
resources: {}
restartPolicy: Always
status: {}


---
apiVersion: v1
Expand Down Expand Up @@ -144,5 +142,5 @@ spec:
protocol: TCP
resources: {}
restartPolicy: Always
status: {}


6 changes: 2 additions & 4 deletions script/test/fixtures/env-multiple/output-os.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ spec:
targetPort: 8020
selector:
io.kompose.service: another-namenode
status:
loadBalancer: {}


---
apiVersion: v1
Expand All @@ -37,8 +36,7 @@ spec:
targetPort: 8020
selector:
io.kompose.service: namenode
status:
loadBalancer: {}


---
apiVersion: v1
Expand Down
10 changes: 4 additions & 6 deletions script/test/fixtures/env/output-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ spec:
targetPort: 8020
selector:
io.kompose.service: another-namenode
status:
loadBalancer: {}


---
apiVersion: v1
Expand All @@ -37,8 +36,7 @@ spec:
targetPort: 8020
selector:
io.kompose.service: namenode
status:
loadBalancer: {}


---
apiVersion: apps/v1
Expand Down Expand Up @@ -84,7 +82,7 @@ spec:
protocol: TCP
resources: {}
restartPolicy: Always
status: {}


---
apiVersion: v1
Expand Down Expand Up @@ -144,5 +142,5 @@ spec:
protocol: TCP
resources: {}
restartPolicy: Always
status: {}


6 changes: 2 additions & 4 deletions script/test/fixtures/env/output-os.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ spec:
targetPort: 8020
selector:
io.kompose.service: another-namenode
status:
loadBalancer: {}


---
apiVersion: v1
Expand All @@ -37,8 +36,7 @@ spec:
targetPort: 8020
selector:
io.kompose.service: namenode
status:
loadBalancer: {}


---
apiVersion: v1
Expand Down
2 changes: 1 addition & 1 deletion script/test/fixtures/envvars-interpolation/output-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ spec:
name: myservice
resources: {}
restartPolicy: Always
status: {}


13 changes: 5 additions & 8 deletions script/test/fixtures/expose/output-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ spec:
targetPort: 6379
selector:
io.kompose.service: redis
status:
loadBalancer: {}


---
apiVersion: v1
Expand All @@ -35,8 +34,7 @@ spec:
targetPort: 5000
selector:
io.kompose.service: web
status:
loadBalancer: {}


---
apiVersion: apps/v1
Expand Down Expand Up @@ -67,7 +65,7 @@ spec:
protocol: TCP
resources: {}
restartPolicy: Always
status: {}


---
apiVersion: apps/v1
Expand Down Expand Up @@ -107,7 +105,7 @@ spec:
protocol: TCP
resources: {}
restartPolicy: Always
status: {}


---
apiVersion: networking.k8s.io/v1
Expand Down Expand Up @@ -149,6 +147,5 @@ spec:
- batman.example.com
- batwoman.example.com
secretName: test-secret
status:
loadBalancer: {}


6 changes: 2 additions & 4 deletions script/test/fixtures/expose/output-os.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ spec:
targetPort: 6379
selector:
io.kompose.service: redis
status:
loadBalancer: {}


---
apiVersion: v1
Expand All @@ -35,8 +34,7 @@ spec:
targetPort: 5000
selector:
io.kompose.service: web
status:
loadBalancer: {}


---
apiVersion: apps.openshift.io/v1
Expand Down
Loading

0 comments on commit 9d3dfea

Please sign in to comment.