Documentation
¶
Overview ¶
Package e2ecluster resolves the isolated kind environment used by the e2e suite.
Package e2ecluster resolves the isolated kind environment used by the e2e suite.
Index ¶
- Constants
- func GatewayAPIHelmArgs(channel string) ([]string, error)
- func GatewayAPIInstallArgs(version, channel, kubeconfig string) ([]string, error)
- func HasTCPListener(table string, port int) (bool, error)
- func SetTrafficEndpoint(endpoint TrafficEndpoint) error
- func WithControllerEnv(values []byte, name, value string) ([]byte, error)
- type Config
- type ControllerScale
- type TrafficEndpoint
Constants ¶
const ( GatewayAPIChannelStandard = "standard" GatewayAPIChannelExperimental = "experimental" )
Variables ¶
This section is empty.
Functions ¶
func GatewayAPIHelmArgs ¶
GatewayAPIHelmArgs enables chart validation for the installed CRD channel.
func GatewayAPIInstallArgs ¶
GatewayAPIInstallArgs returns kubectl arguments for one upstream CRD channel.
func HasTCPListener ¶
HasTCPListener reads a Linux /proc/net/tcp or tcp6 table.
func SetTrafficEndpoint ¶
func SetTrafficEndpoint(endpoint TrafficEndpoint) error
SetTrafficEndpoint selects the owned cluster's NodePorts before tests start.
Types ¶
type Config ¶
type Config struct {
ClusterName string
KubeconfigPath string
DockerNetwork string
NetworkLabels map[string]string
ExposeHostPorts bool
RequireNew bool
}
Config identifies the kind resources owned by one e2e suite invocation.
func (Config) KindConfig ¶
KindConfig omits host mappings when another local kind cluster may own them.
func (Config) WriteKubeconfig ¶
WriteKubeconfig never replaces a path owned by another isolated run.
type ControllerScale ¶
type ControllerScale struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Replicas int64 `json:"replicas"`
}
ControllerScale is the requested controller size before staged installation.
func StageControllerStartup ¶
func StageControllerStartup(manifests []byte) ([]byte, ControllerScale, error)
StageControllerStartup changes only the controller Deployment's initial size.
type TrafficEndpoint ¶
func ResolveTrafficEndpoint ¶
func ResolveTrafficEndpoint() (TrafficEndpoint, error)
ResolveTrafficEndpoint refuses host-port fallback for an isolated cluster.