Story #7089
closed
As an admin I want to define namespaces for container repositories
Status:
CLOSED - CURRENTRELEASE
Description
To be able to assign permissions (RBAC) for the creation of repositories in certain namespaces, pulp_container needs a Namespace model that can be created via the pulp-api.
Distributions must be assigned to such a Namespace.
The "global" Namespace "library" should always be available.
- Sprint/Milestone set to 2.2.0
Each repository and distribution should have a Foreign Key to a Namespace. A Namespace should just have a 'name'.
- Status changed from NEW to ASSIGNED
- Assignee set to mdellweg
From https://docs.docker.com/registry/spec/api/#overview :
Classically, repository names have always been two path components where each path component is less than 30 characters. The V2 registry API does not enforce this. The rules for a repository name are as follows:
A repository name is broken up into path components. A component of a repository name must be at least one lowercase, alpha-numeric characters, optionally separated by periods, dashes or underscores. More strictly, it must match the regular expression [a-z0-9]+(?:[._-][a-z0-9]+)*.
If a repository name has two or more path components, they must be separated by a forward slash (“/”).
The total length of a repository name, including slashes, must be less than 256 characters.
These name requirements only apply to the registry API and should accept a superset of what is supported by other docker ecosystem components.
It looks like we try to support having arbitrary path's for container repositories.
I am quite unsure, how this will work with a namespace concept.
Can we assume a two component model for this? Should we have nested namespaces?
- Sprint changed from Sprint 80 to Sprint 81
- Sprint changed from Sprint 81 to Sprint 82
- Status changed from ASSIGNED to POST
- Sprint changed from Sprint 82 to Sprint 83
- Sprint changed from Sprint 83 to Sprint 84
- Sprint changed from Sprint 84 to Sprint 85
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
- Sprint/Milestone changed from 2.2.0 to 2.3.0
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Also available in: Atom
PDF
Add namespace to distributions
fixes #7089 https://pulp.plan.io/issues/7089