Skip to content

Proposal: Implementation of purge command #657

@vg006

Description

@vg006

Overview

The Harbor CLI implemented numerous commands, integrating most of the Harbor REST APIs, and this proposal adds the purge command to that list.

Proposal

The following is the tentative structure of the harbor schedule purge command, So I request the maintainers and community to review this and share suggestions on this.

# Get details of a specific purge job
> harbor schedule purge status <purge_id>

# Stop the purge audit log execution specified by ID
> harbor schedule purge stop <purge_id>

# Get purge job logs
> harbor schedule purge logs <purge_id>

# Get purge jobs' schedule
> harbor schedule purge list

# Get purge jobs results
> harbor schedule purge history

# Create a purge job schedule
> harbor schedule purge create (--cron / -e) <cron_expression>

# Update purge's schedule
> harbor schedule purge update (--cron / -e) <cron_expression>

cc: @bupd @Vad1mo @OrlinVasilev @NucleoFusion

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