Skip to content

Duplicate manifest in aql #135

Description

@zhan9san

If there are two docker rules, there would be a duplicate manifest in aql.

********************************************************************************
Result AQL Query:
items.find({"$and": [{"repo": {"$eq": "example-docker-preprod-local"}}, {"$or": [{"path": {"$match": "foo/*"}}]}, {"name": {"$match": "manifest.json"}}, {"modified": {"$lt": "2024-01-11"}}, {"name": {"$match": "manifest.json"}}]}).include("*", "property", "stat")
********************************************************************************
    - name: Delete example-docker-preprod-local/foo/* older than 180 days
      rules:
        - rule: Repo
          name: example-docker-preprod-local
        - rule: IncludeDockerImages
          masks: foo:*
        - rule: DeleteDockerImagesOlderThan
          days: 180

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions