containers / virtcontainers

A Go package for building hardware virtualized container runtimes
Apache License 2.0
139 stars 43 forks source link

pod: Fetch pod network only from createPod() #629

Closed sboeuf closed 6 years ago

sboeuf commented 6 years ago

We don't want to fetch the pod network from the filesystem every time we need information about it. Instead, the network is related to the pod, that's why the pod should hold this information in-memory through a new field into its structure.

Fixes #628

Signed-off-by: Sebastien Boeuf sebastien.boeuf@intel.com

sameo commented 6 years ago

LGTM

Approved with PullApprove Approved with PullApprove