Project

Profile

Help

Story #4669

closed

As a user, I can associate a RepositoryVersion with a DockerDistribution

Added by dkliban@redhat.com over 5 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 51
Quarter:

Description

The docker plugin currently requires the user to create a Publication before the content of the RepositoryVersion can be made available via a Distribution. The is no publisher that would generate metadata for the content, so the Publication and RepositoryVersion are exactly the same. The creation of a Publication is unnecessary steps. The user should be able to create a Distribution with a reference to a RepositoryVersion.


Related issues

Related to Pulp - Test #4754: As a user, I can associate a RepositoryVersion with a DockerDistributionCLOSED - DUPLICATEActions
Actions #2

Updated by ipanova@redhat.com over 5 years ago

  • Tags Pulp 3 added
Actions #3

Updated by ipanova@redhat.com over 5 years ago

  • Description updated (diff)
Actions #4

Updated by amacdona@redhat.com over 5 years ago

  • Blocks Task #4671: Publish REST API on read the docs added
Actions #5

Updated by amacdona@redhat.com over 5 years ago

  • Blocks deleted (Task #4671: Publish REST API on read the docs )
Actions #6

Updated by ipanova@redhat.com over 5 years ago

  • Groomed changed from No to Yes
  • Sprint set to Sprint 51
Actions #7

Updated by dkliban@redhat.com over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com

Added by dkliban@redhat.com over 5 years ago

Revision a9fdc824 | View on GitHub

Problem: BaseDistribution.validate() is too Distribution specific

Solution: Move validate() to the Distribution instead

This patch allows classes that inherit from BaseDistribution to call super().validate(data) to get the validation provided by the ModelSerializer.

This patch also removes base_path from BaseDistribution because it is defined on the Distribution. DockerDistribution also defines it for itself.

re: #4669 https://pulp.plan.io/issues/4669

Actions #8

Updated by dkliban@redhat.com over 5 years ago

  • Status changed from ASSIGNED to POST

Added by dkliban@redhat.com over 5 years ago

Revision 202d3cdf | View on GitHub

Problem: Publications are not needed for Docker plugin

Solution: Add 'repository_version' field to DockerDistribution

This patch allows users to create DockerDistributions that serve repository versions. A distribution can be created with either a repository or repository version defined. If a repository is defined, the latest version of that repository is always available at the distribution. If a repository version is specified, then that repository version is always available at that distribution.

This patch updates an existing test and adds a new one. The two tests assert that a docker or podman pull can be performed when a repository is used in a distribution and when a repository version is used.

This patch also fixes the tests to work with docker as the client.

closes: #4669 https://pulp.plan.io/issues/4669

Added by dkliban@redhat.com over 5 years ago

Revision 202d3cdf | View on GitHub

Problem: Publications are not needed for Docker plugin

Solution: Add 'repository_version' field to DockerDistribution

This patch allows users to create DockerDistributions that serve repository versions. A distribution can be created with either a repository or repository version defined. If a repository is defined, the latest version of that repository is always available at the distribution. If a repository version is specified, then that repository version is always available at that distribution.

This patch updates an existing test and adds a new one. The two tests assert that a docker or podman pull can be performed when a repository is used in a distribution and when a repository version is used.

This patch also fixes the tests to work with docker as the client.

closes: #4669 https://pulp.plan.io/issues/4669

Added by dkliban@redhat.com over 5 years ago

Revision 202d3cdf | View on GitHub

Problem: Publications are not needed for Docker plugin

Solution: Add 'repository_version' field to DockerDistribution

This patch allows users to create DockerDistributions that serve repository versions. A distribution can be created with either a repository or repository version defined. If a repository is defined, the latest version of that repository is always available at the distribution. If a repository version is specified, then that repository version is always available at that distribution.

This patch updates an existing test and adds a new one. The two tests assert that a docker or podman pull can be performed when a repository is used in a distribution and when a repository version is used.

This patch also fixes the tests to work with docker as the client.

closes: #4669 https://pulp.plan.io/issues/4669

Added by dkliban@redhat.com over 5 years ago

Revision 202d3cdf | View on GitHub

Problem: Publications are not needed for Docker plugin

Solution: Add 'repository_version' field to DockerDistribution

This patch allows users to create DockerDistributions that serve repository versions. A distribution can be created with either a repository or repository version defined. If a repository is defined, the latest version of that repository is always available at the distribution. If a repository version is specified, then that repository version is always available at that distribution.

This patch updates an existing test and adds a new one. The two tests assert that a docker or podman pull can be performed when a repository is used in a distribution and when a repository version is used.

This patch also fixes the tests to work with docker as the client.

closes: #4669 https://pulp.plan.io/issues/4669

Actions #10

Updated by dkliban@redhat.com over 5 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

Applied in changeset commit:pulp_docker|202d3cdffa6f9707b9f84c569b1a8f78a37dc940.

Actions #11

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)
Actions #12

Updated by kersom over 5 years ago

  • Related to Test #4754: As a user, I can associate a RepositoryVersion with a DockerDistribution added
Actions #13

Updated by ipanova@redhat.com about 5 years ago

  • Project changed from Docker Support to Container Support
Actions #14

Updated by ipanova@redhat.com about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #15

Updated by ipanova@redhat.com almost 5 years ago

  • Sprint/Milestone set to 1.0.0

Also available in: Atom PDF