You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build.task-py → [verbose] Starting Pod kaniko-myservice-0f8ae4 with command 'sh -c /kaniko/executor "--context" "dir:///.garden/context" "--dockerfile" "Dockerfile" "--destination" "accountnumber.dkr.ecr.us-west-2.amazonaws.com/myproject/myservice:v-4e23f7add0" "--cache-repo accountnumber.dkr.ecr.us-west-2.amazonaws.com/myproject" "--build-arg" "GARDEN_MODULE_VERSION=v-4e23f7add0" "--build-arg" "GARDEN_ACTION_VERSION=v-4e23f7add0" "--build-arg" "RUN_ENV=dev" "--target" "prod";
Error: unknown command "GARDEN_MODULE_VERSION=v-4e23f7add0" for "executor"
Run 'executor --help' for usage.
It appears the --cache-repo parameter needs to be a separate string but the garden regex won't allow it.
Expected behavior
To be able to supply a cache-repo to kaniko per garden documentation.
Reproducible example
Info above.
Workaround
Don't know of any workaround, the same regex is run if I try to put the extraFlags in the container spec.
Suggested solution(s)
Improve or remove regex.
Additional context
cluster-buildkit doesn't check formatting of extraFlags from the spec, not sure why kaniko does? I tested both 0.13 and 0.12 versions, wondering if this ever worked, doesn't look like that code has changed in over 3 years.
Your environment
Ubuntu Linux 22.04
EKS
garden 0.12.67 and 0.13.24
The text was updated successfully, but these errors were encountered:
I am hitting this bug when trying to set build-args as well. It seems that if you set the config up to pass a build arg the same way Garden does under the hood with its own build args, Garden will complain about the value being an invalid format (same reason as reported above).
@alexkuretz@mattpolzin thanks for the reports, this was actually an easy fix, I changed the regex to allow dashes. PR at #6149 and will hopefully make it into the next release 👍
Once the PR is merged, you can try it out using garden self-update bonsai-edge.
Bug
Current Behavior
Trying to test various Kaniko configurations with AWS ECR so setting the
--cache-repo
parameter inextraArgs
inproject.garden.yml
.This fails due to a regex rejecting the second parameter.
So I tried setting it as a single string to bypass the regex:
And get this:
It appears the
--cache-repo
parameter needs to be a separate string but the garden regex won't allow it.Expected behavior
To be able to supply a cache-repo to kaniko per garden documentation.
Reproducible example
Info above.
Workaround
Don't know of any workaround, the same regex is run if I try to put the extraFlags in the container spec.
Suggested solution(s)
Improve or remove regex.
Additional context
cluster-buildkit doesn't check formatting of
extraFlags
from the spec, not sure why kaniko does? I tested both 0.13 and 0.12 versions, wondering if this ever worked, doesn't look like that code has changed in over 3 years.Your environment
Ubuntu Linux 22.04
EKS
garden 0.12.67 and 0.13.24
The text was updated successfully, but these errors were encountered: