// NewSimpleClientset returns a clientset that will respond with the provided objects. // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, // without applying any field management, validations and/or defaults. It shouldn't be considered a replacement // for a real clientset and is mostly useful in simple unit tests. // // DEPRECATED: NewClientset replaces this with support for field management, which significantly improves // server side apply testing. NewClientset is only available when apply configurations are generated (e.g. // via --with-applyconfig). func NewSimpleClientset(objects ...runtime.Object) *Clientset { … } type Clientset … func (c *Clientset) Discovery() discovery.DiscoveryInterface { … } func (c *Clientset) Tracker() testing.ObjectTracker { … } var _ … var _ … // MetricsV1alpha1 retrieves the MetricsV1alpha1Client func (c *Clientset) MetricsV1alpha1() metricsv1alpha1.MetricsV1alpha1Interface { … } // MetricsV1beta1 retrieves the MetricsV1beta1Client func (c *Clientset) MetricsV1beta1() metricsv1beta1.MetricsV1beta1Interface { … }