We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What happened: I called a landscapercli blueprints render and the result is:
landscapercli blueprints render
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x9b384e]
What you expected to happen: No runtime error but a proper error message if the component descriptor is incorrect.
How to reproduce it (as minimally and precisely as possible):
landscapercli blueprints render blueprint -f cluster-values.yaml -c component-archive/component-descriptor.yaml
Contact me if you need the input files.
Anything else we need to know: Commit hash of my source repository for reproduction: 516e16067e5c6b20f071714fb00ce0dbd3ab7637
Environment:
$ landscapercli version Landscaper-CLI Version: v0.24.0-fa12c40eaa6c1b973cc9bfdc14519d25655a36f6 GitCommit: fa12c40eaa6c1b973cc9bfdc14519d25655a36f6 GitTreeState: dirty GoVersion: go1.20.10 Compiler: gc Platform: linux/amd64 Compatible Landscaper Version: v0.76.0 Compatible and included Component-Cli Version: v0.55.0
Stack trace:
$ ./test/render-blueprint.sh /usr/bin/yq /usr/local/bin/landscapercli resolving component descriptor reference "delivery-gear" (europe-docker.pkg.dev/gardener-project/releases/ocm.software/delivery-gear:0.199.0) panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x9b384e] goroutine 1 [running]: github.com/gardener/component-spec/bindings-go/apis/v2.FromUnstructuredObject({0x20dcaf8, 0xc000424be0}, 0x0, {0x20dca30, 0xc00048a210}) /go/src/github.com/gardener/landscaper-cli/vendor/github.com/gardener/component-spec/bindings-go/apis/v2/codecs.go:195 +0x4e github.com/gardener/component-spec/bindings-go/apis/v2.(*UnstructuredTypedObject).DecodeInto(...) /go/src/github.com/gardener/landscaper-cli/vendor/github.com/gardener/component-spec/bindings-go/apis/v2/unstructured.go:118 github.com/gardener/component-spec/bindings-go/oci.(*Resolver).resolve(0xc0003ccef8, {0x20f0e88, 0xc000054088}, {0x20dcaa8?, 0x0}, {0xc000412a00, 0x4a}, {0xc0005a77d8, 0x7}, 0x1) /go/src/github.com/gardener/landscaper-cli/vendor/github.com/gardener/component-spec/bindings-go/oci/resolve.go:143 +0x14d github.com/gardener/component-spec/bindings-go/oci.(*Resolver).ResolveWithBlobResolver(...) /go/src/github.com/gardener/landscaper-cli/vendor/github.com/gardener/component-spec/bindings-go/oci/resolve.go:134 github.com/gardener/landscaper/pkg/components/cnudie/componentresolvers.(*ociClient).ResolveWithBlobResolver(0xc0003ccee0, {0x20f0e88, 0xc000054088}, {0x20dcaa8?, 0x0}, {0xc000412a00, 0x4a}, {0xc0005a77d8, 0x7}) /go/src/github.com/gardener/landscaper-cli/vendor/github.com/gardener/landscaper/pkg/components/cnudie/componentresolvers/oci.go:125 +0x37c github.com/gardener/landscaper/pkg/components/cnudie.(*RegistryAccess).GetComponentVersion(0xc0007c35f0, {0x20f0e88?, 0xc000054088?}, 0xc00048a1e0) /go/src/github.com/gardener/landscaper-cli/vendor/github.com/gardener/landscaper/pkg/components/cnudie/registryaccess.go:25 +0x70 github.com/gardener/landscapercli/pkg/resolver.(*renderRegistryAccess).GetComponentVersion(0xc0003d4940, {0x20f0e88, 0xc000054088}, 0xc00048a1e0) /go/src/github.com/gardener/landscaper-cli/pkg/resolver/render_registryaccess.go:41 +0x310 github.com/gardener/landscapercli/cmd/blueprints.(*RenderOptions).resolveComponentReference(0xc0002b8dc0, {0x20f0e88, 0xc000054088}, {0x20f8018?, 0xc000344320?}, 0xc00048a1b0) /go/src/github.com/gardener/landscaper-cli/cmd/blueprints/render.go:215 +0x2ef github.com/gardener/landscapercli/cmd/blueprints.(*RenderOptions).Run(0xc0002b8dc0, {0x20f0e88, 0xc000054088}, {{0x20f4370?, 0xc00053c420?}, 0x1?}, {0x20ff8d8?, 0x300e908?}) /go/src/github.com/gardener/landscaper-cli/cmd/blueprints/render.go:283 +0x9eb github.com/gardener/landscapercli/cmd/blueprints.NewRenderCommand.func1(0xc000360f00?, {0xc0003459f0?, 0x1?, 0x5?}) /go/src/github.com/gardener/landscaper-cli/cmd/blueprints/render.go:128 +0x111 github.com/spf13/cobra.(*Command).execute(0xc000360f00, {0xc0003459a0, 0x5, 0x5}) /go/src/github.com/gardener/landscaper-cli/vendor/github.com/spf13/cobra/command.go:944 +0x847 github.com/spf13/cobra.(*Command).ExecuteC(0xc000356000) /go/src/github.com/gardener/landscaper-cli/vendor/github.com/spf13/cobra/command.go:1068 +0x3bd github.com/spf13/cobra.(*Command).Execute(0x20f0e88?) /go/src/github.com/gardener/landscaper-cli/vendor/github.com/spf13/cobra/command.go:992 +0x19 main.main() /go/src/github.com/gardener/landscaper-cli/landscaper-cli/main.go:21 +0x78
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened:
I called a
landscapercli blueprints render
and the result is:What you expected to happen:
No runtime error but a proper error message if the component descriptor is incorrect.
How to reproduce it (as minimally and precisely as possible):
Contact me if you need the input files.
Anything else we need to know:
Commit hash of my source repository for reproduction: 516e16067e5c6b20f071714fb00ce0dbd3ab7637
Environment:
Stack trace:
The text was updated successfully, but these errors were encountered: