Skip to content

Commit

Permalink
Add Airbyte server version env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopheDuong committed Jul 19, 2021
1 parent 67bafd8 commit 1a76aa6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public interface Configs {

String getAirbyteRole();

String getAirbyteServerHost();

String getAirbyteVersion();

String getAirbyteVersionOrWarning();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class EnvConfigs implements Configs {
private static final Logger LOGGER = LoggerFactory.getLogger(EnvConfigs.class);

public static final String AIRBYTE_ROLE = "AIRBYTE_ROLE";
public static final String AIRBYTE_SERVER_HOST = "AIRBYTE_SERVER_HOST";
public static final String AIRBYTE_VERSION = "AIRBYTE_VERSION";
public static final String WORKER_ENVIRONMENT = "WORKER_ENVIRONMENT";
public static final String WORKSPACE_ROOT = "WORKSPACE_ROOT";
Expand Down Expand Up @@ -91,6 +92,11 @@ public String getAirbyteRole() {
return getEnv(AIRBYTE_ROLE);
}

@Override
public String getAirbyteServerHost() {
return getEnsureEnv(AIRBYTE_SERVER_HOST);
}

@Override
public String getAirbyteVersion() {
return getEnsureEnv(AIRBYTE_VERSION);
Expand Down

0 comments on commit 1a76aa6

Please sign in to comment.