From cf9dce4431b0bde18176153b725ce5bed1e017bc Mon Sep 17 00:00:00 2001 From: Alex Buchanan Date: Thu, 12 Sep 2024 14:51:08 -0700 Subject: [PATCH] fix: use correct job resource values instead of env vars --- internal/cmd/local/local/install.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/internal/cmd/local/local/install.go b/internal/cmd/local/local/install.go index fe387a0..37a8cbd 100644 --- a/internal/cmd/local/local/install.go +++ b/internal/cmd/local/local/install.go @@ -190,15 +190,11 @@ func (c *Command) Install(ctx context.Context, opts InstallOpts) error { if opts.LowResourceMode { airbyteValues = append(airbyteValues, "server.env_vars.JOB_RESOURCE_VARIANT_OVERRIDE=lowresource", - "server.env_vars.JOB_MAIN_CONTAINER_CPU_LIMIT=0", - "server.env_vars.JOB_MAIN_CONTAINER_CPU_REQUEST=0", - "server.env_vars.JOB_MAIN_CONTAINER_MEMORY_LIMIT=0", - "server.env_vars.JOB_MAIN_CONTAINER_MEMORY_REQUEST=0", - - "workload-launcher.env_vars.JOB_MAIN_CONTAINER_CPU_LIMIT=0", - "workload-launcher.env_vars.JOB_MAIN_CONTAINER_CPU_REQUEST=0", - "workload-launcher.env_vars.JOB_MAIN_CONTAINER_MEMORY_LIMIT=0", - "workload-launcher.env_vars.JOB_MAIN_CONTAINER_MEMORY_REQUEST=0", + "global.jobs.resources.limits.cpu=0", + "global.jobs.resources.requests.cpu=0", + "global.jobs.resources.limits.memory=0", + "global.jobs.resources.requests.memory=0", + "workload-launcher.env_vars.CHECK_JOB_MAIN_CONTAINER_CPU_LIMIT=0", "workload-launcher.env_vars.CHECK_JOB_MAIN_CONTAINER_CPU_REQUEST=0", "workload-launcher.env_vars.CHECK_JOB_MAIN_CONTAINER_MEMORY_LIMIT=0",