goharbor / goharbor/harbor-cli

[feature]: replication policy update from file

Open
#1,036 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
163
Forks
211
Avg merge
1m
Merged PRs (30d)
1

Description

## Problem
Harbor replication policies can created from yaml or json input. They cannot be updated from file. This has to be implemented.

## Proposed Solution
Add a flag that specifies the input file for the update. Should be similar as in `examples/config/replication-policies/manual.json` or similar example files.

## Alternatives Considered
Not needed

## Additional Context

Contributor guide

Open the contributing guide

Research direction

Start by locating the replication-policy update command and its existing file-based creation path. Compare the expected input with examples/config/replication-policies/manual.json and similar example files. Done means the update command accepts a YAML or JSON input-file flag and applies the policy data consistently with creation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.