Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use slimmer protobuf structures for remaining k8s structures #11374

Merged
merged 12 commits into from May 7, 2020

Conversation

aanm
Copy link
Member

@aanm aanm commented May 6, 2020

Follow up of #11326 for remaining structures

aanm added 10 commits May 6, 2020 22:26
Signed-off-by: André Martins <andre@cilium.io>
With this slimmer Node structure, Cilium won't need to convert a Node into
another structure that Cilium understands. This conversion will
automatically happen when doing the unmarshal of k8s event. Thus,
providing better memory management as well as CPU consumption since
Cilium will only unmarshal the fields that actually need.

Signed-off-by: André Martins <andre@cilium.io>
Signed-off-by: André Martins <andre@cilium.io>
With this slimmer Namespace structure, Cilium won't need to convert a Namespace into
another structure that Cilium understands. This conversion will
automatically happen when doing the unmarshal of k8s event. Thus,
providing better memory management as well as CPU consumption since
Cilium will only unmarshal the fields that actually need.

Signed-off-by: André Martins <andre@cilium.io>
Signed-off-by: André Martins <andre@cilium.io>
With this slimmer Service structure, Cilium won't need to convert a Service into
another structure that Cilium understands. This conversion will
automatically happen when doing the unmarshal of k8s event. Thus,
providing better memory management as well as CPU consumption since
Cilium will only unmarshal the fields that actually need.

Signed-off-by: André Martins <andre@cilium.io>
Signed-off-by: André Martins <andre@cilium.io>
With this slimmer Endpoints structure, Cilium won't need to convert a Endpoints into
another structure that Cilium understands. This conversion will
automatically happen when doing the unmarshal of k8s event. Thus,
providing better memory management as well as CPU consumption since
Cilium will only unmarshal the fields that actually need.

Signed-off-by: André Martins <andre@cilium.io>
Signed-off-by: André Martins <andre@cilium.io>
With this slimmer EndpointSlice structure, Cilium won't need to
convert a EndpointSlice into another structure that Cilium
understands. This conversion will automatically happen when doing
the unmarshal of k8s event. Thus, providing better memory
management as well as CPU consumption since Cilium will only
unmarshal the fields that actually need.

Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm added sig/k8s Impacts the kubernetes API, or kubernetes -> cilium internals translation layers. kind/epic Features that are considered beyond amazing release-note/misc This PR makes changes that have no direct user impact. labels May 6, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.8.0 May 6, 2020
@aanm
Copy link
Member Author

aanm commented May 6, 2020

test-me-please

aanm added 2 commits May 6, 2020 22:53
Signed-off-by: André Martins <andre@cilium.io>
With this slimmer NetworkPolicy structure, Cilium won't need to
convert a NetworkPolicy into another structure that Cilium
understands. This conversion will automatically happen when doing
the unmarshal of k8s event. Thus, providing better memory
management as well as CPU consumption since Cilium will only
unmarshal the fields that actually need.

Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm force-pushed the pr/use-slimmer-protobuf-definitions-others branch from 133046e to 378eac0 Compare May 6, 2020 20:53
@aanm
Copy link
Member Author

aanm commented May 6, 2020

test-me-please

@coveralls
Copy link

coveralls commented May 6, 2020

Coverage Status

Coverage decreased (-4.8%) to 37.802% when pulling 378eac0 on pr/use-slimmer-protobuf-definitions-others into a7f8fc8 on master.

@aanm aanm marked this pull request as ready for review May 7, 2020 08:01
@aanm aanm requested a review from a team May 7, 2020 08:01
@aanm aanm requested review from a team as code owners May 7, 2020 08:01
@aanm aanm requested review from a team May 7, 2020 08:01
@aanm aanm requested a review from a team as a code owner May 7, 2020 08:01
@aanm
Copy link
Member Author

aanm commented May 7, 2020

Unable to debug k8s flakes due #11386

@@ -46,9 +47,7 @@ import (
envoy_api_v2_core "github.com/cilium/proxy/go/envoy/api/v2/core"
envoy_api_v2_route "github.com/cilium/proxy/go/envoy/api/v2/route"
envoy_type_matcher "github.com/cilium/proxy/go/envoy/type/matcher"

Copy link
Member

Choose a reason for hiding this comment

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

Your IDE is applying too much automation ;-)

@aanm aanm merged commit 33cd54b into master May 7, 2020
1.8.0 automation moved this from In progress to Merged May 7, 2020
@aanm aanm deleted the pr/use-slimmer-protobuf-definitions-others branch July 6, 2020 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/epic Features that are considered beyond amazing release-note/misc This PR makes changes that have no direct user impact. sig/k8s Impacts the kubernetes API, or kubernetes -> cilium internals translation layers.
Projects
No open projects
1.8.0
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

3 participants