Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Conversation

@sboeuf
Copy link

@sboeuf sboeuf commented Oct 25, 2018

Now that the agent has split some generic structures definitions from the gRPC protocol itself, this pull request takes care of the revendoring of this change from the runtime.
Also, because it allows binary importing this path to avoid overhead due to the whole protocol definition, the binary kata-netmon can now rely on those types instead of duplicating them.

Fixes #856
Fixes #857

@sboeuf
Copy link
Author

sboeuf commented Oct 25, 2018

Depends on kata-containers/agent#400

sboeuf pushed a commit to sboeuf/agent that referenced this pull request Oct 25, 2018
Some structures such as Interface and Route are not only used by the
kata-agent since they are generic enough to be reused by kata-runtime
or kata-netmon.

By splitting those structures into their separate package, we prevent
their consumers from importing the whole protocols/grpc package which
pulls a lot of unneeded content.

Depends-on: github.com/kata-containers/runtime#858

Fixes kata-containers#399

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
@sboeuf
Copy link
Author

sboeuf commented Oct 25, 2018

/test

@codecov
Copy link

codecov bot commented Oct 25, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@c7a9e45). Click here to learn what that means.
The diff coverage is 83.33%.

@@            Coverage Diff            @@
##             master     #858   +/-   ##
=========================================
  Coverage          ?   66.09%           
=========================================
  Files             ?       87           
  Lines             ?    10705           
  Branches          ?        0           
=========================================
  Hits              ?     7076           
  Misses            ?     2897           
  Partials          ?      732

Copy link
Member

@amshinde amshinde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jodh-intel
Copy link

jodh-intel commented Oct 26, 2018

lgtm

Approved with PullApprove

sboeuf pushed a commit to sboeuf/agent that referenced this pull request Oct 26, 2018
The Interface structure needs a new field 'type' so that we can
properly determine the type of interface being described.

This will be helpful for network hotplug, as it will be used to
create the appropriate connection between the VM and the interface.

Depends-on: github.com/kata-containers/runtime#858

Fixes kata-containers#401

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Sebastien Boeuf added 2 commits October 26, 2018 09:35
Some agent types definition that were generic enough to be reused
everywhere, have been split from the initial grpc package.

This prevents from importing the entire protobuf package through
the grpc one, and prevents binaries such as kata-netmon to stay
in sync with the types definitions.

Fixes kata-containers#856

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Now that the agent has split the generic types in their own package,
kata-netmon can use them directly and get rid of the duplication of
those. This is very helpful as it will prevent structures from being
out of sync between kata-netmon and the kata-runtime, without bringing
in the huge overhead that the initial grpc package was introducing.

Fixes kata-containers#857

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
@sboeuf
Copy link
Author

sboeuf commented Oct 26, 2018

/test

@sboeuf
Copy link
Author

sboeuf commented Oct 26, 2018

Just updated the vendoring now that agent#400 has been merged. Let's wait for the CI and merge that ;)

@sboeuf sboeuf added wip and removed do-not-merge labels Oct 26, 2018
@sboeuf
Copy link
Author

sboeuf commented Oct 26, 2018

This PR is ready and got all approvals it needs. Github seems to be stuck not reporting the true status of pullapprove here.
Let's merge it.

@sboeuf sboeuf merged commit 110f7a8 into kata-containers:master Oct 26, 2018
jshachm pushed a commit to jshachm/agent that referenced this pull request Nov 22, 2018
Some structures such as Interface and Route are not only used by the
kata-agent since they are generic enough to be reused by kata-runtime
or kata-netmon.

By splitting those structures into their separate package, we prevent
their consumers from importing the whole protocols/grpc package which
pulls a lot of unneeded content.

Depends-on: github.com/kata-containers/runtime#858

Fixes kata-containers#399

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
jshachm pushed a commit to jshachm/agent that referenced this pull request Nov 22, 2018
The Interface structure needs a new field 'type' so that we can
properly determine the type of interface being described.

This will be helpful for network hotplug, as it will be used to
create the appropriate connection between the VM and the interface.

Depends-on: github.com/kata-containers/runtime#858

Fixes kata-containers#401

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants