ipam

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAlreadyExists

func IsAlreadyExists(err error) bool

IsAlreadyExists asserts alreadyExistsError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsSubnetsOverlap

func IsSubnetsOverlap(err error) bool

IssubnetsOverlap asserts subnetsOverlapError.

Types

type Config

type Config struct {
	Logger   micrologger.Logger
	Provider provider.Interface

	ClusterID string
}

type IPAM

type IPAM struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*IPAM, error)

func (*IPAM) Test

func (i *IPAM) Test(ctx context.Context) error

type Interface

type Interface interface {
	// Test executes the cluster IPAM test using the configured provider
	// implementation. The test processes the following steps to ensure the
	// provider specific operator implements guest cluster IPAM correctly.
	//
	//     - Create guest clusters #1, #2, #3.
	//     - Wait for guest clusters to be ready.
	//     - Verify that clusters have distinct subnets.
	//     - Terminate guest cluster #2 and immediately create guest cluster #4.
	//     - Wait for guest clusters to be deleted and created.
	//     - Verify that clusters have distinct subnets and created cluster #4 did
	//       not receive same subnet that deleted cluster #2 had.
	//     - Delete guest clusters.
	//
	Test(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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