best-flower-46100
03/09/2023, 4:07 PM--output=json
flag and grep "v-.\*" on the output - the problem with this solution is that we prefer to see regular logs in pipeline for debugging and monitoring progress and in this way we'd only see json.
- Fetch info from one of the logs in .garden/logs
- the problem here is that grepping gets even more complex and it's relying on the log structure and wording to stay the same which doesn't seem reliable and would be difficult to track
Is there any other method you could recommend?average-painter-87026
03/10/2023, 8:13 PMmyservice
) which depends on an image that is built from a container module (myimage
). myservice
has myimage
in it's build dependencies
When I garden deploy myservice
, it kicks off the build myimage
and deploy myservice
steps at the same time. Often, myservice
will timeout while waiting for the build to finish. Is it possible to configure garden to not even start to deploy myservice
until myimage
is done building?rough-kilobyte-44808
03/15/2023, 7:58 PMaloof-lamp-69262
03/15/2023, 8:32 PMZ
does not exist. It does not keep using the namespace Y
that was already established and deployed to.
Please note that .garden
is ignored and not part of the git repo, so no issues there.
Alternatively is there a garden cli command to force the usage of a namespace?
Thank you.icy-furniture-17516
03/16/2023, 11:09 AMbrief-dawn-88958
03/17/2023, 10:02 AMyaml
# module..
variables:
memory-mb: 512
# k8s manifest
env:
- name: HEAP_OPTS
value: "-Xms${(var.memory-mb * 0.9) / 2}m -Xmx${var.memory-mb * 0.9}m"
Unfortunately, jvm doesn't take doubles, it wants ints.
The only way I could come up to solve this with the existing templating functions is this one:
split(string((var.memory-mb * 0.9) / 2), '.')[0]
-> Unable to parse as valid template string.
It doesn't work due to https://github.com/garden-io/garden/issues/3001.
A toInt
function would really come in handy here.
Am I missing something?chilly-waitress-62592
03/22/2023, 2:36 PMnodeSelector
exposed.bright-policeman-43626
03/27/2023, 7:15 AMdry-cartoon-14056
03/27/2023, 3:10 PMfresh-yak-35965
03/30/2023, 5:18 PMicy-furniture-17516
03/31/2023, 11:06 AMicy-furniture-17516
04/02/2023, 4:12 AMgarden deploy
where I have a kubernetes or a container module, that defines ingresses, then the module fails because it tries to create the ingress too early:
Failed deploying service 'prometheus' (from module 'prometheus'). Here is the output:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Command "/Users/xy/.garden/tools/kubectl/f8a39834529cd1ed/kubectl --context=minikube apply --output=json -f -" failed with code 1:
Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": failed to call webhook: Post
"https://ingress-nginx-controller-admission.ingress-nginx.svc:443/networking/v1/ingresses?timeout=10s": dial tcp 10.101.27.41:443: connect: connection refused
Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": failed to call webhook: Post
"https://ingress-nginx-controller-admission.ingress-nginx.svc:443/networking/v1/ingresses?timeout=10s": dial tcp 10.101.27.41:443: connect: connection refused
It succeeds when I rerun garden deploy
best-flower-46100
04/05/2023, 12:03 PMeager-coat-70115
04/05/2023, 7:32 PMbrew remove garden-cli
still leaves garden running (tried going to http://localhost/something and got the garden 404 page still that says it's running)hallowed-apartment-22484
04/10/2023, 12:26 AMExternalDNS
, are not specific to a particular developer's namespace.
What would be the recommended way to manage deployments that are done at the cluster level vs deployments done for a particular namespace. (I know my wording is confusing - i'm not really sure the best way to phrase the question π )colossal-salesclerk-87522
04/11/2023, 11:51 AMcold-state-31010
04/13/2023, 3:44 PMaloof-lamp-69262
04/20/2023, 5:46 PMbuildArgs
to the templated
module. I get the error key "buildArgs" is not allowed at path [buildArgs]
If I try to add buildArgs
in the template itself and use ${inputs.XXX}
it complains Could not find key inputs. Available keys: command, git, local, project and secrets.
Basically it looks like inside the template I can not use inputs
except in the modules
section. So currently as it stands I can not use buildArgs
with templates
. This is a blocker for using this feature. Is there any other way around it?orange-ability-1812
04/21/2023, 3:39 AMaloof-lamp-69262
04/21/2023, 5:01 PMModuleTemplate
based off an existing one?
The idea here is the project is giving, same template X and then a set of modules can create their own template Y based of template X and define the arguments that are common for all of it's services instead of repeating them for each template of the base template X.
Can this be done? I tried an example but I can't get it to workdamp-manchester-26851
04/21/2023, 5:08 PMfrontend and api-gateway
. Their ports are respectively 3000 and 3001. The main issue is that i cant do a HTTP-request to http://api-gateway:3001 ( i get an ERR_NAME_NOT_RESOLVED
).
I can only do that using external IP-address (http://127.10.0.7:3001)
.
When i used Docker Compose, i had no problems with getting access to the other services with api-gateway:3001
.
I am sorry in advance for it, but can i ask one more question? I run my own test in Garden, but i cant see the succeed
option in the Dashboard near it. It uses Jest-library to run the test. And it really passes it.
Thanks in advance!lively-actor-89932
04/25/2023, 2:20 PMyaml
kind: Module
type: helm
name: kafka
include: []
repo: https://charts.bitnami.com/bitnami
chart: kafka
# version: 21.4.6
values:
maxMessageBytes: "10000000"
persistence:
enabled: false
numPartitions: 10
aloof-lamp-69262
04/25/2023, 3:13 PMrun workflow XXX
We have one workflow specifically designed for BuildKite and it could use calling other workflow instead of having to duplicate the steps there and copying them over... I think we can all agree copying is bad, will break the single source of truth concept.
Thank you.aloof-lamp-69262
04/26/2023, 8:33 PM.garden/error.log
is always empty.
However I find the actual file under .garden/logs/error.log
Alongside development.log
How can I fix this to not go under logs folder and just stay on the root folder.
I searched the documents and I could not find a way to influence this via an env variable or some sort of config.
Thank you!orange-ability-1812
04/30/2023, 2:59 AMgardendev/garden-gcloud:latest
$ gcloud --quiet components update
Beginning update. This process may take several minutes.
Your current Google Cloud CLI version is: 411.0.0
You will be upgraded to version: 428.0.0
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β These components will be updated. β
βββββββββββββββββββββββββββββββββββ¬βββββββββββββ¬βββββββββββ€
β Name β Version β Size β
βββββββββββββββββββββββββββββββββββΌβββββββββββββΌβββββββββββ€
β BigQuery Command Line Tool β 2.0.91 β 1.6 MiB β
β Bundled Python 3.9 β 3.9.16 β 63.4 MiB β
β Cloud Storage Command Line Tool β 5.23 β 15.5 MiB β
β Google Cloud CLI Core Libraries β 2023.04.25 β 20.3 MiB β
β Google Cloud CRC32C Hash Tool β 1.0.0 β 1.2 MiB β
β anthoscli β 0.2.36 β 68.4 MiB β
β gcloud cli dependencies β 2023.04.25 β 11.3 MiB β
β gke-gcloud-auth-plugin β 0.5.2 β 7.7 MiB β
β kubectl β 1.24.13 β < 1 MiB β
β kubectl β 1.24.13 β 92.6 MiB β
βββββββββββββββββββββββββββββββββββ΄βββββββββββββ΄βββββββββββ
A lot has changed since your last upgrade. For the latest full release notes,
and so on.early-finland-63883
05/02/2023, 5:02 PMaloof-lamp-69262
05/03/2023, 4:30 PMbored-grass-81679
05/05/2023, 12:06 PM/snapshot/project/tmp/pkg/cli/node_modules/execa/lib/error.js:59
Β Β Β Β Β Β Β error = new Error(message);
Β Β Β Β Β Β Β Β Β ^
Error: Command "git status" failed with code 128:
fatal: this operation must be run in a work tree
Β Β Β at makeError (/snapshot/project/tmp/pkg/cli/node_modules/execa/lib/error.js:59:11)
Β Β Β at handlePromise (/snapshot/project/tmp/pkg/cli/node_modules/execa/index.js:114:26)
Β Β Β at processTicksAndRejections (node:internal/process/task_queues:95:5)
Β Β Β at exec (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/util/util.ts:231:17)
Β Β Β at /snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/vcs/git.ts:97:26
Β Β Β at wrapped.ensureSafeDirGitRepo (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/vcs/git.ts:162:7)
Β Β Β at wrapped.getRepoRoot (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/vcs/git.ts:205:5)
Β Β Β at wrapped.getFiles (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/vcs/git.ts:269:21)
Β Β Β at findConfigPathsInPath (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/util/fs.ts:175:17)
Β Β Β at /snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/watch.ts:298:29
Here is more context about our setup and about the encoutered problem:
- Garden version: 0.12.55
- We include 3 remote sources in the garden.project.yaml file.
- We have a deployment bash script which runs garden link source
on those remote sources and then garden dev
- The problem is sadly only reproducible on my coworkers MacOS laptop at the moment.
I would appreciate any leads on this since it's affecting my coworker's productivity by quite a lot. π¦wonderful-table-85939
05/09/2023, 11:40 AMaloof-lamp-69262
05/11/2023, 4:05 PMoutputs
. It looks like it is not affecting functionality
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 drain listeners added to [ReadEntry]. Use emitter.setMaxListeners() to increase limit
We get about 30 - 50 of such outputs. Please find attached image.
https://cdn.discordapp.com/attachments/1106250635931811981/1106250636175089714/Image_5-11-23_at_12.04_PM.jpegβΎ