package
0.0.0-20240815173558-303cc3735024
Repository: https://github.com/libopenstorage/operator.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
AddLabelToRandomNode adds the given label to a random worker node.
No description provided by the author
ApproveInstallPlan finds correct install plan and approves it.
ConstructStorageCluster makes StorageCluster object and add all the common basic parameters that all StorageCluster should have.
No description provided by the author
CreateObjects creates the given k8s objects.
CreatePxVsphereSecret creates secret for PX to authenticate with vSphere.
CreateStorageCluster creates the given storage cluster on k8s.
CreateStorageClusterFromSpec creates a storage cluster from a file.
CreateStorageClusterTestSpecFunc creates a function that returns test specs for a test case.
DeleteAndValidatePxOperatorViaMarketplace deletes and validates PX Operator and its resources via Openshift Marketplace.
DeleteCatalogSource deletes CatalogSource resource.
DeleteClusterServiceVersion deletes ClusterServiceVersion resource.
DeleteObjects deletes the given k8s objects if present.
DeleteOperatorGroup deletes OperatorGroup resource.
DeleteSubscription deletes Subscription resource.
DeployAndValidatePxOperatorViaMarketplace deploys and validates PX Operator via Openshift Marketplace.
DeployAndValidateStorageCluster creates and validates StorageCluster.
DeployAndValidateStorageClusterAetosDemo creates and validates StorageCluster for Aetos Wrapper Demo.
DeployCatalogSource creates CatalogSource resource.
DeployOperatorGroup creates OperatorGroup resource.
DeployStorageCluster creates StorageCluster with Portworx defaults.
DeploySubscription creates Subscription resource.
GenerateFleet will attempt to create a fleet of devices matching the given requirements, consisting of devices from the source config.
GetCurrentCSV gets currentCSV from Subscription object and returns it as a string.
No description provided by the author
GetPxOperatorDeployment return PX Operator deployment.
GetPxOperatorImage return PX Operator image.
GetPXOperatorVersion returns the portworx operator version found.
GetPxVersionFromSpecGenURL gets the px version to install or upgrade, e.g.
LoadSourceConfigOrFail loads the source config once during the test.
MakeDNS1123Compatible will make the given string a valid DNS1123 name, which is the same validation that Kubernetes uses for its object names.
ParseApplicationSpecs parses the files from a directory and returns k8s objects.
ParseSpecs parses the file under testspec folder and returns all the valid k8s objects.
ParseSpecsWithFullPath parses the file and returns all the valid k8s objects.
PopulateStorageCluster populate the cluster name and update node names.
RemoveLabelFromNode removes the label from the given node.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UninstallAndValidateStorageCluster uninstall and validate the cluster deletion.
UninstallAndValidateStorageClusterAetosDemo uninstall and validate the cluster deletion for Aetos wrapper demo.
UpdateAndValidateAutopilot update StorageCluster, validates Autopilot components only and return latest version of live StorageCluster.
UpdateAndValidateCSI update StorageCluster, validates CSI components only and return latest version of live StorageCluster.
UpdateAndValidateGrafana update StorageCluster, validates grafana and return latest version of live StorageCluster.
UpdateAndValidateMonitoring update StorageCluster, validates Monitoring components only and return latest version of live StorageCluster.
UpdateAndValidatePvcController update StorageCluster, validates PVC Controller components only and return latest version of live StorageCluster.
UpdateAndValidatePxOperator update and validate PX Operator deployment.
UpdateAndValidatePxOperatorViaMarketplace updates and validates PX Operator and its resources via Openshift Marketplace.
UpdateAndValidateSecurity update StorageCluster, validates Security components only and return latest version of live StorageCluster.
UpdateAndValidateStorageCluster update, validate and return new StorageCluster.
UpdateAndValidateStork update StorageCluster, validates Stork components only and return latest version of live StorageCluster.
UpdateCatalogSource updates CatalogSource resource.
UpdatePortworxDaemonSetImages adds the portworx image from the supplied version manifest to the given daemonset spec.
UpdatePxOperator update PX Operator deploymnent.
UpdateStorageCluster updates the given StorageCluster and return latest live version of it.
ValidateApplicationWorkload checks application deployments and PVCs are healthy.
ValidateObjectsAreTerminated validates that the objects have been terminated.
ValidatePxOperator validatea PX Operator deployment is created.
ValidatePxOperatorDeleted validate PX Operator deployment is deleted.
ValidatePxOperatorDeploymentAndVersion validates PX Operator deployment is created and compares PX Operator version to the expected.
ValidateStorageClusterComponents validates storage cluster components.
# Constants
AllAvailableBackends can be used in a PureBackendRequirements struct to indicate that all available FlashArrays or FlashBlades should be used.
DefaultValidateApplicationRetryInterval is a default retry interval for component validation.
DefaultValidateApplicationTimeout is a default timeout for component validation.
DefaultValidateComponentRetryInterval is a default retry interval for component validation.
DefaultValidateComponentTimeout is a default timeout for component validation.
DefaultValidateDeployRetryInterval is a default retry interval for deployment validation.
DefaultValidateDeployTimeout is a default timeout for deployment validation.
DefaultValidateUninstallRetryInterval is a default retry interval for uninstall validation.
DefaultValidateUninstallTimeout is a default timeout for uninstall validation.
DefaultValidateUpdateRetryInterval is a default retry interval for update validation.
DefaultValidateUpdateTimeout is a default timeout for update validation.
DefaultValidateUpgradeRetryInterval is a default retry interval for upgrade validation.
DefaultValidateUpgradeTimeout is a default timeout for upgrade validation.
LabelValueFalse value "false" for a label.
LabelValueTrue value "true" for a label.
NodeReplacePrefix is used for replacing node name during the test.
OutputSecretName is the name of the secret we will output chosen credential subsets to.
PortworxOperatorContainerName name of portworx operator container.
PortworxOperatorDeploymentName name of portworx operator deployment.
SourceConfigSecretName is the name of the secret that contains the superset of all credentials we may select from for these tests.
# Variables
CloudProvider is a cloud provider name.
FAFBSourceConfig contains credentials provided in pure secret.
IsAks is an indication that this is AKS cluster or not.
IsEks is an indication that this is EKS cluster or not.
IsGke is an indication that this is GKE cluster or not.
IsOcp is an indication that this is OCP cluster or not.
IsOke is an indication that this is OKE cluster or not.
K8sVersion is a K8s version from cluster server side.
OperatorUpgradeHopsImageList image list for upgrade PX Operator test.
PxCustomAnnotations is a string of comma separated annotations.
PxDeviceSpecs is a list of `;` separated Portworx device specs.
PxDockerPassword docker credential for internal repo.
PxDockerUsername docker username for internal repo.
PxEnvVars is a string of comma separated ENV vars.
PxImageOverride overrides the spec gen url passed in.
PxKvdbSpec is a Portworx KVDB device spec.
PxNamespace is a default namespace for StorageCluster.
PxOperatorRegistryImageName is an image that used to specify which registry to use when deploying PX Operator via Openshift Marketplace.
PxOperatorTag is the version of px operator that will be used for Openshift Marketplace deployment.
PxOperator1_5_0 portworx-operator 1.5.0 minimum version.
PxOperatorVer1_7 portworx-operator 1.7 minimum version.
PxOperatorVer1_8 portworx-operator 1.8 minimum version.
PxOperatorVer1_8_1 portworx-operator 1.8.1 minimum version.
PxOperatorVer23_10_2 portworx-operator version 23.1.02 is when we allow overriding PDB minAvailable value.
PxOperatorVer23_10_3 portworx-operator 23.10.3 version is when we not allowing to deploy our own PX Prometheus.
PxOperatorVer23_3 portworx-operator 23.3 minimum version.
PxOperatorVer23_5_0 portworx-operator 23.5.0 version to check for known Telemetry port issue.
PxOperatorVer23_5_1 portworx-operator 23.5.1 version.
PxOperatorVer23_8 portworx-operator 23.8 minimum version.
PxOperatorVer24_1_0 portworx-operator 24.1.0 version to correct invalid PDB minAvailable.
PxOperatorVer24_2_0 portworx-operator 24.2.0 version is minimum version smart and parallel upgrades is supported.
PxOperatorVersion is the version of installed px operator found.
PxSpecGenURL spec url to get component images.
PxSpecImages contains images parsed from spec gen url.
PxUpgradeHopsURLList URL list for upgrade PX test.
PxVspherePassword vSphere password for authentication.
PxVsphereUsername vSpehre username for authentication.
SourceConfigPresent checks whether pure secret present.
# Structs
No description provided by the author