Skip to content

Conversation

@mabenedi
Copy link
Member

@mabenedi mabenedi commented Jan 31, 2022

Description

  • Adds new command group az acr manifest
  • Deprecates the az acr repository show-manifests command

Testing Guide

  • name: Get the manifest of the artifact 'hello-world:latest'.
    text: az acr manifest show -r MyRegistry -n hello-world:latest

  • name: List the manifests of the repository 'hello-world'.
    text: az acr manifest list -r MyRegistry -n hello-world

  • name: Delete the manifest of the artifact 'hello-world:latest'.
    text: az acr manifest delete -r MyRegistry -n hello-world:latest

  • name: List the referrers to the manifest of the artifact 'hello-world:latest'.
    text: az acr manifest list-referrers -r MyRegistry -n hello-world:latest

  • name: Get the metadata of the tag 'hello-world:latest'.
    text: az acr manifest metadata show -r MyRegistry -n hello-world:latest

  • name: List the metadata of the manifests in the repository 'hello-world'.
    text: az acr manifest metadata list -r MyRegistry -n hello-world

  • name: Update the metadata of the tag 'hello-world:latest'.
    text: az acr manifest metadata update -r MyRegistry -n hello-world:latest --write-enabled false

History Notes

[ACR] az acr manifest: Add new command group to support managing artifact manifests in Azure Container Registries
[ACR] Deprecate az acr repository show-manifests command and replace with acr manifest metadata list command


This checklist is used to make sure that common guidelines for a pull request are followed.

@yonzhan
Copy link
Collaborator

yonzhan commented Feb 1, 2022

@zhoxing-ms for awareness

@wangzelin007 wangzelin007 changed the title [acr] Add az acr manifest command group [acr] Add az acr manifest command group Feb 9, 2022
@zhoxing-ms zhoxing-ms changed the title [acr] Add az acr manifest command group [ACR] az acr manifest: Add new command group Feb 9, 2022
@mabenedi mabenedi requested a review from kairu-ms as a code owner February 14, 2022 21:47
repository, tag, manifest = _parse_image_name(manifest_spec, allow_digest=True)

if not manifest:
image = repository + ':' + tag
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You use it several times. Might as well create a constant call repoTagLimiter or something like that

@zhoxing-ms
Copy link
Contributor

@rosanch I see you left a lot of comments but approved this PR. Do you think we can merge this PR?

@zhoxing-ms
Copy link
Contributor

@rosanch I see that everyone has approved it. In order to avoid delaying it until the next sprint release, I'll merge it first. If there is anything to be optimized, we can submit a new PR for release in the next sprint

@zhoxing-ms zhoxing-ms merged commit 6a6dbff into Azure:dev Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants