Documentation
¶
Index ¶
- func RunFirewallValidation(t *testing.T, config ProviderConfig, opts FirewallValidationOpts)
- func RunInstanceLifecycleValidation(t *testing.T, config ProviderConfig)
- func RunKubernetesValidation(t *testing.T, config ProviderConfig, opts KubernetesValidationOpts)
- func RunNetworkValidation(t *testing.T, config ProviderConfig, opts NetworkValidationOpts)
- func RunValidationSuite(t *testing.T, config ProviderConfig)
- func WaitForResourcePredicate[T any](ctx context.Context, opts WaitForResourcePredicateOpts[T]) error
- type FirewallValidationOpts
- type KubernetesValidationNetworkOpts
- type KubernetesValidationNodeGroupOpts
- type KubernetesValidationOpts
- type KubernetesValidationSubnetOpts
- type KubernetesValidationUserOpts
- type NetworkValidationOpts
- type ProviderConfig
- type ValidationLogger
- func (l *ValidationLogger) Debug(_ context.Context, msg string, fields ...v1.Field)
- func (l *ValidationLogger) Error(_ context.Context, err error, fields ...v1.Field)
- func (l *ValidationLogger) Info(_ context.Context, msg string, fields ...v1.Field)
- func (l *ValidationLogger) Warn(_ context.Context, msg string, fields ...v1.Field)
- type WaitForResourcePredicateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunFirewallValidation ¶
func RunFirewallValidation(t *testing.T, config ProviderConfig, opts FirewallValidationOpts)
func RunInstanceLifecycleValidation ¶
func RunInstanceLifecycleValidation(t *testing.T, config ProviderConfig)
func RunKubernetesValidation ¶
func RunKubernetesValidation(t *testing.T, config ProviderConfig, opts KubernetesValidationOpts)
func RunNetworkValidation ¶
func RunNetworkValidation(t *testing.T, config ProviderConfig, opts NetworkValidationOpts)
func RunValidationSuite ¶
func RunValidationSuite(t *testing.T, config ProviderConfig)
func WaitForResourcePredicate ¶
func WaitForResourcePredicate[T any](ctx context.Context, opts WaitForResourcePredicateOpts[T]) error
Types ¶
type FirewallValidationOpts ¶
type FirewallValidationOpts struct {
// TestPort is the port to test firewall blocking on (should NOT be in allowed ingress)
TestPort int
}
type KubernetesValidationNetworkOpts ¶
type KubernetesValidationNetworkOpts struct {
Name string
RefID string
CidrBlock string
Subnets []KubernetesValidationSubnetOpts
}
type KubernetesValidationOpts ¶
type KubernetesValidationOpts struct {
Name string
RefID string
KubernetesVersion string
Subnets []KubernetesValidationSubnetOpts
NodeGroupOpts *KubernetesValidationNodeGroupOpts
NetworkOpts *KubernetesValidationNetworkOpts
UserOpts *KubernetesValidationUserOpts
Tags map[string]string
}
type KubernetesValidationSubnetOpts ¶
type KubernetesValidationSubnetOpts struct {
Name string
RefID string
CidrBlock string
SubnetType v1.SubnetType
}
type NetworkValidationOpts ¶
type ProviderConfig ¶
type ProviderConfig struct {
Location string
StableIDs []v1.InstanceTypeID
Credential v1.CloudCredential
}
type ValidationLogger ¶
type ValidationLogger struct{}
implementation of the "v1.Logger" interface
type WaitForResourcePredicateOpts ¶
type WaitForResourcePredicateOpts[T any] struct { GetResource func() (T, error) Predicate func(resource T) bool Timeout time.Duration Interval time.Duration }
WaitForKubernetesClusterPredicate waits for the Kubernetes cluster to satisfy the predicate function. If the predicate returns true, the loop breaks.
Click to show internal directories.
Click to hide internal directories.