apiserver

package
v1.30.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestAPIServer

type TestAPIServer struct {
	// ClientSet is already initialized to access the apiserver as admin.
	ClientSet clientset.Interface

	// KubeConfigFile is the absolute path for a kube.config file that
	// grants admin access to the apiserver.
	KubeConfigFile string
}

TestAPIServer provides access to a running apiserver instance.

func StartAPITestServer

func StartAPITestServer(t *testing.T) TestAPIServer

StartAPIServer runs etcd and apiserver in the background in the same process. All resources get released automatically when the test completes. If startup fails, the test gets aborted.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL