mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 12:15:20 +01:00
prevent retained tag with same digest deleted by other tag
Signed-off-by: Ziming Zhang <zziming@vmware.com> Change-Id: I37a3ef0d4cff7214e35076453494d89f0ad84d43
This commit is contained in:
parent
8290af6d25
commit
4248f7a45e
@ -119,6 +119,7 @@ func (frc *fakeRetentionClient) GetCandidates(repo *res.Repository) ([]*res.Cand
|
||||
Repository: "harbor",
|
||||
Kind: "image",
|
||||
Tag: "latest",
|
||||
Digest: "latest",
|
||||
PushedTime: time.Now().Unix() - 11,
|
||||
PulledTime: time.Now().Unix() - 2,
|
||||
CreationTime: time.Now().Unix() - 10,
|
||||
@ -129,6 +130,7 @@ func (frc *fakeRetentionClient) GetCandidates(repo *res.Repository) ([]*res.Cand
|
||||
Repository: "harbor",
|
||||
Kind: "image",
|
||||
Tag: "dev",
|
||||
Digest: "dev",
|
||||
PushedTime: time.Now().Unix() - 10,
|
||||
PulledTime: time.Now().Unix() - 3,
|
||||
CreationTime: time.Now().Unix() - 20,
|
||||
|
Loading…
Reference in New Issue
Block a user