-
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
Rename env vars for better readability. #8447
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jrhizor
approved these changes
Dec 3, 2021
* Rename MAX_SYNC_JOB_ATTEMPTS to SYNC_JOB_MAX_ATTEMPTS. * Rename MAX_SYNC_TIMEOUT_DAYS to SYNC_JOB_MAX_TIMEOUT_DAYS. * Comment proposed names. * Rename WORKER_POD_TOLERATIONS to JOB_POD_TOLERATIONS. * Rename WORKER_POD_NODE_SELECTORS to JOB_POD_NODE_SELECTORS. * Rename JOB_IMAGE_PULL_POLICY to JOB_POD_MAIN_CONTAINER_IMAGE_PULL_POLICY. * Format. * Rename JOBS_IMAGE_PULL_SECRET to JOB_POD_MAIN_CONTAINER_IMAGE_PULL_SECRET. * Rename JOB_SOCAT_IMAGE to JOB_POD_SOCAT_IMAGE. * Rename JOB_BUSYBOX_IMAGE to JOB_POD_BUSYBOX_IMAGE. * Rename JOB_CURL_IMAGE to JOB_POD_CURL_IMAGE. * Rename KUBE_NAMESPACE to JOB_POD_KUBE_NAMESPACE. * Format. * Rename RESOURCE_CPU_REQUEST to JOB_POD_MAIN_CONTAINER_CPU_REQUEST. * Rename RESOURCE_CPU_LIMIT to JOB_POD_MAIN_CONTAINER_CPU_LIMIT. * Rename RESOURCE_MEMORY_REQUEST to JOB_POD_MAIN_CONTAINER_MEMORY_REQUEST. * Rename RESOURCE_MEMORY_LIMIT to JOB_POD_MAIN_CONTAINER_MEMORY_LIMIT. * Remove worker suffix from created pods to reduce confusion with actual worker pods. * Use sync instead of worker to name job pods.
40 tasks
schlattk
pushed a commit
to schlattk/airbyte
that referenced
this pull request
Jan 4, 2022
* Rename GcsStorageBucket to GcsLogBucket. * Update all references to GCP_STORAGE_BUCKET to GCS_LOG_BUCKET. * Undo this for configuration files for older Airbyte versions. * Clean up Job env vars. (airbytehq#8462) * Rename MAX_SYNC_JOB_ATTEMPTS to SYNC_JOB_MAX_ATTEMPTS. * Rename MAX_SYNC_TIMEOUT_DAYS to SYNC_JOB_MAX_TIMEOUT_DAYS. * Rename WORKER_POD_TOLERATIONS to JOB_POD_TOLERATIONS. * Rename WORKER_POD_NODE_SELECTORS to JOB_POD_NODE_SELECTORS. * Rename JOB_IMAGE_PULL_POLICY to JOB_POD_MAIN_CONTAINER_IMAGE_PULL_POLICY. * Rename JOBS_IMAGE_PULL_SECRET to JOB_POD_MAIN_CONTAINER_IMAGE_PULL_SECRET. * Rename JOB_SOCAT_IMAGE to JOB_POD_SOCAT_IMAGE. * Rename JOB_BUSYBOX_IMAGE to JOB_POD_BUSYBOX_IMAGE. * Rename JOB_CURL_IMAGE to JOB_POD_CURL_IMAGE. * Rename KUBE_NAMESPACE to JOB_POD_KUBE_NAMESPACE. * Rename RESOURCE_CPU_REQUEST to JOB_POD_MAIN_CONTAINER_CPU_REQUEST. * Rename RESOURCE_CPU_LIMIT to JOB_POD_MAIN_CONTAINER_CPU_LIMIT. * Rename RESOURCE_MEMORY_REQUEST to JOB_POD_MAIN_CONTAINER_MEMORY_REQUEST. * Rename RESOURCE_MEMORY_LIMIT to JOB_POD_MAIN_CONTAINER_MEMORY_LIMIT. * Remove worker suffix from created pods to reduce confusion with actual worker pods. * Use sync instead of worker to name job pods.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/documentation
Improvements or additions to documentation
area/platform
issues related to the platform
area/scheduler
area/worker
Related to worker
kubernetes
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
As title. Our env vars have increased with inconsistent naming.
This PR is to enforce some consistency so this section is easily to read, understand and modify.
Since this change is potentially breaking. I will use this PR as a catch-all and merge various changes into this PR so I can merge all these changes in OSS at once and release.
This PR description will be updated and secondary PRs are merged into this.
How
This specific PR renames the logging variable
GCP_STORAGE_BUCKET
toGCS_LOG_BUCKET
to make clear what the env var is used for.This also matches the S3 log env var named
S3_LOG_BUCKET
.Rename:
Replace worker suffix from pod name with sync to reduce confusion with actual worker pods.
Recommended reading order
🚨 User Impact 🚨
Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.
See the How section.
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/SUMMARY.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changes