installer

package
v1.0.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CLI flags
	StackTraceFlag                = "stack-trace"
	SkipNamespaceDeletionFlag     = "skip-namespace-deletion"
	SkipExistingWorkloadCheckFlag = "skip-existing-workload-check"
	StosVersionFlag               = "stos-version"
	WaitFlag                      = "wait"
	StosOperatorYamlFlag          = "stos-operator-yaml"
	StosClusterYamlFlag           = "stos-cluster-yaml"
	StosPortalConfigYamlFlag      = "stos-portal-config-yaml"
	EtcdOperatorYamlFlag          = "etcd-operator-yaml"
	EtcdClusterYamlFlag           = "etcd-cluster-yaml"
	IncludeEtcdFlag               = "include-etcd"
	EtcdEndpointsFlag             = "etcd-endpoints"
	SkipEtcdEndpointsValFlag      = "skip-etcd-endpoints-validation"
	SkipStosClusterFlag           = "skip-stos-cluster"
	EtcdTLSEnabledFlag            = "etcd-tls-enabled"
	EtcdSecretNameFlag            = "etcd-secret-name"
	StosConfigPathFlag            = "stos-config-path"
	EtcdNamespaceFlag             = "etcd-namespace"
	StosOperatorNSFlag            = "stos-operator-namespace"
	StosClusterNSFlag             = "stos-cluster-namespace"
	EtcdStorageClassFlag          = "etcd-storage-class"
	AdminUsernameFlag             = "admin-username"
	AdminPasswordFlag             = "admin-password"
	TenantIDFlag                  = "tenant-id"
	PortalAPIURLFlag              = "portal-api-url"
	EnablePortalManagerFlag       = "enable-portal-manager"

	// config file fields - contain path delimiters for plugin interpretation of config manifest
	StackTraceConfig                = "spec.stackTrace"
	SkipNamespaceDeletionConfig     = "spec.skipNamespaceDeletion"
	SkipExistingWorkloadCheckConfig = "spec.skipExistingWorkloadCheck"
	SkipStosClusterConfig           = "spec.skipStorageOSCluster"
	IncludeEtcdConfig               = "spec.includeEtcd"
	WaitConfig                      = "spec.install.wait"
	StosVersionConfig               = "spec.install.storageOSVersion"
	InstallEtcdNamespaceConfig      = "spec.install.etcdNamespace"
	InstallStosOperatorNSConfig     = "spec.install.storageOSOperatorNamespace"
	StosClusterNSConfig             = "spec.install.storageOSClusterNamespace"
	StosOperatorYamlConfig          = "spec.install.storageOSOperatorYaml"
	StosClusterYamlConfig           = "spec.install.storageOSClusterYaml"
	StosPortalConfigYamlConfig      = "spec.install.storageOSPortalConfigYaml"
	EtcdOperatorYamlConfig          = "spec.install.etcdOperatorYaml"
	EtcdClusterYamlConfig           = "spec.install.etcdClusterYaml"
	EtcdEndpointsConfig             = "spec.install.etcdEndpoints"
	SkipEtcdEndpointsValConfig      = "spec.install.skipEtcdEndpointsValidation"
	EtcdTLSEnabledConfig            = "spec.install.etcdTLSEnabled"
	EtcdSecretNameConfig            = "spec.install.etcdSecretName"
	EtcdStorageClassConfig          = "spec.install.etcdStorageClassName"
	AdminUsernameConfig             = "spec.install.adminUsername"
	AdminPasswordConfig             = "spec.install.adminPassword"
	TenantIDConfig                  = "spec.install.tenantID"
	PortalAPIURLConfig              = "spec.install.portalAPIURL"
	EnablePortalManagerConfig       = "spec.install.enablePortalManager"
	UninstallEtcdNSConfig           = "spec.uninstall.etcdNamespace"
	UninstallStosOperatorNSConfig   = "spec.uninstall.storageOSOperatorNamespace"
)

Variables

View Source
var (
	// SerialInstall allows the installer to install operators serially not parallel.
	// This could be change with build flag:
	// -X github.com/storageos/kubectl-storageos/pkg/installer.SerialInstall=ANY_VALUE
	SerialInstall string
)

Functions

func Upgrade

func Upgrade(uninstallConfig *apiv1.KubectlStorageOSConfig, installConfig *apiv1.KubectlStorageOSConfig, versionToUninstall string) error

Types

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

Installer holds the kubectl client and in-memory fs data used throughout the installation process

func NewInstaller

func NewInstaller(config *apiv1.KubectlStorageOSConfig, ensureNamespace bool, validateKubeVersion bool) (*Installer, error)

NewInstaller returns an Installer object with the kubectl client and in-memory filesystem

func (*Installer) EnablePortalManager

func (in *Installer) EnablePortalManager(enable bool) error

EnablePortalManager applies the existing storageoscluster with enablePortalManager set to value of 'enable'.

func (*Installer) Install

func (in *Installer) Install(upgrade bool) error

Install performs storageos operator and etcd operator installation for kubectl-storageos

func (*Installer) InstallPortalManager

func (in *Installer) InstallPortalManager() error

InstallPortalManager installs portal manager necessary components.

func (*Installer) Uninstall

func (in *Installer) Uninstall(upgrade bool, currentVersion string) error

Uninstall performs storageos and etcd uninstallation for kubectl-storageos. Bool 'upgrade' indicates whether or not this uninstallation is part of an upgrade.

func (*Installer) UninstallPortalManager

func (in *Installer) UninstallPortalManager() error

UninstallPortalManager writes backup-filestem and uninstalls portal manager components.

Jump to

Keyboard shortcuts

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