mirror of
https://github.com/goharbor/harbor.git
synced 2024-06-26 06:45:12 +02:00
fix dry run creation time (#19060)
fixes #19059 Give the mock time for dry run, otherwise, it will be zero. Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
bef4ccc782
commit
d93f24a4dc
|
@ -554,6 +554,7 @@ func (gc *GarbageCollector) deletedArt(ctx job.Context) (map[string][]model.Arti
|
||||||
ManifestMediaType: untagged.ManifestMediaType,
|
ManifestMediaType: untagged.ManifestMediaType,
|
||||||
RepositoryName: untagged.RepositoryName,
|
RepositoryName: untagged.RepositoryName,
|
||||||
Digest: untagged.Digest,
|
Digest: untagged.Digest,
|
||||||
|
CreationTime: time.Now(),
|
||||||
}
|
}
|
||||||
allTrashedArts = append(allTrashedArts, simulateDeletion)
|
allTrashedArts = append(allTrashedArts, simulateDeletion)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user