fix(k8s): resolve internal job compose files from data/compose-jobs
Some checks failed
Lint Checks / Run linter (pull_request) Successful in 2m5s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m43s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Failing after 5m4s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Failing after 6m26s
Webapp Test / Run webapp test suite (pull_request) Successful in 7m36s
Smoke Test / Run basic test suite (pull_request) Successful in 5m32s
Some checks failed
Lint Checks / Run linter (pull_request) Successful in 2m5s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m43s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Failing after 5m4s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Failing after 6m26s
Webapp Test / Run webapp test suite (pull_request) Successful in 7m36s
Smoke Test / Run basic test suite (pull_request) Successful in 5m32s
resolve_job_compose_file() used Path(stack).parent.parent for the internal fallback, which resolved to data/stacks/compose-jobs/ instead of data/compose-jobs/. This meant deploy create couldn't find job compose files for internal stacks, so they were never copied to the deployment directory and never created as k8s Jobs. Use the same data directory resolution pattern as resolve_compose_file. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a1b5220e40
commit
68ef9de016
@ -155,9 +155,8 @@ def resolve_job_compose_file(stack, job_name: str):
|
||||
if proposed_file.exists():
|
||||
return proposed_file
|
||||
# If we don't find it fall through to the internal case
|
||||
# TODO: Add internal compose-jobs directory support if needed
|
||||
# For now, jobs are expected to be in external stacks only
|
||||
compose_jobs_base = Path(stack).parent.parent.joinpath("compose-jobs")
|
||||
data_dir = Path(__file__).absolute().parent.joinpath("data")
|
||||
compose_jobs_base = data_dir.joinpath("compose-jobs")
|
||||
return compose_jobs_base.joinpath(f"docker-compose-{job_name}.yml")
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user