Documentation ¶
Index ¶
- Constants
- func GetDefaultStorageCluster() *ocsv1.StorageCluster
- func GetDefaultStorageSystem() *odfv1alpha1.StorageSystem
- type DeployManager
- func (d *DeployManager) CheckAllCsvs(csvNames []string) error
- func (d *DeployManager) CheckStorageSystemCondition() error
- func (d *DeployManager) CheckStorageSystemOwnerRef() error
- func (d *DeployManager) CreateNamespace(name string) error
- func (d *DeployManager) CreateOlmResources(olmResources *OlmResources) error
- func (d *DeployManager) CreateStorageSystem() error
- func (d *DeployManager) DeleteNamespaceAndWait(name string) error
- func (d *DeployManager) DeleteOlmResources(olmResources *OlmResources) error
- func (d *DeployManager) DeleteStorageSystemAndWait() error
- func (d *DeployManager) DeployODFWithOLM(odfCatalogImage, subscriptionChannel string) error
- func (d *DeployManager) GetOlmResources(odfCatalogImage, subscriptionChannel string) *OlmResources
- func (d *DeployManager) UndeployODFWithOLM(odfCatalogImage, subscriptionChannel string) error
- func (d *DeployManager) WaitForCatalogSource(catalogsource *operatorsv1alpha1.CatalogSource) error
- func (d *DeployManager) WaitForCsv(csv *operatorsv1alpha1.ClusterServiceVersion) error
- type OlmResources
Constants ¶
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 ¶
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 ¶
func (d *DeployManager) WaitForCsv(csv *operatorsv1alpha1.ClusterServiceVersion) error
WaitForCsv waits for the CSV to successfully installed
type OlmResources ¶
type OlmResources struct {
// contains filtered or unexported fields
}