e2e

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RolloutsActiveServiceName  = "rollout-bluegreen-active"
	RolloutsPreviewServiceName = "rollout-bluegreen-preview"
	RolloutsName               = "simple-rollout"
)

Variables

This section is empty.

Functions

func CreateNamespace

func CreateNamespace(ctx context.Context, k8sClient client.Client, name string) error

Create namespace for tests having a specific label for identification

func CreateRolloutManager

func CreateRolloutManager(ctx context.Context, k8sClient client.Client, name, namespace string, namespaceScoped bool) (rmv1alpha1.RolloutManager, error)

Create RolloutManager CR

func CreateRolloutManagerWithMetadata

func CreateRolloutManagerWithMetadata(ctx context.Context, k8sClient client.Client, name, namespace string, namespaceScoped bool,
	additionalMetadata *rmv1alpha1.ResourceMetadata) (rmv1alpha1.RolloutManager, error)

Create RolloutManager CR

func CreateService

func CreateService(ctx context.Context, k8sClient client.Client, name, namespace string, nodePort int32) (corev1.Service, error)

Create Service used by Rollout

func ValidateArgoRolloutManagerResources

func ValidateArgoRolloutManagerResources(ctx context.Context, rolloutsManager rmv1alpha1.RolloutManager, k8sClient client.Client, namespaceScoped bool)

Check resources created after creating of RolloutManager CR and verify that they are healthy.

func ValidateArgoRolloutsResources

func ValidateArgoRolloutsResources(ctx context.Context, k8sClient client.Client, nsName string, port1, port2 int32)

Create Argo Rollout CR and Services required by it and verify that they are healthy.

Types

This section is empty.

Directories

Path Synopsis
k8s

Jump to

Keyboard shortcuts

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