Documentation
¶
Index ¶
Constants ¶
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 ¶
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 ¶
EnablePortalManager applies the existing storageoscluster with enablePortalManager set to value of 'enable'.
func (*Installer) Install ¶
Install performs storageos operator and etcd operator installation for kubectl-storageos
func (*Installer) InstallPortalManager ¶
InstallPortalManager installs portal manager necessary components.
func (*Installer) Uninstall ¶
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 ¶
UninstallPortalManager writes backup-filestem and uninstalls portal manager components.