-
Notifications
You must be signed in to change notification settings - Fork 1
Feature delete tag #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
568b901
feat: Update DTO
Vasilijez 1965625
feat: Create initial `delete_tag_endpoint`
Vasilijez ef1e0ee
fix: Add missing `NotInRelationshipException` import
Vasilijez b104950
feat: Unify `pre_authorize` async/sync handling
Vasilijez cbcdfb7
feat: Implement `has_delete_tag_access`
Vasilijez c9af4c8
refactor: Promote least privilege by splitting token builders
Vasilijez 0388ca0
feat: Cert update for backend HTTP to registry
Vasilijez 6fa1ad2
docs: Improve readability
Vasilijez c098241
refactor: Create `RegistryClient`
Vasilijez 0fe69bc
refactor: Move logic to service & handle exceptions
Vasilijez 2b447a5
fix: Add missing `remove_tag` method
Vasilijez 4ef55d2
fix: Activate `RegistryClient`
Vasilijez cf54ac3
refactor: Eliminate redundancy by creating `build_manifest_jwt`
Vasilijez ced6b6b
fix: Cover all types of exceptions when calling Distribution
Vasilijez e1378b9
test: Retune the old tests
Vasilijez aba849c
test: Add all unit tests
Vasilijez 8e5501e
chore: Remove unused code
Vasilijez 480012b
test: Write integration test
Vasilijez 9b4abb6
fix: Address flaky legacy unit test
Vasilijez e1b6c71
chore: Separate internal and external routers in `registry_controller`
Vasilijez e6f7563
feat: Add `Delete tag` button
Vasilijez 1a197e9
feat: Add `.sh` script to run Distribution garbage collector
Vasilijez 7ebd54a
fix: Use `canonical_name` instead of `name`
Vasilijez aeb09bc
fix: Print `tag_name` instead of `None`
Vasilijez 7bd7cbc
fix: Remove `Base image` label
Vasilijez 8c41910
feat: Write `_format_registry_event`
Vasilijez 72e69fc
test: Write unit tests for `_format_registry_event`
Vasilijez e7fdb12
docs: Add optional `[:{tag}]` command
Vasilijez 5f295e7
Merge branch 'develop' into feature-delete-tag
Vasilijez 8815fb3
fix: Correct bad conflict resolution
Vasilijez cfd920d
feat: Handle image manifest link deletion
Vasilijez 490e199
feat: Unzip certificates by default
Vasilijez d98c810
chore: Remove unnecessary comments
Vasilijez 6d85e5a
feat: Wrap spinner around delete tag button
Vasilijez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/bin/sh | ||
|
|
||
| REGISTRY_STORAGE_PATH="/var/lib/registry/docker/registry/v2/repositories" | ||
|
|
||
| if [ "$RUN_REGISTRY_GC" = "true" ]; then | ||
| if [ -d "$REGISTRY_STORAGE_PATH" ]; then | ||
| echo "Running Distribution garbage collection..." | ||
| registry garbage-collect /etc/docker/registry/config.yml --delete-untagged | ||
| else | ||
| echo "Skipping garbage collection: No images have ever been pushed by any user." | ||
| fi | ||
| else | ||
| echo "Skipping garbage collection: RUN_REGISTRY_GC is not true." | ||
| fi | ||
|
|
||
| echo "Starting Distribution..." | ||
| exec registry serve /etc/docker/registry/config.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.