See references and description of expectations here: https://ahmet.im/blog/controller-pitfalls/#expectations-pattern This does not seems to be supported in controller runtime either: https://github.com/kubernetes-sigs/controller-runtime/issues/644 We should investigate how we could support this in different layers of the framework. see sample expectations: https://github.com/kubernetes/kubernetes/blob/8d9ab387273747fcccb9325269070987b8f1c66b/pkg/controller/controller_utils.go#L159 https://pkg.go.dev/github.com/aws/karpenter-core/pkg/test/expectations https://pkg.go.dev/github.com/greths/brice/pkg/expectations
See references and description of expectations here:
https://ahmet.im/blog/controller-pitfalls/#expectations-pattern
This does not seems to be supported in controller runtime either:
kubernetes-sigs/controller-runtime#644
We should investigate how we could support this in different layers of the framework.
see sample expectations:
https://github.com/kubernetes/kubernetes/blob/8d9ab387273747fcccb9325269070987b8f1c66b/pkg/controller/controller_utils.go#L159
https://pkg.go.dev/github.com/aws/karpenter-core/pkg/test/expectations
https://pkg.go.dev/github.com/greths/brice/pkg/expectations