gentle-umbrella-55872
05/05/2024, 4:38 PM./manifests/*
i get an error, that the file is not found. Thats fine for the moment, because the file is searched within the directory where the RenderTemplate
is located.
But as soon as i try to change the path one directory up, for example ../manifests/*
i get the following error :/
sh
Error validating configure handler output from provider local-kubernetes for Deploy type kubernetes:
config does not match any of the allowed types
brief-restaurant-63679
05/21/2024, 12:18 PM.
├── api
│ └── garden.yml
├── garden.yml
└── manifests
In this case, you can't by default reference the manifests in the api/garden.yml
file because it would require files: ../manifests/**/*
and that ../
is basically not allowed.
However, in api/garden.yml
you can set:
source:
path: ../
That basically "tricks" Garden into thinking the action is at the root of the project and you would now reference the manifests with files: ./manifests/**/*
.
There's an example of this pattern here: https://github.com/garden-io/garden/tree/main/examples/k8s-deploy-patch-resources
The source.path
field is basically the only config field in where you'll see ..
in the context of a path.