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

fix: Add embedded kamelets directory check back #2021

Merged
merged 1 commit into from
Feb 11, 2021
Merged

fix: Add embedded kamelets directory check back #2021

merged 1 commit into from
Feb 11, 2021

Conversation

astefanutti
Copy link
Member

This fixes the following error message when the operator starts:

{"level":"error","ts":1613030254.0653336,"logger":"camel-k","msg":"error while listing resource files","dir":"/kamelets/","error":"open /kamelets: file does not exist","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tgithub.com/go-logr/zapr@v0.1.1/zapr.go:128\ngithub.com/apache/camel-k/pkg/util/log.Logger.Error\n\tgithub.com/apache/camel-k/pkg/util/log/log.go:75\ngithub.com/apache/camel-k/pkg/util/log.Error\n\tgithub.com/apache/camel-k/pkg/util/log/log.go:216\ngithub.com/apache/camel-k/pkg/resources.Resources\n\tgithub.com/apache/camel-k/pkg/resources/resources_support.go:105\ngithub.com/apache/camel-k/pkg/install.KameletCatalog\n\tgithub.com/apache/camel-k/pkg/install/kamelets.go:43\ngithub.com/apache/camel-k/pkg/install.OperatorStartupOptionalTools\n\tgithub.com/apache/camel-k/pkg/install/optional.go:59\ngithub.com/apache/camel-k/pkg/cmd/operator.Run\n\tgithub.com/apache/camel-k/pkg/cmd/operator/operator.go:156\ngithub.com/apache/camel-k/pkg/cmd.(*operatorCmdOptions).run\n\tgithub.com/apache/camel-k/pkg/cmd/operator.go:51\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/cobra@v1.0.0/command.go:846\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.0.0/command.go:950\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/cobra@v1.0.0/command.go:887\nmain.main\n\tcommand-line-arguments/main.go:48\nruntime.main\n\truntime/proc.go:204"}

Which is a side-effect of #1978.

Release Note

NONE

@astefanutti astefanutti merged commit 8d61a70 into apache:master Feb 11, 2021
@astefanutti astefanutti deleted the pr-185 branch February 11, 2021 09:59
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

Successfully merging this pull request may close these issues.

None yet

2 participants