kpt: Kustomize build fn errors
I’ve just tested it with the helm example. It works but I had to change paths in the example, because we can’t have both relatively helm-template/local-configs and (pwd)/helloworld-chart at the same time in the second command.
On the kustomize side (which was my first issue in https://github.com/GoogleContainerTools/kpt/issues/791), I still have some problem (with the image but not with the kustomize official binary). I don’t think this is related to this but I prefer to share it:
Λ\: ./kpt pkg get "https://gitlab.com/davinkevin/Podcast-Server.git/distribution/kpt/podcast-server" podcast-server
fetching package /distribution/kpt/podcast-server from https://gitlab.com/davinkevin/Podcast-Server to podcast-server
/tmp/tmp-123 took 8s
Λ\: cat fn.yaml
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ File: fn.yaml
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ # call `kpt fn run` on a directory containing this file, mounting the helm chart at /source
2 │ apiVersion: v1
3 │ kind: ConfigMap
4 │ metadata:
5 │ name: build
6 │ annotations:
7 │ config.kubernetes.io/function: |
8 │ container:
9 │ image: gcr.io/kpt-functions/kustomize-build
10 │ data:
11 │ path: /source
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
/tmp/tmp-123
Λ\: ./kpt fn run . --mount type=bind,src=(pwd)/podcast-server,dst=/source
[ERROR] Kustomize build command results in error: Error: accumulating resources: accumulateFile "accumulating resources from 'git::https://gitlab.com/davinkevin/Podcast-Server.git//distribution/kubernetes/base/': evalsymlink failure on '/source/git::https:/gitlab.com/davinkevin/Podcast-Server.git/distribution/kubernetes/base' : lstat /source/git::https:: no such file or directory", loader.New "stat /var/folders/z2/0d2vn4tn3_j7spd4v_t9y0s80000gn/T/: no such file or directory"
Error: exit status 1
/tmp/tmp-123
Λ\: kustomize build podcast-server/
apiVersion: v1
data:
concurrent-download: "4"
...
Do you think we should open a new issue (or maybe the previous one) ?
PS: The binary of kpt hasn’t be published on brew for the version 0.32.0 sadly 😓.
_Originally posted by @davinkevin in https://github.com/GoogleContainerTools/kpt/issues/587#issuecomment-663892463_
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 34 (29 by maintainers)
Thanks for the answer @prachirp & @aodinokov …
and I’m sorry, I totally forgot the network flag 😓.
I will add this to the project and see if all is ok as soon as possible.
Thanks again 😉