Skip to content

Support for reading and deleting tags in SWR #578

Description

@eht16

After basic SWR support has been added in 0.31.0, it would be helpful to be able to list tags with their meta information (especially created/updated) and to delete specific tags.

So far I wasn't able to get this information from the current implementation.

Interestingly, conn.swr.get_repository('my-org', 'my-repo') returns an empty list for the tags attribute.
When querying the repository list using conn.swr.repositories() each repository item has all the tags in tags attribute but only the tag name without meta information.

My Use case:
since it is not possible in any useful way to bulk delete old image tags from SWR or to define an auto delete policy, I would like to clean up some repositories using the client.

As far as I understand, the OTC API already support the appropriate endpoints (https://docs.otc.t-systems.com/software-repository-container/api-ref/api/image_tag_management/index.html).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions