clusterbuilder

package
v1.27.4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadOrBuildCluster

func LoadOrBuildCluster(framework *clustertest.Framework, clusterBuilder ClusterBuilder) *application.Cluster

LoadOrBuildCluster attempts to load a pre-built workload cluster if the appropriate env vars are set and if not will build a new Cluster For now, when building a cluster it is assumed that the values for the cluster and default-apps can be found at: ./test_data/cluster_values.yaml and ./test_data/default-apps_values.yaml

Types

type ClusterBuilder

type ClusterBuilder interface {
	NewClusterApp(clusterName string, orgName string, clusterValuesOverrides []string, defaultAppsValuesOverrides []string) *application.Cluster
	KubeContext() string
}

ClusterBuilder is an interface that provides a function for building provider-specific Cluster apps

func GetClusterBuilderForContext added in v1.0.2

func GetClusterBuilderForContext(context string) (ClusterBuilder, error)

GetClusterBuilderForContext returns a suitable ClusterBuilder instance that supports the provided KubeContext

Directories

Path Synopsis
providers

Jump to

Keyboard shortcuts

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