Commit 2f06dde1 authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'remove-unused-container-registry-tag-regex' into 'master'

Remove unused container registry tag name validation

See merge request gitlab-org/gitlab!35142
parents a1078d23 bc32ac93
...@@ -6,9 +6,6 @@ module ContainerRegistry ...@@ -6,9 +6,6 @@ module ContainerRegistry
attr_reader :repository, :name attr_reader :repository, :name
# https://github.com/docker/distribution/commit/3150937b9f2b1b5b096b2634d0e7c44d4a0f89fb
TAG_NAME_REGEX = /^[\w][\w.-]{0,127}$/.freeze
delegate :registry, :client, to: :repository delegate :registry, :client, to: :repository
delegate :revision, :short_revision, to: :config_blob, allow_nil: true delegate :revision, :short_revision, to: :config_blob, allow_nil: true
...@@ -16,10 +13,6 @@ module ContainerRegistry ...@@ -16,10 +13,6 @@ module ContainerRegistry
@repository, @name = repository, name @repository, @name = repository, name
end end
def valid_name?
!name.match(TAG_NAME_REGEX).nil?
end
def valid? def valid?
manifest.present? manifest.present?
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment