-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman kube play should be able to read the bash variables #21057
Comments
A clear and concise description of what you want to happen: And as a result, the podman play kube should render the manifest and pull the image myregistry.com/myname:0.0.1, |
Interested in opening a PR to make this happen? |
Does Kubernetes support it? |
Kubernetes YAML doesn't support this kind of variable interpolation. # my_pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: foobar
spec:
containers:
- name: container-1
image: ${REGISTRY}/${REPO}:${TAG} REGISTRY=myregistry.com REPO=project TAG=0.0.1 envsubst < my_pod.yaml > pod.yaml # pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: foobar
spec:
containers:
- name: container-1
image: myregistry.com/project:0.0.1 |
Well, at least the well-known RedHat product can do it pretty well: oc process --param-file=test.env -f test.yaml | oc create -f - |
So, can't this be achieved by using |
A friendly reminder that this issue had no activity for 30 days. |
Since we have not heard back, closing. Reopen if you have more feedback. |
Feature request description
For example, I have a number of manifests, where I want to refer some values by an environment variable:
spec:
containers:
image: ${REGISTRY}/:${TAG}
where REGISTRY and TAG are defined as env variables, for example in the .env file.
Suggest potential solution
A clear and concise description of what you want to happen.
Have you considered any alternatives?
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: