e2ehelper

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package e2ehelper has common functionality for the end-to-end test suites

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TearDownAll

func TearDownAll(funcs []TearDownFunc) error

TearDownAll calls all passed in tear down functions in order

Types

type TearDownFunc

type TearDownFunc func() error

TearDownFunc tears down the resource

func AddHelmRepo

func AddHelmRepo(repo, url string) (TearDownFunc, error)

AddHelmRepo adds a repo to helm e.g. helm repo add quarks https://cloudfoundry-incubator.github.io/quarks-helm/

func CreateMonitoredNamespace

func CreateMonitoredNamespace(namespace string, id string) (TearDownFunc, error)

CreateMonitoredNamespace creates a namespace with the monitored label

func CreateMonitoredNamespaceFromExistingRole

func CreateMonitoredNamespaceFromExistingRole(clusterRole string) (string, []TearDownFunc, error)

CreateMonitoredNamespaceFromExistingRole creates a namespace with the monitored label

func CreateNamespace

func CreateNamespace() (string, string, TearDownFunc, error)

CreateNamespace creates the operator namespace and returns the generated single namespace name

func GetChart

func GetChart(chart string) (string, TearDownFunc, error)

GetChart gets the helm chart into the specified directory e.g. helm pull quarks/cf-operator --untar --untardir test

func InstallChart

func InstallChart(chartPath string, operatorNamespace string, args ...string) (TearDownFunc, error)

InstallChart installs the helm chart into the operator namespace

func UpgradeChart

func UpgradeChart(chartPath string, operatorNamespace string, args ...string) (TearDownFunc, error)

UpgradeChart upgrades the helm chart into the operator namespace

Jump to

Keyboard shortcuts

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