[Agent][Operator] - image sync
This commit is contained in:
@@ -142,7 +142,7 @@ func PruneAllCmiiImages() (errorRemoveImageNameList []string) {
|
||||
|
||||
for _, imageSummary := range imageGetAll {
|
||||
for _, repoTag := range imageSummary.RepoTags {
|
||||
if strings.HasPrefix(repoTag, image2.CmiiHarborPrefix) {
|
||||
if strings.HasPrefix(repoTag, image2.CmiiHarborPrefix) || strings.HasPrefix(repoTag, "harbor.wdd.io") || strings.Contains(repoTag, ":8033") {
|
||||
for _, tag := range imageSummary.RepoTags {
|
||||
_, err := apiClient.ImageRemove(context.TODO(), imageSummary.ID, types.ImageRemoveOptions{
|
||||
Force: true,
|
||||
|
||||
Reference in New Issue
Block a user