-
Notifications
You must be signed in to change notification settings - Fork 344
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
Cache should interpolate env at runtime #4096
Comments
The image you shared is created at build time and I see it is not interpolated during build time so Mesh will interpolate it during actual runtime. |
Hm, maybe I did something wrong then, yesterday I was very tired. Will try again later today. |
Something weird is happening. When using
running it locally (in and out container) - it works. When its deployed to production Kubernetes - it doesn't work anymore.
After changing to
Its still working locally (no container) - but image cannot be build.
|
Make sure you have environment variables set in your Kubernetes setup. |
I am also facing the same problem (even thought in a slightly different flavour than @Warxcell)
It does seem like env variables are not computed at runtime. Ideally my team will keep the mesh under source control and... having secrets over there is not really a best practice. |
You should use Closing this issue for now. Feel free to create a new one with a reproduction if you have any further issues. Thanks! |
Thank you @ardatan it works now. |
Hello, I'm facing maybe the same problem when deploying the GraphQL Mesh gateway to a cloud provider through Docker and Kubernetes. For other env variables in the app, we do use {env.VARIABLE} syntax, for example: We have an .env file inside Docker image that contain those variables. Locally, I run the docker image locally and it works. However, when deploying with Kubernetes, it seems like those env variables are not computed at run time. |
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
env at cache is interpolated at build time, which makes impossible to run same docker image in different environments.
To Reproduce
Steps to reproduce the behavior:
and run
mesh build
Expected behavior
{env...}
to becomeprocess.env....
on build.Environment:
@graphql-mesh/...
: allAdditional context
The text was updated successfully, but these errors were encountered: