forked from LaconicNetwork/kompose
fix: enable compose environment variables interpolation (#1642)
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
foo:
|
||||
labels:
|
||||
kompose.image-pull-policy: "${IMAGE_PULL_POLICY:-IfNotPresent}"
|
||||
build: .
|
||||
@@ -0,0 +1,49 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.image-pull-policy: IfNotPresent
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: foo
|
||||
name: foo
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
io.kompose.service: foo
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.image-pull-policy: IfNotPresent
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/compose-env-interpolation-default: "true"
|
||||
io.kompose.service: foo
|
||||
spec:
|
||||
containers:
|
||||
- image: foo
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: foo
|
||||
resources: {}
|
||||
restartPolicy: Always
|
||||
status: {}
|
||||
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: compose-env-interpolation-default
|
||||
spec:
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
io.kompose.network/compose-env-interpolation-default: "true"
|
||||
podSelector:
|
||||
matchLabels:
|
||||
io.kompose.network/compose-env-interpolation-default: "true"
|
||||
|
||||
Reference in New Issue
Block a user