Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SchemeAttacher ¶
SchemeAttacher represents a function that can modify the clients current schemes.
type Settings ¶
type Settings struct { KubeconfigPath string K8sClient kubernetes.Interface coreV1Client.CoreV1Interface clientConfigV1.ConfigV1Interface networkV1Client.NetworkingV1Interface appsV1Client.AppsV1Interface rbacV1Client.RbacV1Interface Config *rest.Config runtimeClient.Client v1security.SecurityV1Interface dynamic.Interface operatorv1alpha1.OperatorV1alpha1Interface machinev1beta1client.MachineV1beta1Interface storageV1Client.StorageV1Interface policyv1clientTyped.PolicyV1Interface // contains filtered or unexported fields }
Settings provides the struct to talk with relevant API.
func GetModifiableTestClients ¶
func GetModifiableTestClients(tcp TestClientParams) (*Settings, *fakeRuntimeClient.ClientBuilder)
GetModifiableTestClients returns a fake clientset and a modifiable clientbuilder for testing.
func GetTestClients ¶
func GetTestClients(tcp TestClientParams) *Settings
GetTestClients returns a fake clientset for testing.
func (*Settings) AttachScheme ¶
func (settings *Settings) AttachScheme(attacher SchemeAttacher) error
AttachScheme attaches a scheme to the client's current scheme.
func (*Settings) GetAPIClient ¶
GetAPIClient implements the cluster.APIClientGetter interface.
type TestClientParams ¶
type TestClientParams struct { K8sMockObjects []runtime.Object GVK []schema.GroupVersionKind SchemeAttachers []SchemeAttacher }
TestClientParams provides the struct to store the parameters for the test client.
Click to show internal directories.
Click to hide internal directories.