The Image class

class operator_csv_libs.images.Image(name=None, image=None, deployment=None, container=None)
get_digest()

Returns image digest

Returns

Digest in format <type>:<hash>

Return type

string

get_image()

Return the full image

Returns

Full image in format <repo>/<name>[@digest][:tag]

Return type

string

get_image_name()

Returns the image name, stripped of repo and tag/digest

Returns

Name

Return type

string

get_image_repo()

Returns the image_repo section of the overall image

Returns

Image repo i.e. quay.io/myrepo]

Return type

string

get_olm_name()

Return the name of the image. Typically associated with olm.relatedImage and spec.relatedImages

Returns

Name

Return type

string

get_tag()

Get the tag associated with an image if known

Returns

Tag

Return type

string

set_digest(digest)

Set image digest

Parameters

digest (string) – Digest in format <type>:<hash>

set_image_repo(repo)
set_tag(tag)

Set new tag for image. Will update self.image only if image is identified by tag, but not overwrite digest

Parameters

tag (string) – New tag to set