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