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

Deprecate instantiating a derived Image class with multiple options #747

Closed
nishakm opened this issue Jun 25, 2020 · 2 comments · Fixed by #750
Closed

Deprecate instantiating a derived Image class with multiple options #747

nishakm opened this issue Jun 25, 2020 · 2 comments · Fixed by #750
Milestone

Comments

@nishakm
Copy link
Contributor

nishakm commented Jun 25, 2020

Description
At the time of creating the Image class, it was not known how users usually reference images. Now we know that they mostly reference them either in the repo:tag format or the repo@digest_type:digest format. There is already functionality to parse the two. Hence we do not need to record Image ID. We can just check to see if what is instantiated follows these two formats.

To Do

  1. Modify the Image class to be instantiated with a generic repotag property
  2. Remove the ImageID property
  3. Test functionality

Background
This is related to PR #734

Super Issues
#678

@mukultaneja
Copy link
Contributor

@nishakm, can I take this issue?

@nishakm
Copy link
Contributor Author

nishakm commented Jun 26, 2020

@mukultaneja go for it!

nishakm pushed a commit that referenced this issue Jun 29, 2020
This commit does following,
1. Modifies the Image class to be instantiated
with a generic repotag property
2. Removes the ImageID property
3. Modifies the tests appropriately

Resolved: #747

Signed-off-by: mukultaneja <mtaneja@vmware.com>
@rnjudge rnjudge added this to the Release 2.2.0 milestone Jul 30, 2020
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 a pull request may close this issue.

3 participants