Skip to content

Latest commit

 

History

History
112 lines (71 loc) · 2.99 KB

packagemanifest.md

File metadata and controls

112 lines (71 loc) · 2.99 KB

PackageManifest

Auto-generated documentation for ocs_ci.ocs.resources.packagemanifest module.

Package manifest related functionalities

PackageManifest

[find in source code]

class PackageManifest(OCP):
    def __init__(
        resource_name='',
        namespace=defaults.MARKETPLACE_NAMESPACE,
        **kwargs,
    ):

This class represent PackageManifest and contains all related methods.

See also

PackageManifest().get_channels

[find in source code]

def get_channels():

Returns channels for package manifest

Returns

  • list - available channels for package manifest

Raises

  • ResourceNameNotSpecifiedException - in case the name is not specified.

PackageManifest().get_current_csv

[find in source code]

def get_current_csv(channel=None):

Returns current csv for default or specified channel

Returns

  • str - Current CSV name

Raises

  • ResourceNameNotSpecifiedException - in case the name is not specified.

PackageManifest().get_default_channel

[find in source code]

def get_default_channel():

Returns default channel for package manifest

Returns

  • str - default channel name

Raises

  • ResourceNameNotSpecifiedException - in case the name is not specified.

PackageManifest().wait_for_resource

[find in source code]

def wait_for_resource(resource_name='', timeout=60, sleep=3):

Wait for a packagemanifest exists.

Arguments

  • 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 wait
  • sleep int - Sampling time in seconds

Raises

  • ResourceNameNotSpecifiedException - in case the name is not specified.
  • TimeoutExpiredError - in case the resource not found in timeout