probeArtifact

get_docker_image_version_from_tag

Get image version (sha256) for most recent tag.

Activity as code

Below are the details and signature of the activity Python module.

Typeprobe
Modulechaosgcp.artifact.probes
Nameget_docker_image_version_from_tag
Returnmapping

Usage

JSON

{
  "name": "get-docker-image-version-from-tag",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosgcp.artifact.probes",
    "func": "get_docker_image_version_from_tag",
    "arguments": {
      "repository": "",
      "package_name": ""
    }
  }
}

YAML

name: get-docker-image-version-from-tag
provider:
  arguments:
    package_name: ""
    repository: ""
  func: get_docker_image_version_from_tag
  module: chaosgcp.artifact.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
repositorystringYesRepositoryName of the repository
package_namestringYesContainer NameName of the container in the repository
tagstringlatestNoTagVersion information for this particular tag

Signature

def get_docker_image_version_from_tag(
        repository: str,
        package_name: str,
        tag: str = 'latest',
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass