phantomjinx opened a new issue, #3246:
URL: https://github.com/apache/camel-k/issues/3246
I came across this yesterday while using 1.9.1-SNAPSHOT but now found it
also to be the case in the released 1.9.0.
Running `kamel install ....` from the CLI against OCP4, using OLM, the
operator crashes while trying to create a subscription.
```
kamel-1.9.0 install -n test-3d212af8-dedc-4ecc-9b05-c6f86a3ca0fe --olm=true
--olm-source test-camel-k-source --olm-source-namespace
test-3d212af8-dedc-4ecc-9b05-c6f86a3ca0fe --olm-channel stable-1.9OLM is
available in the cluster
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x1e5b18b]
goroutine 1 [running]:
github.com/apache/camel-k/pkg/util/olm.maybeSetTolerations(0xc0002fa1c0,
0x3949b30, 0x0, 0x0, 0x7ffcfc663992, 0x29)
github.com/apache/camel-k/pkg/util/olm/operator.go:238 +0x8b
github.com/apache/camel-k/pkg/util/olm.Install(0x2860358, 0xc00045bf00,
0x28a1e00, 0xc00045b380, 0x7ffcfc663992, 0x29, 0x0, 0x24e63f3, 0x7, 0x24e63f3,
...)
github.com/apache/camel-k/pkg/util/olm/operator.go:182 +0x3ed
github.com/apache/camel-k/pkg/cmd.(*installCmdOptions).install(0xc00023c2c0,
0xc000452000, 0xc00091c360, 0x0, 0x9, 0x0, 0x0)
github.com/apache/camel-k/pkg/cmd/install.go:249 +0x2745
github.com/apache/camel-k/pkg/cmd.newCmdInstall.func1(0xc000452000,
0xc00091c360, 0x0, 0x9, 0x0, 0x0)
github.com/apache/camel-k/pkg/cmd/install.go:71 +0xa7
github.com/spf13/cobra.(*Command).execute(0xc000452000, 0xc00091c2d0, 0x9,
0x9, 0xc000452000, 0xc00091c2d0)
github.com/spf13/[email protected]/command.go:856 +0x472
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001e5b80, 0xc00045bec0,
0xc00004c0b0, 0xb)
github.com/spf13/[email protected]/command.go:974 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/[email protected]/command.go:902
main.main()
github.com/apache/camel-k/cmd/kamel/main.go:47 +0x17d
```
The error comes from a `Config` struct not being included in the parent
Subscription
[struct](https://github.com/apache/camel-k/blob/main/pkg/util/olm/operator.go#L172).
Now this has been the case for some time but now seems to become a thing. I
though it might just disappear but now happens repeatedly.
I have include the fix in a
[commit](https://github.com/apache/camel-k/pull/3245/commits/c43f8780acfa974d347cc64d02edd02e7856450b)
in PR #3245 but that will not fix it in the release. I wonder if a respin of
1.9.0 si required? Can anyone confirm this happening?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]