-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: wrangle file/container constants into central location. (#13625)
- Loading branch information
Showing
28 changed files
with
157 additions
and
113 deletions.
There are no files selected for viewing
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
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
15 changes: 15 additions & 0 deletions
15
airbyte-commons-worker/src/main/kotlin/io/airbyte/workers/pod/ContainerConstants.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package io.airbyte.workers.pod | ||
|
||
object ContainerConstants { | ||
// shared containers | ||
const val INIT_CONTAINER_NAME = "init" | ||
|
||
// replication containers | ||
const val ORCHESTRATOR_CONTAINER_NAME = "orchestrator" | ||
const val SOURCE_CONTAINER_NAME = "source" | ||
const val DESTINATION_CONTAINER_NAME = "destination" | ||
|
||
// connector operation containers | ||
const val MAIN_CONTAINER_NAME = "main" | ||
const val SIDECAR_CONTAINER_NAME = "connector-sidecar" | ||
} |
31 changes: 31 additions & 0 deletions
31
airbyte-commons-worker/src/main/kotlin/io/airbyte/workers/pod/FileConstants.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package io.airbyte.workers.pod | ||
|
||
object FileConstants { | ||
// dirs | ||
const val SOURCE_DIR = "/source" | ||
const val DEST_DIR = "/dest" | ||
const val CONFIG_DIR = "/config" | ||
|
||
// pipes | ||
const val STDIN_PIPE_FILE = "stdin" | ||
const val STDOUT_PIPE_FILE = "stdout" | ||
const val STDERR_PIPE_FILE = "stderr" | ||
|
||
// output files | ||
const val EXIT_CODE_FILE = "exitCode.txt" | ||
const val JOB_OUTPUT_FILE = "jobOutput.json" | ||
|
||
// input and configuration files | ||
const val CONNECTION_CONFIGURATION_FILE = "connectionConfiguration.json" | ||
const val INIT_INPUT_FILE = "input.json" | ||
const val SIDECAR_INPUT_FILE = "sidecarInput.json" | ||
const val SOURCE_CONFIG_FILE = "sourceConfig.json" | ||
const val DESTINATION_CONFIG_FILE = "destinationConfig.json" | ||
const val SOURCE_CATALOG_FILE = "sourceCatalog.json" | ||
const val DESTINATION_CATALOG_FILE = "destinationCatalog.json" | ||
const val INPUT_STATE_FILE = "inputState.json" | ||
|
||
// marker files | ||
const val TERMINATION_MARKER_FILE = "TERMINATED" | ||
const val KUBE_CP_SUCCESS_MARKER_FILE = "FINISHED_UPLOADING" | ||
} |
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.