Skip to content

add back validation (maybe?) for disable registry url validation in prune #15291

Closed

Description

@deads2k

This was removed in disable registry url validation in prune

reenable

if _, err := url.Parse(o.RegistryUrlOverride); 
   err != nil { in pkg/cmd/admin/prune/images.go

Activity

  1. added this to the milestone on Jul 18, 2017
  2. mfojtik commented on Jul 19, 2017

    @mfojtik
    Contributor
  3. deads2k commented on Jul 19, 2017

    @deads2k
    ContributorAuthor

    @deads2k @miminar ideally I would drop that option in favor of https://trello.com/c/2cHkrqIu/954-provide-public-pull-url-for-images

    Your call. Presumably the code you're calling will do something reasonable.

  4. miminar commented on Jul 19, 2017

    @miminar

    We need to support the flag anyway. Even the best algorithm we can make cannot be right all the time.

    Therefor the validation should be re-enabled. The argument isn't really a URL, it's rather a shortened pull-spec (just the registry part). I thought we could use docker's validation, but they still use url.Parse(). And their validation for insecure registries is private. I'll come up with something.

  5. miminar commented on Jul 26, 2017

    @miminar

    Addressed by #14914

  6. added a commit that references this issue on Aug 17, 2017
    86abb1f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions