mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-06-12 17:03:55 -07:00
fix: rename LOCALSTACK_HOST to K8S_LOCALSTACK_HOST to avoid awslocal conflict
This commit is contained in:
@@ -35,7 +35,8 @@ jobs:
|
|||||||
AWS_FORCE_PROVIDER: aws
|
AWS_FORCE_PROVIDER: aws
|
||||||
RESOURCE_TRACKING: 'true'
|
RESOURCE_TRACKING: 'true'
|
||||||
# LocalStack container name on shared Docker network (for K8s pods to access)
|
# LocalStack container name on shared Docker network (for K8s pods to access)
|
||||||
LOCALSTACK_HOST: localstack-main
|
# Note: Using K8S_LOCALSTACK_HOST instead of LOCALSTACK_HOST to avoid conflict with awslocal CLI
|
||||||
|
K8S_LOCALSTACK_HOST: localstack-main
|
||||||
steps:
|
steps:
|
||||||
# ==========================================
|
# ==========================================
|
||||||
# SETUP SECTION
|
# SETUP SECTION
|
||||||
|
|||||||
+3
-2
@@ -4087,8 +4087,9 @@ class KubernetesJobSpecFactory {
|
|||||||
'INPUT_AWSENDPOINT',
|
'INPUT_AWSENDPOINT',
|
||||||
]);
|
]);
|
||||||
// Determine the LocalStack hostname to use for K8s pods
|
// Determine the LocalStack hostname to use for K8s pods
|
||||||
// Priority: LOCALSTACK_HOST env var > localstack-main (container name on shared network)
|
// Priority: K8S_LOCALSTACK_HOST env var > localstack-main (container name on shared network)
|
||||||
const localstackHost = process.env['LOCALSTACK_HOST'] || 'localstack-main';
|
// Note: Using K8S_LOCALSTACK_HOST instead of LOCALSTACK_HOST to avoid conflict with awslocal CLI
|
||||||
|
const localstackHost = process.env['K8S_LOCALSTACK_HOST'] || 'localstack-main';
|
||||||
cloud_runner_logger_1.default.log(`K8s pods will use LocalStack host: ${localstackHost}`);
|
cloud_runner_logger_1.default.log(`K8s pods will use LocalStack host: ${localstackHost}`);
|
||||||
const adjustedEnvironment = environment.map((x) => {
|
const adjustedEnvironment = environment.map((x) => {
|
||||||
let value = x.value;
|
let value = x.value;
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -35,8 +35,9 @@ class KubernetesJobSpecFactory {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
// Determine the LocalStack hostname to use for K8s pods
|
// Determine the LocalStack hostname to use for K8s pods
|
||||||
// Priority: LOCALSTACK_HOST env var > localstack-main (container name on shared network)
|
// Priority: K8S_LOCALSTACK_HOST env var > localstack-main (container name on shared network)
|
||||||
const localstackHost = process.env['LOCALSTACK_HOST'] || 'localstack-main';
|
// Note: Using K8S_LOCALSTACK_HOST instead of LOCALSTACK_HOST to avoid conflict with awslocal CLI
|
||||||
|
const localstackHost = process.env['K8S_LOCALSTACK_HOST'] || 'localstack-main';
|
||||||
CloudRunnerLogger.log(`K8s pods will use LocalStack host: ${localstackHost}`);
|
CloudRunnerLogger.log(`K8s pods will use LocalStack host: ${localstackHost}`);
|
||||||
|
|
||||||
const adjustedEnvironment = environment.map((x) => {
|
const adjustedEnvironment = environment.map((x) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user