forked from LaconicNetwork/kompose
* fix: support host port and protocol in functional tests * feat: support compose.yaml and compose.yml files Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com> * test: implement functional tests of the support of compose files Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com> --------- Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
102 lines
2.1 KiB
YAML
102 lines
2.1 KiB
YAML
---
|
|
apiVersion: apps.openshift.io/v1
|
|
kind: DeploymentConfig
|
|
metadata:
|
|
annotations:
|
|
kompose.security-context.fsgroup: "1001"
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: pgadmin
|
|
name: pgadmin
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
io.kompose.service: pgadmin
|
|
strategy:
|
|
resources: {}
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.network/fsgroup-default: "true"
|
|
io.kompose.service: pgadmin
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: PGADMIN_DEFAULT_EMAIL
|
|
value: dumb_pgadmin_user@email.com
|
|
- name: PGADMIN_DEFAULT_PASSWORD
|
|
value: pgadmin_password
|
|
image: ' '
|
|
name: pgadmin
|
|
resources: {}
|
|
volumeMounts:
|
|
- mountPath: /var/lib/pgadmin
|
|
name: pgadmin-data
|
|
restartPolicy: Always
|
|
securityContext:
|
|
fsGroup: 1001
|
|
volumes:
|
|
- name: pgadmin-data
|
|
persistentVolumeClaim:
|
|
claimName: pgadmin-data
|
|
test: false
|
|
triggers:
|
|
- type: ConfigChange
|
|
- imageChangeParams:
|
|
automatic: true
|
|
containerNames:
|
|
- pgadmin
|
|
from:
|
|
kind: ImageStreamTag
|
|
name: pgadmin:latest
|
|
type: ImageChange
|
|
status:
|
|
availableReplicas: 0
|
|
latestVersion: 0
|
|
observedGeneration: 0
|
|
replicas: 0
|
|
unavailableReplicas: 0
|
|
updatedReplicas: 0
|
|
|
|
---
|
|
apiVersion: image.openshift.io/v1
|
|
kind: ImageStream
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: pgadmin
|
|
name: pgadmin
|
|
spec:
|
|
lookupPolicy:
|
|
local: false
|
|
tags:
|
|
- annotations: null
|
|
from:
|
|
kind: DockerImage
|
|
name: dpage/pgadmin4
|
|
generation: null
|
|
importPolicy: {}
|
|
name: latest
|
|
referencePolicy:
|
|
type: ""
|
|
status:
|
|
dockerImageRepository: ""
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: pgadmin-data
|
|
name: pgadmin-data
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 100Mi
|
|
status: {}
|