mirror of https://github.com/goharbor/harbor.git
Add enableCapabilities to extraAttrs for stop (#20299)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
This commit is contained in:
parent
b3dc183f47
commit
0d9dc4b4a4
|
@ -70,10 +70,11 @@ const (
|
||||||
artfiactKey = "artifact"
|
artfiactKey = "artifact"
|
||||||
registrationKey = "registration"
|
registrationKey = "registration"
|
||||||
|
|
||||||
artifactIDKey = "artifact_id"
|
artifactIDKey = "artifact_id"
|
||||||
artifactTagKey = "artifact_tag"
|
artifactTagKey = "artifact_tag"
|
||||||
reportUUIDsKey = "report_uuids"
|
reportUUIDsKey = "report_uuids"
|
||||||
robotIDKey = "robot_id"
|
robotIDKey = "robot_id"
|
||||||
|
enabledCapabilities = "enabled_capabilities"
|
||||||
)
|
)
|
||||||
|
|
||||||
// uuidGenerator is a func template which is for generating UUID.
|
// uuidGenerator is a func template which is for generating UUID.
|
||||||
|
@ -317,6 +318,9 @@ func (bc *basicController) Scan(ctx context.Context, artifact *ar.Artifact, opti
|
||||||
"id": r.ID,
|
"id": r.ID,
|
||||||
"name": r.Name,
|
"name": r.Name,
|
||||||
},
|
},
|
||||||
|
enabledCapabilities: map[string]interface{}{
|
||||||
|
"type": opts.GetScanType(),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
if op := operator.FromContext(ctx); op != "" {
|
if op := operator.FromContext(ctx); op != "" {
|
||||||
extraAttrs["operator"] = op
|
extraAttrs["operator"] = op
|
||||||
|
|
Loading…
Reference in New Issue