kubernetes/pkg/controller/certificates
Patrick Ohly 6bfa727bee client-go testing: fix List+Watch support
5644850607 added support for List+Watch to a fake client-go instance.
However, that support was not quite working yet as seen when analyzing a test
flake:

- List returned early when there were no objects, without adding the
  ResourceVersion. The ResourceVersion should have been "0" instead.
- When encountering "" as ResourceVersion, Watch didn't deliver
  any objects. That was meant to preserve compatibility with clients
  which don't expect objects from a Watch, but the right semantic of
  "" is "Start at most recent", which includes delivering existing
  objects.

Tests which meddle with the List implementation via a reactor (like
clustertrustbundlepublisher) have to be aware that Watch now may
return objects when given an empty ResourceVersion.
2026-01-15 16:08:23 +01:00
..
approver Merge pull request #113994 from mengjiao-liu/contextual-logging-controller-certificates 2023-06-21 09:03:42 -07:00
authority Add a replacement for cmp.Diff using json+go-difflib 2025-06-16 17:10:42 -04:00
cleaner Merge pull request #134624 from yt2985/podcertificates-beta 2025-11-04 11:42:12 -08:00
clustertrustbundlepublisher client-go testing: fix List+Watch support 2026-01-15 16:08:23 +01:00
rootcacertpublisher controller/certificates: Improve goroutine mgmt 2025-10-29 19:00:30 +01:00
signer controller/certificates: Improve goroutine mgmt 2025-10-29 19:00:30 +01:00
certificate_controller.go controller/certificates: Improve goroutine mgmt 2025-10-29 19:00:30 +01:00
certificate_controller_test.go certificate controller: use contextual logging 2023-03-15 11:26:08 +08:00
certificate_controller_utils.go Some comments' typos 2020-11-02 15:05:23 +08:00
certificate_controller_utils_test.go Switch CSR approver/signer/cleaner controllers to v1 2020-06-05 18:45:34 -04:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00