{"record":{"id":"53483654dfeb9ad5","repo":"goharbor/harbor","slug":"not-support-trigger-s","errorCode":null,"errorMessage":"not support Trigger %s","messagePattern":"not support Trigger (.+?)","errorType":"validation","errorClass":null,"httpStatus":500,"severity":"error","filePath":"src/controller/retention/controller.go","lineNumber":172,"sourceCode":"\t\t}\n\t} else {\n\t\tswitch p.Trigger.Kind {\n\t\tcase policy.TriggerKindSchedule:\n\t\t\tif p0.Trigger.Settings[\"cron\"] != p.Trigger.Settings[\"cron\"] {\n\t\t\t\t// unschedule old\n\t\t\t\tif len(p0.Trigger.Settings[policy.TriggerSettingsCron].(string)) > 0 {\n\t\t\t\t\tneedUn = true\n\t\t\t\t}\n\t\t\t\t// schedule new\n\t\t\t\tif len(p.Trigger.Settings[policy.TriggerSettingsCron].(string)) > 0 {\n\t\t\t\t\t// valid cron\n\t\t\t\t\tneedSch = true\n\t\t\t\t}\n\t\t\t}\n\t\tcase \"\":\n\n\t\tdefault:\n\t\t\treturn fmt.Errorf(\"not support Trigger %s\", p.Trigger.Kind)\n\t\t}\n\t}\n\tif err = r.manager.UpdatePolicy(ctx, p); err != nil {\n\t\treturn err\n\t}\n\tif needUn {\n\t\terr = r.scheduler.UnScheduleByVendor(ctx, schedulerVendorType, p.ID)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\tif needSch {\n\t\textras := make(map[string]any)\n\t\t_, err := r.scheduler.Schedule(ctx, schedulerVendorType, p.ID, \"\", p.Trigger.Settings[policy.TriggerSettingsCron].(string), SchedulerCallback, TriggerParam{\n\t\t\tPolicyID: p.ID,\n\t\t\tTrigger:  retention.ExecutionTriggerSchedule,\n\t\t\t// the operator of schedule job is harbor-jobservice\n\t\t\tOperator: secret.JobserviceUser,","sourceCodeStart":154,"sourceCodeEnd":190,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/controller/retention/controller.go#L154-L190","documentation":"Error \"not support Trigger %s\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/controller/retention/controller.go:172 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}