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

rework AD image name extractor to support new swarm format #3511

Merged
merged 1 commit into from
Sep 11, 2017

Conversation

xvello
Copy link
Contributor

@xvello xvello commented Sep 8, 2017

swarm can use org/image:tag@sha256:xxxxxxxx format, that throws off
the parser. reworking it to handle all known formats and unit test it

Testing Guidelines

Added test_get_image_ident unit test

@xvello xvello added this to the 5.17.1 milestone Sep 8, 2017
@xvello xvello force-pushed the xvello/sd_image_ident branch 2 times, most recently from 3d48892 to cb96a65 Compare September 8, 2017 08:53
# Custom registry, simple form
'myregistry.local:5000/testing/test-image:version': 'test-image',
# Customm regustry, most insane for possible
'myregistry.local:5000/testing/test-image:version@sha256:5bef08742407efd622d243692b79ba0055383bbce12900324f75e56f589aedb0': 'test-image',
Copy link
Member

Choose a reason for hiding this comment

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

🙈

Copy link
Member

@hkaj hkaj left a comment

Choose a reason for hiding this comment

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

looks great!

swarm can use org/image:tag@sha256:xxxxxxxx format, that throws off
the parser. reworking it to handle all known formats and unit test it
@xvello xvello force-pushed the xvello/sd_image_ident branch from cb96a65 to 768b364 Compare September 8, 2017 14:37
@xvello xvello merged commit f16184d into master Sep 11, 2017
@xvello xvello deleted the xvello/sd_image_ident branch September 11, 2017 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants