def list_image(self): """Print image details to the command line. Returns: None. """ # List acr repository acr_repositories = AzureController.list_acr_repositories( acr_name=f"{self.cluster_id}acr") logger.info(acr_repositories)
def _build_image_address(self, image_name: str) -> str: """Build image address name for image that stored at Azure Container Registry. Args: image_name (str): name of the image. Returns: str: image address name. """ # Get repositories acr_repositories = AzureController.list_acr_repositories( acr_name=f"{self.cluster_id}acr") # Build address if image_name in acr_repositories: return f"{self.cluster_id}acr.azurecr.io/{image_name}" else: return image_name