operator-framework / operator-lifecycle-manager

A management framework for extending Kubernetes with Operators
https://olm.operatorframework.io
Apache License 2.0
1.69k stars 543 forks source link

Error message appearing in operator log: Failed to watch *v1.PackageManifest #1531

Closed phantomjinx closed 2 years ago

phantomjinx commented 4 years ago

Bug Report

What did you do? A clear and concise description of the steps you took (or insert a code snippet).

E0519 20:18:59.338786 1 reflector.go:382] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:224: Failed to watch *v1.PackageManifest: unknown (get packagemanifests.packages.operators.coreos.com)

What did you expect to see? No errors

What did you see instead? Under which circumstances? The error being generated seems to bear little relation to the code actually being called. Is it perhaps due to the inclusion of the operator-lifecycle-manager packages?

Environment

Possible Solution

Additional context Add any other context about the problem here.

Please feel free to ask for far more information, if required.

njhale commented 4 years ago

Hi @phantomjinx,

PackageManifests are supplied by an aggregated API that doesn't support watch. The error you're encountering seems to be from an informer trying to list/watch this resource. The message also indicates that this is occurring in controller-runtime -- my guess is that it happens on Get with the dynamic client to maintain the cache (see the go-docs).

We can revisit watch on PackageManifest resources to clear the message, but for now you can probably construct a client that doesn't use the cache.

Hope that helps some. Please let me know if you run into any roadblocks and I'll try to help further.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

dinhxuanvu commented 2 years ago

The issue is stale. Closed. Please feel free to reopen if needed.