Documentation ¶
Index ¶
- Constants
- type Driver
- func (d *Driver) CallCount(m MethodInstance) int64
- func (d *Driver) Fail(m MethodInstance, injectError bool)
- func (d *Driver) IsGone(ctx context.Context)
- func (d *Driver) Nodenames() (nodenames []string)
- func (d *Driver) Run(nodes *Nodes, configureResources func() app.Resources, ...)
- func (d *Driver) SetUp(nodes *Nodes, resources app.Resources, ...)
- func (d *Driver) TearDown()
- type KubeletPlugin
- type MethodInstance
- type Nodes
Constants ¶
View Source
const ( NodePrepareResourcesMethod = "/v1alpha3.Node/NodePrepareResources" NodeUnprepareResourcesMethod = "/v1alpha3.Node/NodeUnprepareResources" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct { NameSuffix string Controller *app.ExampleController Name string // Nodes contains entries for each node selected for a test when the test runs. // In addition, there is one entry for a fictional node. Nodes map[string]KubeletPlugin NodeV1alpha3 bool // contains filtered or unexported fields }
func NewDriver ¶
func NewDriver(f *framework.Framework, nodes *Nodes, configureResources func() app.Resources, devicesPerNode ...map[string]map[resourceapi.QualifiedName]resourceapi.DeviceAttribute) *Driver
NewDriver sets up controller (as client of the cluster) and kubelet plugin (via proxy) before the test runs. It cleans up after the test.
Call this outside of ginkgo.It, then use the instance inside ginkgo.It.
func NewDriverInstance ¶ added in v1.32.0
NewDriverInstance is a variant of NewDriver where the driver is inactive and must be started explicitly with Run. May be used inside ginkgo.It.
func (*Driver) CallCount ¶
func (d *Driver) CallCount(m MethodInstance) int64
func (*Driver) Fail ¶
func (d *Driver) Fail(m MethodInstance, injectError bool)
func (*Driver) Run ¶ added in v1.32.0
func (d *Driver) Run(nodes *Nodes, configureResources func() app.Resources, devicesPerNode ...map[string]map[resourceapi.QualifiedName]resourceapi.DeviceAttribute)
func (*Driver) SetUp ¶
func (d *Driver) SetUp(nodes *Nodes, resources app.Resources, devicesPerNode ...map[string]map[resourceapi.QualifiedName]resourceapi.DeviceAttribute)
type KubeletPlugin ¶ added in v1.31.0
type KubeletPlugin struct { *app.ExamplePlugin ClientSet kubernetes.Interface }
type MethodInstance ¶
Click to show internal directories.
Click to hide internal directories.