Skip to content

Implement repository update cmd #710

@bupd

Description

@bupd

Summary

We have an empty repository update cmd which does nothing - its better to remove that placeholder.

https://github.com/goharbor/harbor-cli/blob/main/cmd/harbor/root/repository/update.go

we should update the repository update to do the following its currently missing these - not remove the update cmd - it should be added.

See this example curl request

curl 'https://demo.goharbor.io/api/v2.0/projects/bc-project/repositories/bc-image' \
  -X 'PUT' \
  -H 'content-type: application/json' \
  --data-raw '{"description":"hello"}'

https://demo.goharbor.io/harbor/projects/5588/repositories/bc-image/info-tab - see there is a field update repository info - so we should support that.

See the below image for what the update cmd should do.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: LowA problem that causes minor errors—such as formatting or display problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions