-
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 |
Related: #1636 |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/reopen |
@jvitor83: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/reopen |
@cdrage: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
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: