Open alice-sawatzky opened 5 months ago
/sig api-machinery
cc @deads2k
As followup of https://github.com/kubernetes/kubernetes/issues/106846 , and one of the authors of factory_interfaces.go
files.
/triage accepted
Hey @alice-sawatzky, @jiahuif. Can I take this up?
What would you like to be added?
Currently, every SharedInformerFactory has an associated
factory_interfaces.go
file. In this generated file, there's a type calledTweakListOptionsFunc func(*"k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions)
. This could be moved to a single type somewhere shared (perhaps ink8s.io/apimachinery/pkg/apis/meta/v1
), so that this common type can be passed around more easily.Why is this needed?
I'm trying to use generics to make a simple controller framework, and this is one of the sticking points preventing me from presenting a common interface for managing both internal and external types. This likely ties in to the larger discussion on #106846