Documentation
¶
Overview ¶
Package e2ehelper has common functionality for the end-to-end test suites
Index ¶
- func TearDownAll(funcs []TearDownFunc) error
- type TearDownFunc
- func AddHelmRepo(repo, url string) (TearDownFunc, error)
- func CreateMonitoredNamespace(namespace string, id string) (TearDownFunc, error)
- func CreateMonitoredNamespaceFromExistingRole(clusterRole string) (string, []TearDownFunc, error)
- func CreateNamespace() (string, string, TearDownFunc, error)
- func GetChart(chart string) (string, TearDownFunc, error)
- func InstallChart(chartPath string, operatorNamespace string, args ...string) (TearDownFunc, error)
- func UpgradeChart(chartPath string, operatorNamespace string, args ...string) (TearDownFunc, error)
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