matchers

package
v0.0.0-...-ee2d30e Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertContainsCluster

func AssertContainsCluster(cmd runner.Cmd, out GetClusterOutput)

AssertContainsCluster asserts that the output of the specified command contains the specified cluster

func BeNodeGroupsWithNamesWhich

func BeNodeGroupsWithNamesWhich(matchers ...types.GomegaMatcher) types.GomegaMatcher

BeNodeGroupsWithNamesWhich helps match JSON-formatted nodegroups by accepting matchers on an array of nodegroup names.

func BeNotFoundError

func BeNotFoundError() types.GomegaMatcher

BeNotFoundError succeeds if actual is a non-nil error which represents a missing kubernetes resource

func HaveExistingCluster

func HaveExistingCluster(expectedName string, expectedStatus string, expectedVersion string) types.GomegaMatcher

HaveExistingCluster returns a GoMega matcher that will check for the existence of an EKS cluster

func HaveExistingStack

func HaveExistingStack(expectedStackName string) types.GomegaMatcher

HaveExistingStack returns a GoMega matcher that will check for the existence of an cloudformation stack

func NewConfig

func NewConfig(region string) aws.Config

NewConfig creates a new session

Types

type GetClusterOutput

type GetClusterOutput struct {
	ClusterName   string
	Region        string
	EksctlCreated string
}

Jump to

Keyboard shortcuts

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