Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during conversion (from cli) when the output format of helm is chosen #184

Open
gbey opened this issue Jul 28, 2023 · 0 comments
Open

Comments

@gbey
Copy link

gbey commented Jul 28, 2023

Issue - When shifter was run from the cli (command and output below), with the '-o helm' argument, it panics with an exit code 2.

Environment details -

OS - Amazon Linux 2, go version go1.19.9 linux/amd64

Running shifter locally via cli

Input manifest - ./_test/yaml/multidoc/os-nginx.yaml

I am using the latest release of shifter.

=================== Output log below ==============================

[root@ip-10-2-3-65 shifter]# go run shifter convert --output-format helm -i yaml ./_test/yaml/multidoc/os-nginx.yaml ./out/
2023/07/28 16:50:19


/ // / () / /_ _____
__ / __ / / // __/ _ / /
/ / / / / / __/ // __/ /
/
/
/ /
/// _/___//


2023/07/28 16:50:19 💡| INFO | Converting yaml ./_test/yaml/multidoc/os-nginx.yaml to helm ./out/
2023/07/28 16:50:19 🗨️ | DEBUG | Reading file information from: ./_test/yaml/multidoc/os-nginx.yaml
2023/07/28 16:50:19 💡| INFO | Reading all source files
2023/07/28 16:50:19 🗨️ | DEBUG | Reading file - ./_test/yaml/multidoc/os-nginx.yaml
2023/07/28 16:50:19 🗨️ | DEBUG | File contents loaded into Buffer.
2023/07/28 16:50:19 🗨️ | DEBUG | Converting DeploymentConfig
panic: reflect: Call with too few input arguments

goroutine 1 [running]:
reflect.Value.call({0x1a2b0c0?, 0x2d76b88?, 0x0?}, {0x1c30b10, 0x4}, {0xc0005c6ae0, 0x2, 0x1f530c8?})
/usr/lib/golang/src/reflect/value.go:427 +0x1b5a
reflect.Value.Call({0x1a2b0c0?, 0x2d76b88?, 0x2d45a80?}, {0xc0005c6ae0?, 0x0?, 0x19296e0?})
/usr/lib/golang/src/reflect/value.go:368 +0xbc
shifter/generator.NewGenerator({0x7ffc2624677b, 0x4}, {0xc00053fbc8, 0x2, 0x0?})
/root/shifter/shifter/generator/generator.go:37 +0x20f
shifter/ops.(*Converter).ConvertFiles(0xc000495860)
/root/shifter/shifter/ops/convert.go:141 +0x1d1
shifter/cmd.glob..func5(0x2d27e60?, {0xc00040a9c0, 0x2, 0x6?})
/root/shifter/shifter/cmd/convert.go:79 +0x3ac
github.com/spf13/cobra.(*Command).execute(0x2d27e60, {0xc00040a960, 0x6, 0x6})
/root/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:876 +0x67b
github.com/spf13/cobra.(*Command).ExecuteC(0x2d280e0)
/root/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/root/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918
shifter/cmd.Execute()
/root/shifter/shifter/cmd/root.go:46 +0x25
main.main()
/root/shifter/shifter/shifter.go:20 +0x17
exit status 2
[root@ip-10-2-3-65 shifter]#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant