-
Notifications
You must be signed in to change notification settings - Fork 20
k3s API server reports failures to watch Kubescape objects #315
Copy link
Copy link
Open
kubescape/storage
#258Labels
bugSomething isn't workingSomething isn't working
Description
Description
The k3s API server reports failures to watch certain objects:
Failed to watch *v1.PartialObjectMetadata: StorageError: invalid object, Code: 4, Key: /spdx.softwarecomposition.kubescape.io/configurationscansummaries,
Environment
OS: Ubuntu, k3s 1.32.4-k3s1
Kubescape operator v0.2.90
Steps To Reproduce
Install kubecape operator
Watch the k3s logs (journalctl -u k3s --follow)
The errors are there as soon as Kubescape is operational. The errors are not fatal. There is no noticeable impact on functionality.
Expected behavior
No errors in the k3s logs
Actual Behavior
Many errors in the log about 'Failed to watch', and these repeat every minute.
Log details:
May 25 20:05:23 a7t-t-01-master1 k3s[446880]: E0525 20:05:23.666280 446880 reflector.go:166] "Unhandled Error" err="k8s.io/client-go@v1.32.4-k3s1/tools/cache/reflector.go:251: Failed to watch *v1.PartialObjectMetadata: StorageError: invalid object, Code: 4, Key: /spdx.softwarecomposition.kubescape.io/configurationscansummaries, ResourceVersion: 0, AdditionalErrorMsg: operation not supported"
May 25 20:05:29 a7t-t-01-master1 k3s[446880]: E0525 20:05:29.062991 446880 reflector.go:166] "Unhandled Error" err="k8s.io/client-go@v1.32.4-k3s1/tools/cache/reflector.go:251: Failed to watch *v1.PartialObjectMetadata: StorageError: invalid object, Code: 4, Key: /spdx.softwarecomposition.kubescape.io/generatednetworkpolicies, ResourceVersion: 0, AdditionalErrorMsg: operation not supported"
May 25 20:05:34 a7t-t-01-master1 k3s[446880]: E0525 20:05:34.101342 446880 reflector.go:166] "Unhandled Error" err="k8s.io/client-go@v1.32.4-k3s1/tools/cache/reflector.go:251: Failed to watch *v1.PartialObjectMetadata: StorageError: invalid object, Code: 4, Key: /spdx.softwarecomposition.kubescape.io/vulnerabilitysummaries, ResourceVersion: 0, AdditionalErrorMsg: operation not supported"
Additional context
The error is not specific to this version of Kubescape. I have checked the logs and the same error is there for multiple months.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Accepted