talm icon indicating copy to clipboard operation
talm copied to clipboard

Windows support is broken

Open stevefan1999-personal opened this issue 1 year ago • 7 comments

Same issue with #10, but it is more of a general issue with Windows

stevefan1999-personal avatar Jun 20 '24 14:06 stevefan1999-personal

Interesting, what if you'll specify -t option with backward slash?

kvaps avatar Jun 20 '24 21:06 kvaps

Member

Same

 steve   vpslab2  master ≢  ?6    talm -n 206.237.7.179 --talosconfig .\talosconfig template -t templates\worker.yaml                                                                                                       in pwsh at 18:41:59
failed to render templates: template templates\worker.yaml not found

stevefan1999-personal avatar Jun 21 '24 10:06 stevefan1999-personal

Sorry, currenly I have no windows machine to test, but we're using the same library as helm to render manifests. Could you provide me output of helm template output for any helm chart? It should include all the paths for templates in it's output

kvaps avatar Jun 21 '24 11:06 kvaps

Sorry, currenly I have no windows machine to test, but we're using the same library as helm to render manifests. Could you provide me output of helm template output for any helm chart? It should include all the paths for templates in it's output

 steve   vpslab2  master ≢  ?6    helm template test . -f .\values.yaml --debug                                                                                                                                             in pwsh at 19:11:33
install.go:193: [debug] Original chart version: ""
install.go:210: [debug] CHART PATH: F:\talm\vpslab2


Error: template: vpslab2/templates/worker.yaml:2:4: executing "vpslab2/templates/worker.yaml" at <include "talos.config" .>: error calling include: template: vpslab2/templates/_helpers.tpl:12:17: executing "talos.config" at <include "talm.discovered.hostname" .>: error calling include: template: vpslab2/charts/talm/templates/_helpers.tpl:19:10: executing "talm.discovered.hostname" at <lookup>: wrong number of args for lookup: want 4 got 3
helm.go:84: [debug] template: vpslab2/templates/worker.yaml:2:4: executing "vpslab2/templates/worker.yaml" at <include "talos.config" .>: error calling include: template: vpslab2/templates/_helpers.tpl:12:17: executing "talos.config" at <include "talm.discovered.hostname" .>: error calling include: template: vpslab2/charts/talm/templates/_helpers.tpl:19:10: executing "talm.discovered.hostname" at <lookup>: wrong number of args for lookup: want 4 got 3

not sure how to do it

stevefan1999-personal avatar Jun 21 '24 11:06 stevefan1999-personal

@stevefan1999-personal try this:

helm template asd oci://ghcr.io/stefanprodan/charts/podinfo | grep Source

kvaps avatar Jul 08 '24 11:07 kvaps

 steve   vpslab3  master ≢  ?6    helm template asd oci://ghcr.io/stefanprodan/charts/podinfo | grep Source                                                                                                                   in pwsh at 19:33:40
Pulled: ghcr.io/stefanprodan/charts/podinfo:6.7.0
Digest: sha256:104d101017e501c63b3aa71b20d5edd2ca6d5d58cbc57ff8163770110f92b9db
# Source: podinfo/templates/service.yaml
# Source: podinfo/templates/deployment.yaml
# Source: podinfo/templates/tests/grpc.yaml
# Source: podinfo/templates/tests/jwt.yaml
# Source: podinfo/templates/tests/service.yaml

stevefan1999-personal avatar Jul 08 '24 11:07 stevefan1999-personal

I just tried talm on windows today I get the same error above, talm worked fine on the same files using wsl

adamcirillo avatar Feb 22 '25 15:02 adamcirillo