-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the orchestrator label to orchestrators so we can better differentiate orchestrator pods. This is useful since orchestrator pods are the only pods in the job namespace with a need to talk to the main Airbyte application pods. These labels allow us to apply more granular network filtering. Also took the chance to do some clean up of labels.
- Loading branch information
Showing
10 changed files
with
107 additions
and
67 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
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
42 changes: 42 additions & 0 deletions
42
airbyte-commons-worker/src/main/java/io/airbyte/workers/process/Metadata.java
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,42 @@ | ||
/* | ||
* Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
*/ | ||
|
||
package io.airbyte.workers.process; | ||
|
||
/** | ||
* The following variables help, either via names or labels, add metadata to processes actually | ||
* running operations to ease operations. | ||
*/ | ||
public final class Metadata { | ||
|
||
/** | ||
* General Metadata | ||
*/ | ||
static final String JOB_LABEL_KEY = "job_id"; | ||
static final String ATTEMPT_LABEL_KEY = "attempt_id"; | ||
static final String WORKER_POD_LABEL_KEY = "airbyte"; | ||
static final String WORKER_POD_LABEL_VALUE = "job-pod"; | ||
public static final String CONNECTION_ID_LABEL_KEY = "connection_id"; | ||
|
||
/** | ||
* These are more readable forms of {@link io.airbyte.config.JobTypeResourceLimit.JobType}. | ||
*/ | ||
public static final String JOB_TYPE_KEY = "job_type"; | ||
public static final String SYNC_JOB = "sync"; | ||
public static final String SPEC_JOB = "spec"; | ||
public static final String CHECK_JOB = "check"; | ||
public static final String DISCOVER_JOB = "discover"; | ||
|
||
/** | ||
* A sync job can actually be broken down into the following steps. Try to be as precise as possible | ||
* with naming/labels to help operations. | ||
*/ | ||
public static final String SYNC_STEP_KEY = "sync_step"; | ||
public static final String READ_STEP = "read"; | ||
public static final String WRITE_STEP = "write"; | ||
public static final String NORMALIZE_STEP = "normalize"; | ||
public static final String CUSTOM_STEP = "custom"; | ||
public static final String ORCHESTRATOR_STEP = "orchestrator"; | ||
|
||
} |
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.