installer

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2017 License: Apache-2.0 Imports: 12 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 GetBlockPoolStorageClassAndPvcDef added in v0.6.0

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

func GetBlockPvcDef added in v0.6.0

func GetBlockPvcDef(claimName string, storageClassName 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) CreateK8sRookClusterWithHostPath added in v0.6.0

func (h *InstallHelper) CreateK8sRookClusterWithHostPath(namespace string, storeType string, dataDirHostPath string, mons int) (err error)

func (*InstallHelper) CreateK8sRookClusterWithHostPathAndDevices added in v0.6.0

func (h *InstallHelper) CreateK8sRookClusterWithHostPathAndDevices(namespace, storeType, dataDirHostPath string, useAllDevices bool, mons int) (err 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) InstallRookOnK8s

func (h *InstallHelper) InstallRookOnK8s(namespace, storeType string, mons int) (bool, error)

func (*InstallHelper) InstallRookOnK8sWithHostPathAndDevices added in v0.6.0

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

InstallRookOnK8s installs rook on k8s

func (*InstallHelper) UninstallRookFromK8s

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

UninstallRookFromK8s uninstalls rook from k8s

Jump to

Keyboard shortcuts

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