Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/2.7 backport] Add reference.ParseDockerRef utility function #3002

Merged

Commits on Dec 20, 2019

  1. Add reference.ParseDockerRef utility function

    ParseDockerRef normalizes the image reference following the docker
    convention. This is added mainly for backward compatibility. The reference
    returned can only be either tagged or digested. For reference contains both tag
    and digest, the function returns digested reference, e.g.
    
        docker.io/library/busybox:latest@sha256:7cc4b5aefd1d0cadf8d97d4350462ba51c694ebca145b08d7d41b41acc8db5aa
    
    will be returned as
    
        docker.io/library/busybox@sha256:7cc4b5aefd1d0cadf8d97d4350462ba51c694ebca145b08d7d41b41acc8db5aa.
    
    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    (cherry picked from commit 0ac367f)
    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Dec 20, 2019
    Copy the full SHA
    fad36ed View commit details
    Browse the repository at this point in the history