deploymanager

package
v0.0.0-...-7897655 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InstallNamespace is the namespace odf is installed into
	InstallNamespace = "openshift-storage"
)

Variables

This section is empty.

Functions

func GetDefaultStorageCluster

func GetDefaultStorageCluster() *ocsv1.StorageCluster

GetDefaultStorageCluster returns the default StorageCluster

func GetDefaultStorageSystem

func GetDefaultStorageSystem() *odfv1alpha1.StorageSystem

GetDefaultStorageSystem returns the default StorageSystem

Types

type DeployManager

type DeployManager struct {
	Client client.Client
	Ctx    context.Context
	Log    logr.Logger
}

func NewDeployManager

func NewDeployManager() (*DeployManager, error)

NewDeployManager creates a DeployManager struct with default configuration

func (*DeployManager) CheckAllCsvs

func (d *DeployManager) CheckAllCsvs(csvNames []string) error

CheckAllCsvs checks if all the required csvs are present & have succeeded

func (*DeployManager) CheckStorageSystemCondition

func (d *DeployManager) CheckStorageSystemCondition() error

CheckStorageSystemCondition verifies if the StorageSystem has the given conditions

func (*DeployManager) CheckStorageSystemOwnerRef

func (d *DeployManager) CheckStorageSystemOwnerRef() error

CheckStorageSystemOwnerRef checks the owner reference in the storagecluster

func (*DeployManager) CreateNamespace

func (d *DeployManager) CreateNamespace(name string) error

CreateNamespace creates a namespace

func (*DeployManager) CreateOlmResources

func (d *DeployManager) CreateOlmResources(olmResources *OlmResources) error

CreateOlmResources create OLM resources required to deploy odf operator

func (*DeployManager) CreateStorageSystem

func (d *DeployManager) CreateStorageSystem() error

CreateStorageSystem creates an default StorageSystem

func (*DeployManager) DeleteNamespaceAndWait

func (d *DeployManager) DeleteNamespaceAndWait(name string) error

DeleteNamespaceAndWait deletes a namespace and waits on it to terminate

func (*DeployManager) DeleteOlmResources

func (d *DeployManager) DeleteOlmResources(olmResources *OlmResources) error

DeleteOlmResources delete OLM resources required to deploy odf operator

func (*DeployManager) DeleteStorageSystemAndWait

func (d *DeployManager) DeleteStorageSystemAndWait() error

DeleteStorageSystemAndWait deletes the default StorageSystem and waits till its completely gone

func (*DeployManager) DeployODFWithOLM

func (d *DeployManager) DeployODFWithOLM(odfCatalogImage, subscriptionChannel string) error

DeployODFWithOLM deploys odf operator via an olm subscription

func (*DeployManager) GetOlmResources

func (d *DeployManager) GetOlmResources(odfCatalogImage, subscriptionChannel string) *OlmResources

GetOlmResources returns OLM resources required to deploy odf operator

func (*DeployManager) UndeployODFWithOLM

func (d *DeployManager) UndeployODFWithOLM(odfCatalogImage, subscriptionChannel string) error

UndeployODFWithOLM uninstalls odf operator

func (*DeployManager) WaitForCatalogSource

func (d *DeployManager) WaitForCatalogSource(catalogsource *operatorsv1alpha1.CatalogSource) error

WaitForCatalogSource wait for catalogSource to become ready

func (*DeployManager) WaitForCsv

WaitForCsv waits for the CSV to successfully installed

type OlmResources

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

Jump to

Keyboard shortcuts

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