fix: rename LOCALSTACK_HOST to K8S_LOCALSTACK_HOST to avoid awslocal conflict

This commit is contained in:
frostebite
2026-01-27 22:49:54 +00:00
parent 258e40d807
commit 33fccb8d62
4 changed files with 9 additions and 6 deletions
+2 -1
View File
@@ -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
Generated Vendored
+3 -2
View File
@@ -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;
Generated Vendored
+1 -1
View File
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) => {