Skip to content

Commit e82d996

Browse files
authored
Merge pull request #1098 from squeed/gc-shared-warning
SPEC: add warning about preserving shared resources for GC
2 parents ed014fe + 2c926b5 commit e82d996

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SPEC.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ Resources may, for example, include:
375375

376376
A plugin SHOULD remove as many stale resources as possible. For example, a plugin should remove any IPAM reservations associated with attachments not in the provided list. The plugin MAY assume that the isolation domain (e.g. network namespace) has been deleted, and thus any resources (e.g. network interfaces) therein have been removed.
377377

378+
Garbage collection is a per-network operation. If a plugin manages resources shared across multiple networks, it must only remove stale resources known to belong to the network provided in the `GC `action.
379+
378380
Plugins should generally complete a `GC` action without error. If an error is encountered, a plugin should continue; removing as many resources as possible, and report the errors back to the runtime.
379381

380382
Plugins MUST, additionally, forward any GC calls to delegated plugins they are configured to use (see section 4).

0 commit comments

Comments
 (0)