Skip to content

Commit e86c2f8

Browse files
fix(cdk): use AIRBYTE_EDITION env var instead of DEPLOYMENT_MODE for cloud feature flag (#76478)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 8608fd2 commit e86c2f8

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

airbyte-cdk/bulk/core/base/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Version 1.0.3
2+
3+
Use AIRBYTE_EDITION env var instead of DEPLOYMENT_MODE for the AIRBYTE_CLOUD_DEPLOYMENT feature flag, matching the platform's current environment variable.
4+
15
## Version 1.0.2
26

37
Improved null handling for array types.

airbyte-cdk/bulk/core/base/src/main/kotlin/io/airbyte/cdk/command/FeatureFlag.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ enum class FeatureFlag(
2424
/** [AIRBYTE_CLOUD_DEPLOYMENT] is active when the connector is running in Airbyte Cloud. */
2525
AIRBYTE_CLOUD_DEPLOYMENT(
2626
micronautEnvironmentName = AIRBYTE_CLOUD_ENV,
27-
envVar = EnvVar.DEPLOYMENT_MODE,
27+
envVar = EnvVar.AIRBYTE_EDITION,
2828
requiredEnvVarValue = "CLOUD",
2929
transformActualValue = { it.trim().uppercase() },
3030
);
@@ -34,7 +34,7 @@ enum class FeatureFlag(
3434
get() = "${envVar.name}=$requiredEnvVarValue"
3535

3636
enum class EnvVar(val defaultValue: String = "") {
37-
DEPLOYMENT_MODE
37+
AIRBYTE_EDITION
3838
}
3939

4040
companion object {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=1.0.2
1+
version=1.0.3

0 commit comments

Comments
 (0)