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

gRPC version service + fix falco version #872

Merged
merged 17 commits into from
Feb 7, 2020
Merged

Conversation

leodido
Copy link
Member

@leodido leodido commented Oct 3, 2019

What type of PR is this?

/kind feature

Any specific area of the project related to this PR?

NONE

What this PR does / why we need it:

Introduces a very simple unary gRPC service to obtain the Falco version.

Also this PR fixes the Falco version so that it follows the semver 2 BNF.

Which issue(s) this PR fixes:

Fixes #1039

Special notes for your reviewer:

It is intended to serve as example to help other contributors implement gRPC simple unary services.

Does this PR introduce a user-facing change?:

new: gRPC version API
fix: version follows semver 2 BNF

@stale
Copy link

stale bot commented Dec 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 29, 2019
@stale stale bot closed this Jan 5, 2020
@fntlnz
Copy link
Contributor

fntlnz commented Jan 20, 2020

/reopen

@poiana poiana reopened this Jan 20, 2020
@poiana
Copy link

poiana commented Jan 20, 2020

@fntlnz: Reopened this PR.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@stale stale bot removed the wontfix label Jan 20, 2020
@fntlnz fntlnz changed the base branch from dev to master February 3, 2020 15:14
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
krisnova
krisnova previously approved these changes Feb 5, 2020
Copy link
Contributor

@krisnova krisnova left a comment

Choose a reason for hiding this comment

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

Few comments - otherwise looks good

userspace/falco/grpc_request_context.cpp Outdated Show resolved Hide resolved

void start(server* srv);
void process(server* srv);
void end(server* srv, bool isError);
Copy link
Contributor

Choose a reason for hiding this comment

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

What about signal handling?

@poiana
Copy link

poiana commented Feb 5, 2020

LGTM label has been added.

Git tree hash: 937a9ae938eac5d2f10e38f2c9f0486694fcadf9

@poiana poiana added the approved label Feb 5, 2020
@leodido
Copy link
Member Author

leodido commented Feb 5, 2020

Refs #818

userspace/falco/grpc_server.cpp Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Because we can't easily change the integration test fixtures.

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
@poiana
Copy link

poiana commented Feb 7, 2020

LGTM label has been added.

Git tree hash: 90f38065a4692bc3b9dfda7641d0c2156bb69332

@poiana poiana added the approved label Feb 7, 2020
@krisnova
Copy link
Contributor

krisnova commented Feb 7, 2020

/lgtm

@poiana
Copy link

poiana commented Feb 7, 2020

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fntlnz, kris-nova

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@leodido leodido changed the title gRPC version service gRPC version service + fix falco version Feb 7, 2020
@poiana poiana merged commit 253ff64 into master Feb 7, 2020
@poiana poiana deleted the feature/grpc-version-svc branch February 7, 2020 10:29
@fntlnz fntlnz added this to the 0.19.1 milestone Feb 17, 2020
@fntlnz
Copy link
Contributor

fntlnz commented Feb 23, 2020

@leodido i have a question on this: can the version service be enabled/disabled via config like output does ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the Falco version
4 participants