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
I have a monorepo with a central skaffold.yaml file that includes all other skaffold.yaml files with requires. At some point someone in the configuration included an artifact that is duplicate of another. Normally skaffold throws an error like this
source: /tmp/skaffold/skaffold.yaml, in module "other": source: /tmp/skaffold/other2.yaml, in module "postgresql2": source: /tmp/skaffold/other.yaml, in module "postgresql": source: /tmp/skaffold/skaffold.yaml, in module "traefik": duplicate image "postgresql-ci" found in sources /tmp/skaffold/other.yaml and /tmp/skaffold/other2.yaml: artifact image names must be unique across all configurations
source: /tmp/skaffold/skaffold.yaml, in module "other" on line 9 column 14: source: /tmp/skaffold/other2.yaml, in module "postgresql2" on line 9 column 14: source: /tmp/skaffold/other.yaml, in module "postgresql" on line 9 column 14: source: /tmp/skaffold/skaffold.yaml, in module "traefik" on line 9 column 14: duplicate image "postgresql-ci" found in sources /tmp/skaffold/other.yaml and /tmp/skaffold/other2.yaml: artifact image names must be unique across all configurations
In my case; trying to deploy traefik service with skaffold deploy -m traefik, hungs at Helm release traefik not installed. Installing... and then kills my laptop as it runs out of memory. Scaling down the configuration to only require two other configs makes it so it prints out the error instead.
For the example I provided this message appears 15 times instead of just once, adding 2 more requires goes up to 134 times, adding 2 more requires goes up to 518, etc. In my real repository I have 47 configurations so it looks like it implodes on memory use. I think having multiple configurations somehow introduces a recursive loop for this check that can kill the hosts.
Expected behavior
Skaffold should not hang and run out of memory if on a multi-configuration environment someone introduces the same artifact twice.
Actual behavior
Skaffold hangs on the deploy step indefinitely and kills the host with OOM.
I have a monorepo with a central skaffold.yaml file that includes all other skaffold.yaml files with
requires
. At some point someone in the configuration included an artifact that is duplicate of another. Normally skaffold throws an error like thisIn my case; trying to deploy traefik service with
skaffold deploy -m traefik
, hungs atHelm release traefik not installed. Installing...
and then kills my laptop as it runs out of memory. Scaling down the configuration to only require two other configs makes it so it prints out the error instead.For the example I provided this message appears 15 times instead of just once, adding 2 more requires goes up to 134 times, adding 2 more requires goes up to 518, etc. In my real repository I have 47 configurations so it looks like it implodes on memory use. I think having multiple configurations somehow introduces a recursive loop for this check that can kill the hosts.
Expected behavior
Skaffold should not hang and run out of memory if on a multi-configuration environment someone introduces the same artifact twice.
Actual behavior
Skaffold hangs on the deploy step indefinitely and kills the host with OOM.
Information
skaffold.yaml
other.yaml
other2.yaml
Dockerfile.postgres
Steps to reproduce the behavior
then add more other.yaml files and rerun
The text was updated successfully, but these errors were encountered: