brief-restaurant-63679
12/01/2023, 8:15 AMRevisionHistoryLimit to 10 if the --production flag is set.
Is that correct? I don't see any reference to it in the source code?breezy-queen-93424
12/04/2023, 8:24 AMbrief-restaurant-63679
12/08/2023, 11:29 AMbrief-restaurant-63679
12/10/2023, 9:04 PMℹ providers → [kubernetes] Waiting for resources to be ready...
ℹ providers → [kubernetes] Deployment/default-backend: Waiting for rollout: 0 out of 1 new replicas updated...
⚠ providers → [kubernetes] Deployment/default-backend: Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "4dabd82e93f4ced89f660526f973eb846c4c40f182ae572593bc395cbc41391d": plugin type="flannel" failed (add): open /run/flannel/subnet.env: no such file or directory
✖ providers → Failed processing resolve provider ephemeral-kubernetes (took 30.9 sec). This is what happened:
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Timed out waiting for providers to deploy after 20 seconds
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Failed resolving one or more providers:
- ephemeral-kubernetes
See .garden/error.log for detailed error message
I can create a GitHub issue but just wanted to check first whether this was known a issue? Or for that matter something unrelated to me being out of minutes?swift-garage-61180
01/11/2024, 10:49 AMscan.git.mode field in combination with the (now deprecated) modules.include / modules.exclude fields.
https://github.com/garden-io/garden/pull/5626orange-ability-1812
01/23/2024, 2:23 AM--force-refresh then the providers will re-initialize. But in some other cases without this flag I have found them refreshing. My question is what specifically can trigger a provider refresh?
I ask because I have start putting a lot of stuff into an exec dependency provider for e.g. starting minikube, setting up credentials, etc. and it can take a while to restore the cluster state since then everything needs to redeploy. Maybe this isn't a good idea in general but I just want to better understand how that mechanism as it isn't documented to my knowledge.orange-ability-1812
01/29/2024, 4:44 PMlocal-kubernetes provider tlsCertificates option. Some description of what mechanically this actually does would be helpful. Does it copy the TLS secret to other namespaces?orange-ability-1812
02/01/2024, 1:03 AMorange-ability-1812
02/01/2024, 1:04 AMbright-policeman-43626
04/02/2024, 7:06 AMbright-policeman-43626
04/08/2024, 7:43 AMbright-policeman-43626
04/22/2024, 3:48 PMbright-policeman-43626
04/25/2024, 9:12 PMbright-policeman-43626
05/01/2024, 9:42 AMbig-solstice-45894
05/01/2024, 10:16 AMbright-policeman-43626
05/01/2024, 7:11 PMbright-policeman-43626
05/15/2024, 4:31 PMbright-policeman-43626
05/21/2024, 2:21 AMkubernetes-exec I love running the actions directly in the containers!
---
kind: Deploy
type: container
name: redis
description: Redis container edge-api-cc
spec:
image: redis:5-alpine
ports:
- name: redis
containerPort: 6379
healthCheck:
command: [redis-cli, ping]
---
# Run action for Redis clear task
kind: Run
type: kubernetes-exec
name: redis-clear
description: Redis clear task
dependencies: [deploy.redis]
spec:
resource:
kind: "Deployment"
name: "redis"
command: [redis-cli, flushall]bright-policeman-43626
05/21/2024, 5:18 AMkind: Project
name: project
defaultEnvironment: local
dotIgnoreFile: .gitignore
variables:
user-namespace: local-env
base-hostname: local.app.garden
# Globally usable
RABBIT_URL: amqp://rabbitmq:5672
REDIS_URL: redis://redis:6379
And then I was able to reference it from any kind of resource; tasks, helm deployment, etc.
Example:
tasks:
- name: migrations
command: [/bin/sh, -c]
args: ["npm run migrations:up"]
env:
RABBIT_URL: ${var.RABBIT_URL}
REDIS_URL: ${var.REDIS_URL}
Now Garden detects them as circular references when I use it in Run actions for example.
kind: Run
name: migrations
type: container
spec:
image: ${actions.build.api-image.outputs.deploymentImageId}
command: [npm, run, migrations:up]
variables:
RABBIT_URL: ${var.RABBIT_URL} # This gets detected as as circular dependency
REDIS_URL: ${var.REDIS_URL}
Error:
Invalid template string (${var.RABBIT_URL}) at path RABBIT_URL: Invalid template string (${var.RABBIT_URL}): Circular reference detected when resolving key var.RABBIT_URL (var.RABBIT_URL)
This is definitely a bad experience because now I need to basically repeat the values in multiple spots or name the variables differently, which makes it incompatible with my 0.12 modules that I get as remote sources...swift-garage-61180
05/22/2024, 10:00 AMRABBIT_URL and REDIS_URL variables in the migrations action.
Action-level variables function as overrides for the project/environment-level ones. So if you simply skip these lines:\
RABBIT_URL: ${var.RABBIT_URL} # This gets detected as as circular dependency
REDIS_URL: ${var.REDIS_URL}
and keep these lines as they are:
tasks:
- name: migrations
command: [/bin/sh, -c]
args: ["npm run migrations:up"]
env:
RABBIT_URL: ${var.RABBIT_URL}
REDIS_URL: ${var.REDIS_URL}
The RABBIT_URL and REDIS_URL env vars should be read from the project-level variables without you needing to bring them in “manually” in the action-level variables.
I do think it would be nice to be able to reference project-level variables in a template expression for an action variable with the same name, but we’d need to be careful not to break the circular dependency detection where it’s actually desirable.
Hope this clarifies things!
Are there any other blockers for you to upgrade to Bonsai?lively-actor-89932
07/01/2024, 6:22 PMlemon-librarian-74479
10/06/2024, 5:14 PMcurved-intern-91221
10/07/2024, 7:13 AMorange-address-20484
02/26/2025, 8:36 AMfresh-raincoat-80017
02/26/2025, 9:24 AMfresh-raincoat-80017
02/26/2025, 9:25 AMchilly-gigabyte-83853
02/26/2025, 3:14 PMfresh-raincoat-80017
02/27/2025, 12:45 PMfresh-raincoat-80017
02/27/2025, 12:45 PMchilly-gigabyte-83853
02/27/2025, 1:39 PM