k8sutil

package
v1.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OperatorImage    = "datastax/cass-operator:latest"
	OperatorImageUBI = "datastax/cass-operator:latest-ubi"
)

Variables

This section is empty.

Functions

func DeleteCluster

func DeleteCluster()

Delete a running cluster.

func EnsureEmptyCluster

func EnsureEmptyCluster()

Cleanup potential previous integ test resources.

func Env

func Env()

List environment variables that can be set for the specified cluster.

func InstallTool

func InstallTool()

If available, install the cli tool associated with the chosen k8s flavor

func Kubeconfig

func Kubeconfig()

Configure kubectl to point to the specified cluster

func ListSupportedFlavors

func ListSupportedFlavors()

List k8s flavors that we support automating development workflows for

func ReloadOperator

func ReloadOperator()

Rebuild and load local operator image into cluster.

func RunIntegTests

func RunIntegTests()

Bootstrap a cluster, then run Ginkgo integration tests.

Default behavior is to discover and run all test suites located under the ./tests/ directory.

To run a subset of test suites, specify the name of the suite directories in env var M_INTEG_DIR, separated by a comma

Example: M_INTEG_DIR=scale_up,stop_resume

This target assumes that helm is installed and available on path.

func SetupCassandraCluster

func SetupCassandraCluster()

Stand up an example cluster running Apache Cassandra. Loads all necessary resources to get a running Apache Cassandra data center and operator This target assumes that helm is installed and available on path.

func SetupDSECluster

func SetupDSECluster()

Stand up an example cluster running DSE 6.8. Loads all necessary resources to get a running DCE data center and operator This target assumes that helm is installed and available on path.

func SetupEmptyCluster

func SetupEmptyCluster()

Stand up an empty cluster.

This will also configure kubectl to point at the new cluster.

Set M_LOAD_DEV_IMAGES to "true" to pull and load the dev images listed in buildsettings.yaml into the cluster.

func SetupExampleCluster

func SetupExampleCluster()

Perform all the steps to stand up an example cluster, except for applying the final cassandra yaml specification. This must either be applied manually or by calling SetupCassandraCluster or SetupDSECluster. This target assumes that helm is installed and available on path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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