Auto-generated documentation for ocs_ci.ocs.resources.packagemanifest module.
Package manifest related functionalities
class PackageManifest(OCP):
def __init__(
resource_name='',
namespace=defaults.MARKETPLACE_NAMESPACE,
**kwargs,
):
This class represent PackageManifest and contains all related methods.
def get_channels():
Returns channels for package manifest
list
- available channels for package manifest
ResourceNameNotSpecifiedException
- in case the name is not specified.
def get_current_csv(channel=None):
Returns current csv for default or specified channel
str
- Current CSV name
ResourceNameNotSpecifiedException
- in case the name is not specified.
def get_default_channel():
Returns default channel for package manifest
str
- default channel name
ResourceNameNotSpecifiedException
- in case the name is not specified.
def wait_for_resource(resource_name='', timeout=60, sleep=3):
Wait for a packagemanifest exists.
resource_name
str - The name of the resource to wait for. If not specified the self.resource_name will be used. At least on of those has to be set!timeout
int - Time in seconds to waitsleep
int - Sampling time in seconds
ResourceNameNotSpecifiedException
- in case the name is not specified.TimeoutExpiredError
- in case the resource not found in timeout