Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
PodExecResult can be used to output arbitrary strings during unit testing
Functions ¶
func NewClientsetConfig ¶
func NewClientsetConfig(objects ...runtime.Object) (*restclient.Config, kubernetes.Interface)
func NewPodExecutor ¶
func NewPodExecutor(config *rest.Config, method string, url *url.URL) (remotecommand.Executor, error)
NewPodExecutor should be used instead of remotecommand.NewSPDYExecutor in unit tests
Types ¶
type WrappedClientset ¶
type WrappedClientset struct {
*fakeclientset.Clientset
}
There is a deficiency in the FakeCoreV1 implementation that returns a nil RESTClient To get around this limitation, we wrap the fakes in our own types, which supply a valid RESTClient for unit testing.
func (*WrappedClientset) CoreV1 ¶
func (w *WrappedClientset) CoreV1() corev1.CoreV1Interface
type WrappedCoreV1 ¶
type WrappedCoreV1 struct { fakecorev1.FakeCoreV1 RestClient restclient.Interface }
There is a deficiency in the FakeCoreV1 implementation that returns a nil RESTClient To get around this limitation, we wrap the fakes in our own types, which supply a valid RESTClient for unit testing.
func (*WrappedCoreV1) RESTClient ¶
func (w *WrappedCoreV1) RESTClient() restclient.Interface
Click to show internal directories.
Click to hide internal directories.