Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bc32ac93
Commit
bc32ac93
authored
Jun 23, 2020
by
João Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused container registry tag name validation
parent
3fb39b58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
lib/container_registry/tag.rb
lib/container_registry/tag.rb
+0
-7
No files found.
lib/container_registry/tag.rb
View file @
bc32ac93
...
...
@@ -6,9 +6,6 @@ module ContainerRegistry
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
:revision
,
:short_revision
,
to: :config_blob
,
allow_nil:
true
...
...
@@ -16,10 +13,6 @@ module ContainerRegistry
@repository
,
@name
=
repository
,
name
end
def
valid_name?
!
name
.
match
(
TAG_NAME_REGEX
).
nil?
end
def
valid?
manifest
.
present?
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment