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
Click to show internal directories.
Click to hide internal directories.