installer

package
v1.0.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CLI flags
	StackTraceFlag            = "stack-trace"
	SkipNamespaceDeletionFlag = "skip-namespace-deletion"
	VersionFlag               = "version"
	WaitFlag                  = "wait"
	StosOperatorYamlFlag      = "stos-operator-yaml"
	StosClusterYamlFlag       = "stos-cluster-yaml"
	StosSecretYamlFlag        = "stos-secret-yaml"
	EtcdOperatorYamlFlag      = "etcd-operator-yaml"
	EtcdClusterYamlFlag       = "etcd-cluster-yaml"
	IncludeEtcdFlag           = "include-etcd"
	EtcdEndpointsFlag         = "etcd-endpoints"
	SkipEtcdEndpointsValFlag  = "skip-etcd-endpoints-validation"
	EtcdTLSEnabledFlag        = "etcd-tls-enabled"
	EtcdSecretNameFlag        = "etcd-secret-name"
	ConfigPathFlag            = "config-path"
	EtcdNamespaceFlag         = "etcd-namespace"
	StosOperatorNSFlag        = "stos-operator-namespace"
	StosClusterNSFlag         = "stos-cluster-namespace"
	StorageClassFlag          = "storage-class"
	AdminUsernameFlag         = "admin-username"
	AdminPasswordFlag         = "admin-password"

	// config file fields - contain path delimiters for plugin interpretation of config manifest
	StackTraceConfig              = "spec.stackTrace"
	SkipNamespaceDeletionConfig   = "spec.skipNamespaceDeletion"
	IncludeEtcdConfig             = "spec.includeEtcd"
	InstallWaitConfig             = "spec.install.wait"
	InstallVersionConfig          = "spec.install.version"
	InstallEtcdNamespaceConfig    = "spec.install.etcdNamespace"
	InstallStosOperatorNSConfig   = "spec.install.storageOSOperatorNamespace"
	InstallStosClusterNSConfig    = "spec.install.storageOSClusterNamespace"
	StosOperatorYamlConfig        = "spec.install.storageOSOperatorYaml"
	StosClusterYamlConfig         = "spec.install.storageOSClusterYaml"
	EtcdOperatorYamlConfig        = "spec.install.etcdOperatorYaml"
	EtcdClusterYamlConfig         = "spec.install.etcdClusterYaml"
	EtcdEndpointsConfig           = "spec.install.etcdEndpoints"
	SkipEtcdEndpointsValConfig    = "spec.install.skipEtcdEndpointsValidation"
	EtcdTLSEnabledConfig          = "spec.install.etcdTLSEnabled"
	EtcdSecretNameConfig          = "spec.install.etcdSecretName"
	StorageClassConfig            = "spec.install.storageClassName"
	AdminUsernameConfig           = "spec.install.adminUsername"
	AdminPasswordConfig           = "spec.install.adminPassword"
	UninstallEtcdNamespaceConfig  = "spec.uninstall.etcdNamespace"
	UninstallStosOperatorNSConfig = "spec.uninstall.storageOSOperatorNamespace"
	UninstallStosClusterNSConfig  = "spec.uninstall.storageOSClusterNamespace"
)

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) (*Installer, error)

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

func (*Installer) Install

func (in *Installer) Install(config *apiv1.KubectlStorageOSConfig) error

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

func (*Installer) Uninstall

func (in *Installer) Uninstall(config *apiv1.KubectlStorageOSConfig, upgrade bool) error

Uninstall performs storageos and etcd uninstallation for kubectl-storageos

Jump to

Keyboard shortcuts

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