-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Can't escape interpolation #1906
Comments
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:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
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
The text was updated successfully, but these errors were encountered: