Enforce usage of r8.im image name (#2146)
* Enforce usage of r8.im image name
* Do not use the username from the authentication
credentials, the user could always push to an org
that they have access to.
* Make sure the URL is a r8.im URL before breaking
it up.
* Use global registry host to check against
* Add component length check
* Fix docker tests for fast push
* Update pkg/web/client.go
Co-authored-by: F <f@replicate.com>
Signed-off-by: Will Sackfield <will.sackfield@gmail.com>
* Update pkg/web/client_test.go
Co-authored-by: F <f@replicate.com>
Signed-off-by: Will Sackfield <will.sackfield@gmail.com>
* Update pkg/web/client.go
Co-authored-by: F <f@replicate.com>
Signed-off-by: Will Sackfield <will.sackfield@gmail.com>
---------
Signed-off-by: Will Sackfield <will.sackfield@gmail.com>
Co-authored-by: F <f@replicate.com>