citrusframework / citrusframework/yaks
Error when added as a task in Tekton, was looking for KubeConfigFile
- Dominant language
- Java
- Stars
- 90
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
Error occurred when adding to Yaks to Tekton.
```
[test-hello : test-hello] panic: user: Current requires cgo or $USER set in environment
[test-hello : test-hello]
[test-hello : test-hello] goroutine 1 [running]:
[test-hello : test-hello] github.com/citrusframework/yaks/pkg/client.getDefaultKubeConfigFile(0x111f25b, 0x14da260)
[test-hello : test-hello] /home/runner/work/yaks/yaks/pkg/client/client.go:149 +0xe0
[test-hello : test-hello] github.com/citrusframework/yaks/pkg/client.GetCurrentNamespace(0x0, 0x0, 0x111f2a0, 0xc000400200, 0xc0005dfd00, 0xc0005dfd00)
[test-hello : test-hello] /home/runner/work/yaks/yaks/pkg/client/client.go:157 +0x601
[test-hello : test-hello] github.com/citrusframework/yaks/pkg/cmd.(*RootCmdOptions).preRun(0xc0000b8200, 0xc000314500, 0xc00019e9a0, 0x1, 0x1, 0x0, 0x0)
[test-hello : test-hello] /home/runner/work/yaks/yaks/pkg/cmd/util.go:12 +0x55
[test-hello : test-hello] github.com/spf13/cobra.(*Command).execute(0xc000314500, 0xc00019e960, 0x1, 0x1, 0xc000314500, 0xc00019e960)
[test-hello : test-hello] /home/runner/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:805 +0x56b
[test-hello : test-hello] github.com/spf13/cobra.(*Command).ExecuteC(0xc000314280, 0xc0000b8080, 0xc000314280, 0x0)
[test-hello : test-hello] /home/runner/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914 +0x2fb
[test-hello : test-hello] github.com/spf13/cobra.(*Command).Execute(...)
[test-hello : test-hello] /home/runner/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
[test-hello : test-hello] main.main()
[test-hello : test-hello] /home/runner/work/yaks/yaks/cmd/manager/main.go:42 +0x178
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.