-
Notifications
You must be signed in to change notification settings - Fork 4.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
add ability to inject environment variables globally into launched processes #9329
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just had one small question but overall looks good to me!
airbyte-workers/src/main/java/io/airbyte/workers/temporal/sync/OrchestratorConstants.java
Outdated
Show resolved
Hide resolved
Have you considered this pattern instead of serializing json in env variables?
|
Good idea with the prefix. Switched to that instead. Once this passes the build on Github I'll merge. |
} | ||
|
||
public EnvConfigs(final Function<String, String> getEnv) { | ||
public EnvConfigs(final Function<String, String> getEnv, final Supplier<Set<String>> getAllEnvKeys) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick. Can you add Javadoc to this class to explain the prefix setup?
Good call on the Javadoc. After realizing I didn't have a good way to explain it I cleaned up the interface instead. |
Specifically this will enable us to inject values like the
SENTRY_DSN
when it is set in the.env
files or Helm. It will also enable us to do things like setLOG_LEVEL
(if it's respected at least) for launched containers in Docker and Kubernetes.This partially addresses #9104 (we can do a separate PR will actually introduce the sentry tracking -- I'd prefer for someone on connectors to do this to get a sense of where these overrides have to be added on OSS and cloud).