Open slaskis opened 3 months ago
An interesting observation is that the healthcheck test seems to interpolate it correctly:
services:
redis:
image: redis
command: redis-server --requirepass $$REDIS_PASSWORD
healthcheck:
test: redis-cli -a $$REDIS_PASSWORD --raw incr ping
ports:
- 6379
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.34.0 (HEAD)
labels:
io.kompose.service: redis
name: redis
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: redis
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.34.0 (HEAD)
labels:
io.kompose.service: redis
spec:
containers:
- args:
- redis-server
- --requirepass
- $(){REDIS_PASSWORD}
image: redis
livenessProbe:
exec:
command:
- redis-cli -a $REDIS_PASSWORD --raw incr ping
failureThreshold: 120
periodSeconds: 3
timeoutSeconds: 10
name: redis
ports:
- containerPort: 6379
protocol: TCP
restartPolicy: Always
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
Expected Behavior
Expect
$$REDIS_PASSWORD
to be interpolated according to the compose spec so into$REDIS_PASSWORD
.Actual Behavior
It interpolated it into
$(REDIS)_PASSWORD
.Steps To Reproduce
kompose convert
$$REDIS_PASSWORD
being interpolated as$(REDIS)_PASSWORD
Kompose Version
Docker-Compose file
Anything else?
No response