Repository navigation
Conversation
This proposed change relaxes the character restrictions on a repository namespace (further) to allow for colon as a name-segment delimiter in addition to dot, colon, and underscore. On Google's Cloud, we allow domain-scoped namespaces (e.g. google.com:foo), which enables enterprise customers to have a namespace over which they have full control. Signed-off-by: Matt Moore <[email protected]>
|
Isn't this going to make tags parsing more complex then? |
|
Howso? Given the position in the grammar, the allowance for ':' seems unambiguous with the ':' for expressing a tag. |
|
@dmp42 How would you feel about relaxing the client code to defer to the registry about character restrictions? The more I think about it, the more I like it. The client would maintain a very loose set of restrictions (e.g. interpretation of '/'-delimited parts), but the client would surface potentially rich diagnostic information from the registry when it returns a 400 Bad Request. In the 1.6 client, if I make the registry return a 400 with body: This gives the registry provider much greater freedom over acceptable names, which may be more or less restrictive depending on the underlying storage system. What do you think? Who would have to sign off on this? |
|
@mattmoor my point is barely that About suggesting a change like this, I would start a discussion on |
|
I see your point, my intent was to allow ":" in the namespace portion, which would be unambiguous, but v2 blurs the lines between the namespace and image portions, opting for a more directory-like nesting. I agree this change makes I'll send a proposal to discuss lazy validation on the main project. thanks. |
This proposed change relaxes the character restrictions on a repository namespace (further) to allow for colon as a name-segment delimiter in addition to dot, colon, and underscore.
For example, on Google's Cloud, we allow domain-scoped namespaces (e.g. moore.com:matt), which enables enterprise customers to have a namespace prefix under which all possible names belong to them.
An alternative approach to this one (of changing the canonical registry) would be to simply enable registries to have provider-specific validation, and simply avoid (or make quite liberal) the client-side validation and wording in the v2 API spec.
Happy to discuss how best to accommodate our use case.