testing

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPPoolClientset

type IPPoolClientset struct {
	fakeversioned.Clientset
	// contains filtered or unexported fields
}

Simple client is not sufficient for pool allocator testing, since pool allocator relies on both crd client and pool informer to work in sync. This client extension mimics the real client in conflict handling functionality - pool update will return conflict error unless ResourceVersion for the updated pool reflect the version stored in the client.

func NewIPPoolClient

func NewIPPoolClient() *IPPoolClientset

func (*IPPoolClientset) InitPool

func (c *IPPoolClientset) InitPool(pool *crdv1a2.IPPool)

Jump to

Keyboard shortcuts

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