[agent] [harbor] - modify harbor excutor
This commit is contained in:
@@ -234,20 +234,15 @@ func (hOp *HarborOperator) SyncProjectExec(funcArgs []string) (bool, []string) {
|
||||
Insecure: true,
|
||||
Name: "cmii", // 源 Harbor 实例的注册表 ID,通常为 0
|
||||
Type: "harbor",
|
||||
URL: "10.250.0.126:8033",
|
||||
URL: "http://10.250.0.126:8033",
|
||||
},
|
||||
Enabled: true,
|
||||
//Filters: []*model.ReplicationFilter{
|
||||
// {
|
||||
// Type: "name",
|
||||
// Value: "cmii/**", // 根据需要同步的仓库进行调整
|
||||
// },
|
||||
// {
|
||||
// Type: "name",
|
||||
// Value: "rancher/**", // 根据需要同步的仓库进行调整
|
||||
// },
|
||||
//},
|
||||
Filters: nil,
|
||||
Filters: []*model.ReplicationFilter{
|
||||
{
|
||||
Type: "name",
|
||||
Value: "cmii/**", // 根据需要同步的仓库进行调整
|
||||
},
|
||||
},
|
||||
ID: 0,
|
||||
Name: "sync-repositories-to-target",
|
||||
Override: true,
|
||||
@@ -264,7 +259,7 @@ func (hOp *HarborOperator) SyncProjectExec(funcArgs []string) (bool, []string) {
|
||||
Insecure: true,
|
||||
Name: "cmii", // 源 Harbor 实例的注册表 ID,通常为 0
|
||||
Type: "harbor",
|
||||
URL: "10.250.0.100:8033",
|
||||
URL: "http://10.250.0.100:8033",
|
||||
},
|
||||
Trigger: &model.ReplicationTrigger{
|
||||
Type: "manual", // 可以是 "manual", "scheduled", 或 "event_based"
|
||||
|
||||
Reference in New Issue
Block a user