installer

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockResourceOperation added in v0.6.0

func BlockResourceOperation(k8sh *utils.K8sHelper, yaml string, action string) (string, error)

func GatherCockroachDBDebuggingInfo added in v0.8.0

func GatherCockroachDBDebuggingInfo(k8shelper *utils.K8sHelper, namespace string)

func GetBlockPoolDef added in v0.6.0

func GetBlockPoolDef(poolName string, namespace string, replicaSize string) string

func GetBlockPoolStorageClass added in v0.7.0

func GetBlockPoolStorageClass(namespace string, poolName string, storageClassName string) string

func GetBlockPoolStorageClassAndPvcDef added in v0.6.0

func GetBlockPoolStorageClassAndPvcDef(namespace string, poolName string, storageClassName string, blockName string, accessMode string) string

func GetBlockPvcDef added in v0.6.0

func GetBlockPvcDef(claimName string, storageClassName string, accessModes string) string

func GetBlockStorageClassDef added in v0.6.0

func GetBlockStorageClassDef(poolName string, storageClassName string, namespace string, varClusterName bool) string

func IsAdditionalDeviceAvailableOnCluster added in v0.6.0

func IsAdditionalDeviceAvailableOnCluster() bool

func SystemNamespace added in v0.6.0

func SystemNamespace(namespace string) string

Types

type InstallData

type InstallData struct {
}

InstallData wraps rook yaml definitions

func NewK8sInstallData

func NewK8sInstallData() *InstallData

NewK8sInstallData creates new instance of InstallData struct

func (*InstallData) GetCleanupPod added in v0.8.0

func (i *InstallData) GetCleanupPod(node, removalDir string) string

GetCleanupPod gets a cleanup Pod manifest

func (*InstallData) GetClusterRoles added in v0.8.0

func (i *InstallData) GetClusterRoles(namespace, systemNamespace string) string

GetRookCluster returns rook-cluster manifest

func (*InstallData) GetCockroachDBCRDs added in v0.8.0

func (i *InstallData) GetCockroachDBCRDs() string

func (*InstallData) GetCockroachDBCluster added in v0.8.0

func (i *InstallData) GetCockroachDBCluster(namespace string, count int) string

func (*InstallData) GetCockroachDBOperator added in v0.8.0

func (i *InstallData) GetCockroachDBOperator(namespace string) string

func (*InstallData) GetRookCRDs added in v0.8.0

func (i *InstallData) GetRookCRDs() string

func (*InstallData) GetRookCluster added in v0.6.0

func (i *InstallData) GetRookCluster(namespace, storeType, dataDirHostPath string, useAllDevices bool, mons int) string

GetRookCluster returns rook-cluster manifest

func (*InstallData) GetRookOperator added in v0.6.0

func (i *InstallData) GetRookOperator(namespace string) string

GetRookOperator returns rook Operator manifest

func (*InstallData) GetRookToolBox added in v0.6.0

func (i *InstallData) GetRookToolBox(namespace string) string

GetRookToolBox returns rook-toolbox manifest

type InstallHelper

type InstallHelper struct {
	Env objects.EnvironmentManifest

	T func() *testing.T
	// contains filtered or unexported fields
}

InstallHelper wraps installing and uninstalling rook on a platform

func NewK8sRookhelper

func NewK8sRookhelper(clientset *kubernetes.Clientset, t func() *testing.T) *InstallHelper

NewK8sRookhelper creates new instance of InstallHelper

func (*InstallHelper) CreateCockroachDBCluster added in v0.8.0

func (h *InstallHelper) CreateCockroachDBCluster(namespace string, count int) error

func (*InstallHelper) CreateCockroachDBOperator added in v0.8.0

func (h *InstallHelper) CreateCockroachDBOperator(namespace string) error

func (*InstallHelper) CreateK8sRookCluster added in v0.6.0

func (h *InstallHelper) CreateK8sRookCluster(namespace, systemNamespace string, storeType string) (err error)

func (*InstallHelper) CreateK8sRookClusterWithHostPathAndDevices added in v0.6.0

func (h *InstallHelper) CreateK8sRookClusterWithHostPathAndDevices(namespace, systemNamespace, storeType string,
	useAllDevices bool, mon cephv1beta1.MonSpec, startWithAllNodes bool) error

CreateK8sRookCluster creates rook cluster via kubectl

func (*InstallHelper) CreateK8sRookOperator added in v0.6.0

func (h *InstallHelper) CreateK8sRookOperator(namespace string) (err error)

CreateK8sRookOperator creates rook-operator via kubectl

func (*InstallHelper) CreateK8sRookOperatorViaHelm added in v0.6.0

func (h *InstallHelper) CreateK8sRookOperatorViaHelm(namespace string) error

CreateK8sRookOperatorViaHelm creates rook operator via Helm chart named local/rook present in local repo

func (*InstallHelper) CreateK8sRookResources added in v0.8.0

func (h *InstallHelper) CreateK8sRookResources() (err error)

func (*InstallHelper) CreateK8sRookToolbox added in v0.6.0

func (h *InstallHelper) CreateK8sRookToolbox(namespace string) (err error)

CreateK8sRookToolbox creates rook-ceph-tools via kubectl

func (*InstallHelper) GatherAllCockroachDBLogs added in v0.8.0

func (h *InstallHelper) GatherAllCockroachDBLogs(systemNamespace, namespace, testName string)

func (*InstallHelper) GatherAllRookLogs added in v0.7.0

func (h *InstallHelper) GatherAllRookLogs(namespace, systemNamespace string, testName string)

func (*InstallHelper) GetNodeHostnames added in v0.8.0

func (h *InstallHelper) GetNodeHostnames() ([]string, error)

func (*InstallHelper) InstallCockroachDB added in v0.8.0

func (h *InstallHelper) InstallCockroachDB(systemNamespace, namespace string, count int) error

func (*InstallHelper) InstallHostPathProvisioner added in v0.8.0

func (h *InstallHelper) InstallHostPathProvisioner() error

************************************************************************************************ HostPath provisioner functions ************************************************************************************************

func (*InstallHelper) InstallRookOnK8sWithHostPathAndDevices added in v0.6.0

func (h *InstallHelper) InstallRookOnK8sWithHostPathAndDevices(namespace, storeType string,
	helmInstalled, useDevices bool, mon cephv1beta1.MonSpec, startWithAllNodes bool) (bool, error)

InstallRookOnK8sWithHostPathAndDevices installs rook on k8s

func (*InstallHelper) UninstallCockroachDB added in v0.8.0

func (h *InstallHelper) UninstallCockroachDB(systemNamespace, namespace string)

func (*InstallHelper) UninstallHostPathProvisioner added in v0.8.0

func (h *InstallHelper) UninstallHostPathProvisioner() error

func (*InstallHelper) UninstallRook added in v0.7.0

func (h *InstallHelper) UninstallRook(helmInstalled bool, namespace string)

UninstallRookFromK8s uninstalls rook from k8s

func (*InstallHelper) UninstallRookFromMultipleNS added in v0.7.0

func (h *InstallHelper) UninstallRookFromMultipleNS(helmInstalled bool, systemNamespace string, namespaces ...string)

UninstallRookFromK8s uninstalls rook from multiple namespaces in k8s

Jump to

Keyboard shortcuts

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