Skip to content

Commit

Permalink
WIP: Add NetworkDeleted function to plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Flykt <[email protected]>
  • Loading branch information
pfl committed Oct 20, 2023
1 parent 4e0932e commit 09703db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/setupnetwork/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ func (p *plugin) PostSetupNetwork(_ context.Context, pod *api.PodSandbox, result
return nil, nil
}

func (p *plugin) NetworkDeleted(_ context.Context, pod *api.PodSandbox) error {
log.Infof("NetworkDeleted for %s/%s...", pod.GetNamespace(), pod.GetName())

return nil
}

func (p *plugin) onClose() {
log.Infof("Connection to the runtime lost, exiting...")
os.Exit(0)
Expand Down

0 comments on commit 09703db

Please sign in to comment.