icy-furniture-17516
05/20/2023, 12:39 PMgarden deploy kcp
Garden Bonsai (0.13) is in beta. Please report any issues here:
https://github.com/garden-io/garden/issues/new?labels=0.13&template=0-13-issue-template.md&title=0.13%3A+%5BBug%5D%3A
Deploy 🚀
ℹ garden → Running in namespace default in environment default
ℹ providers → Getting status...
✔ providers → Cached (in 2.1 sec)
ℹ providers → Run with --force-refresh to force a refresh of provider statuses.
ℹ graph → Resolving actions and modules...
✖
Error processing config for Deploy action kcp:
Invalid template string (${actions.build.kcpctl.outputs.dep…): Could not find key actions. Available keys: command, datetime, environment, git, inputs, local, parent, project, secrets, template, var and variables.
See .garden/error.log for detailed error message
calm-family-29323
05/20/2023, 1:43 PMgarden self-update edge-bonsai --force
and report back!
You'll also need to add apiVersion: garden.io/v1
to your project config.
Note: that deployment you have doesn't look quite right, build
should just be a single string and some fields should be under the spec
. See the new action reference here: https://github.com/garden-io/garden/blob/0.13/docs/reference/action-types/Deploy/kubernetes.mdicy-furniture-17516
05/20/2023, 1:45 PMgarden self-update edge-bonsai --force
Garden Bonsai (0.13) is in beta. Please report any issues here:
https://github.com/garden-io/garden/issues/new?labels=0.13&template=0-13-issue-template.md&title=0.13%3A+%5BBug%5D%3A
Update Garden 🗞️
Checking for target and latest versions...
✖ Unable to detect the latest Garden version greater or equal than 0.13.0 for the scope: patch
calm-family-29323
05/20/2023, 1:45 PMicy-furniture-17516
05/20/2023, 1:49 PMcurl -L https://download.garden.io/core/edge-bonsai/garden-edge-bonsai-macos-amd64.tar.gz -o garden-edge-bonsai-macos-amd64.tar.gz
tar -xzf garden-edge-bonsai-macos-amd64.tar.gz
./macos-amd64/garden version
0.12.51
calm-family-29323
05/20/2023, 1:53 PM0.12.51
version, that's just been left hardcoded since we made the branch. Will be a proper 0.13 on Tuesday once we release iticy-furniture-17516
05/20/2023, 1:55 PM~/Downloads/macos-amd64/garden deploy kcp
Deploy 🚀
⚠ Garden v0.13 (Bonsai) is a major release with significant changes. Please help us improve it by reporting any issues/bugs here:
https://go.garden.io/report-bonsai
→ Run garden util hide-warning 0.13-bonsai to disable this warning.
ℹ garden → Running in Garden environment default.default
ℹ providers → Getting status...
✔ providers → Cached (in 1.9 sec)
ℹ providers → Run with --force-refresh to force a refresh of provider statuses.
ℹ graph → Resolving actions and modules...
✖
Error processing config for Deploy action kcp:
Invalid template string (${actions.build.kcpctl.outputs.dep…): Could not find key actions. Available keys: command, datetime, environment, git, inputs, local, parent, project, secrets, template, var and variables.
Error:
Error processing config for Deploy action kcp:
Invalid template string (${actions.build.kcpctl.outputs.dep…): Could not find key actions. Available keys: command, datetime, environment, git, inputs, local, parent, project, secrets, template, var and variables.
at /snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/graph/actions.ts:162:13
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Error Details:
config:
kind: Deploy
description: kcp.io deployment
name: kcp
type: kubernetes
files:
- manifests/kcp.yaml
include:
- manifests/kcp.yaml
serviceResource:
kind: Deployment
name: kcp
containerName: kcp
variables:
image: ${actions.build.kcpctl.outputs.deployment-image-id}
version: ${actions.build.kcpctl.version}
build:
dependencies:
- kcpctl
internal:
basePath: /Users/peterwilcsinszky/src/github.com/pepov/kcp-playground
configFilePath: /Users/peterwilcsinszky/src/github.com/pepov/kcp-playground/kcp.garden.yml
calm-family-29323
05/20/2023, 1:58 PMicy-furniture-17516
05/20/2023, 1:59 PMcalm-family-29323
05/20/2023, 2:09 PMspec
field as of right now.
The deploy is wrong but due to how garden works it first tries to resolve template strings and only then validate the configs so it isn't complaining right now.
You can fix this by moving the templates directly into the spec block much like in our example.icy-furniture-17516
05/20/2023, 2:12 PMcalm-family-29323
05/20/2023, 2:14 PMicy-furniture-17516
05/20/2023, 2:14 PMcalm-family-29323
05/20/2023, 2:20 PM