nephio-project / nephio

Nephio is a Kubernetes-based automation platform for deploying and managing highly distributed, interconnected workloads such as 5G Network Functions, and the underlying infrastructure on which those workloads depend.
Apache License 2.0
93 stars 52 forks source link

Porch-controllers is reporting watch not being available for packageRevisionResources #587

Closed nagygergo closed 1 month ago

nagygergo commented 3 months ago

Porch-controllers is reporting the following for packageRevisionResources: E0327 13:48:14.426003 1 reflector.go:140] pkg/mod/k8s.io/client-go@v0.26.9/tools/cache/reflector.go:169: Failed to watch *v1alpha1.PackageRevisionResources: the server does not allow this method on the requested resource (get packagerevisionresources.porch.kpt.dev)

Probably this is because there is no implementation of watch for packageRevisionResources in porch-server (packagerevisionresources.go).

The error log is probably triggered by controller-runtime's caching k8s client that places a watch on each of the resources that were requested from it.

This could be a problem with other operators as well that would want to modify the packageRevisionResources CRs.

kushnaidu commented 1 month ago

PRs created - https://github.com/nephio-project/porch/pull/55

kushnaidu commented 1 month ago

The code is merged and the issue is not reproducible after the merge. Closing the ticket.