-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Use Micronaut auto-detected environment for docker vs kubernetes choices #17388
Conversation
NOTE
|
I just ran the integration tests for the |
One Kube-based acceptance test failed, which most likely means we have a configuration issue somewhere. However, since the output of each service is unreachable, I can't see what the issue is. If someone could help me with running the Kube-based tests locally, that would help figure out where the issue is. |
…bytehq/airbyte into jonathan/workers-runtime-environment
I was able to find the issue locally: another environment variable that is set to an empty string occasionally, leading to Micronaut thinking that the property is missing completely when using |
When deploying with More info and logs in this ticket: #17595 |
…ces (airbytehq#17388) * Use Micronaut auto-detected environment for docker vs kubernetes choices * Handle set, but blank env var * Formatting * Revert change * Add default value * Explicitly set WORKER_ENVIRONMENT for container orchestrator * Make public * Add sleep to allow Temporal cache to populate Co-authored-by: Jimmy Ma <gosusnp@users.noreply.github.com>
What
How
WORKER_ENVIRONMENT
environment variable fromairbyte-workers
WorkerConfigs
around just to do a check inWorkerUtils
Closes #16700
Recommended reading order
airbyte-workers/src/main/resources/application.yml
airbyte-workers/src/main/java/io/airbyte/workers/ApplicationInitializer.java
airbyte-workers/src/main/java/io/airbyte/workers/config/ApplicationBeanFactory.java
airbyte-workers/src/main/java/io/airbyte/workers/config/ProcessFactoryBeanFactory.java
airbyte-workers/src/main/java/io/airbyte/workers/config/WorkerConfigurationBeanFactory.java
charts/airbyte-worker/templates/deployment.yaml
docker-compose.yaml
kube/resources/worker.yaml
airbyte-workers/src/main/java/io/airbyte/workers/WorkerUtils.java
WorkerConfigs
as a parameter toWorkerUtils
I have a corresponding branch ready to go in cloud. This does not have the same risk of the previous PR that changed the environment names for mutil-cloud parameters. This PR simply removes referencing an existing environment variable
WORKER_ENVIRONMENT
in favor of the Microanut auto-detected environments.Tests
dev
environment. Runs as expected in Kubernetes mode