installer

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2018 License: Apache-2.0 Imports: 18 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 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) 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) 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) CleanupCluster added in v0.6.0

func (h *InstallHelper) CleanupCluster(clusterName string)

CleanupCluster deletes a rook cluster for a namespace

func (*InstallHelper) CreateK8sRookCluster added in v0.6.0

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

func (*InstallHelper) CreateK8sRookClusterWithHostPathAndDevices added in v0.6.0

func (h *InstallHelper) CreateK8sRookClusterWithHostPathAndDevices(namespace, storeType, dataDirHostPath string,
	useAllDevices bool, mons int, 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) CreateK8sRookToolbox added in v0.6.0

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

CreateK8sRookToolbox creates rook-tools via kubectl

func (*InstallHelper) GatherAllRookLogs added in v0.7.0

func (h *InstallHelper) GatherAllRookLogs(nameSpace string, testName string)

func (*InstallHelper) InstallRookOnK8sWithHostPathAndDevices added in v0.6.0

func (h *InstallHelper) InstallRookOnK8sWithHostPathAndDevices(namespace, storeType, dataDirHostPath string,
	helmInstalled, useDevices bool, mons int, startWithAllNodes bool) (bool, error)

InstallRookOnK8sWithHostPathAndDevices installs rook on k8s

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