Fix: Make the out flag print to one file using seperator (#1541)

* fix: make the out flag print to one file using seperator

* fix: comment an unused function

* fix: update test script

* fix: update output k8s

* fix: update the json output error condition

* fix: update envvars interpolation tests

* chore: update e2e tests to support yaml generation instead of JSON format

* fix: update e2e tests according to ci environment

* fix: apply PR changes
This commit is contained in:
AhmedGrati
2022-12-01 09:47:50 +01:00
committed by GitHub
parent 4c14b06333
commit 91391eb84f
63 changed files with 4919 additions and 7499 deletions
@@ -0,0 +1,12 @@
version: "3.8"
services:
front_end:
image: gcr.io/google-samples/gb-frontend:v4
ports:
- "80:80"
environment:
- GET_HOSTS_FROM=dns
labels:
kompose.service.expose: lb
kompose.service.expose.ingress-class-name: nginx
+85
View File
@@ -0,0 +1,85 @@
---
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.service.expose: lb
kompose.service.expose.ingress-class-name: nginx
creationTimestamp: null
labels:
io.kompose.service: front-end
name: front_end
spec:
ports:
- name: "80"
port: 80
targetPort: 80
selector:
io.kompose.service: front-end
status:
loadBalancer: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.service.expose: lb
kompose.service.expose.ingress-class-name: nginx
creationTimestamp: null
labels:
io.kompose.service: front-end
name: front-end
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: front-end
strategy: {}
template:
metadata:
annotations:
kompose.service.expose: lb
kompose.service.expose.ingress-class-name: nginx
creationTimestamp: null
labels:
io.kompose.service: front-end
spec:
containers:
- env:
- name: GET_HOSTS_FROM
value: dns
image: gcr.io/google-samples/gb-frontend:v4
name: front-end
ports:
- containerPort: 80
resources: {}
restartPolicy: Always
status: {}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kompose.service.expose: lb
kompose.service.expose.ingress-class-name: nginx
creationTimestamp: null
labels:
io.kompose.service: front-end
name: front-end
spec:
ingressClassName: nginx
rules:
- host: lb
http:
paths:
- backend:
service:
name: front-end
port:
number: 80
path: /
pathType: Prefix
status:
loadBalancer: {}