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 Sep 26, 2023
1 parent 9fd4b7b commit f55b046
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 @@ -163,6 +163,12 @@ func (p *plugin) PostSetupNetwork(pod *api.PodSandbox, result []*api.Result) ([]
return nil, nil
}

func (p *plugin) NetworkDeleted(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 f55b046

Please sign in to comment.