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

add filter gateway #948

Merged
merged 10 commits into from
Jan 27, 2021
Merged

add filter gateway #948

merged 10 commits into from
Jan 27, 2021

Conversation

kpango
Copy link
Collaborator

@kpango kpango commented Jan 24, 2021

Signed-off-by: kpango kpango@vdaas.org

Description:

this PR includes 4 feature.

  1. Added filter Gateway
  2. Add Container SecurityContext
  3. change grpc GetObject interface for filter gateway implementation
  4. update k8s manifests for resolving kube-linter.

Related Issue:

How Has This Been Tested?:

Environment:

  • Go Version: 1.15.7
  • Docker Version: 19.03.8
  • Kubernetes Version: 1.18.2
  • NGT Version: 1.13.1

Types of changes:

  • Bug fix [type/bug]
  • New feature [type/feature]
  • Add tests [type/test]
  • Security related changes [type/security]
  • Add documents [type/documentation]
  • Refactoring [type/refactoring]
  • Update dependencies [type/dependency]
  • Update benchmarks and performances [type/bench]
  • Update CI [type/ci]

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Checklist:

  • I have read the CONTRIBUTING document.
  • I have checked open Pull Requests for the similar feature or fixes?
  • I have added tests and benchmarks to cover my changes.
  • I have ensured all new and existing tests passed.
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly.

Signed-off-by: kpango <kpango@vdaas.org>
@vdaas-ci
Copy link
Collaborator

[WARNING:INTCFG] Changes in interal/config may require you to change Helm charts. Please check.

@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - add changelog comment
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase master
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

@codecov
Copy link

codecov bot commented Jan 24, 2021

Codecov Report

Merging #948 (e3e900e) into master (d4bf810) will decrease coverage by 1.03%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #948      +/-   ##
==========================================
- Coverage   16.23%   15.20%   -1.04%     
==========================================
  Files         478      493      +15     
  Lines       23955    25683    +1728     
==========================================
+ Hits         3889     3904      +15     
- Misses      19827    21530    +1703     
- Partials      239      249      +10     
Impacted Files Coverage Δ
cmd/gateway/filter/main.go 0.00% <0.00%> (ø)
hack/benchmark/internal/client/ngtd/grpc/client.go 0.00% <0.00%> (ø)
hack/benchmark/internal/client/ngtd/grpc/stream.go 0.00% <0.00%> (ø)
hack/benchmark/internal/client/ngtd/rest/client.go 0.00% <0.00%> (ø)
internal/client/v1/client/discoverer/discover.go 0.00% <ø> (ø)
internal/client/v1/client/filter/egress/client.go 0.00% <0.00%> (ø)
internal/client/v1/client/filter/egress/option.go 0.00% <0.00%> (ø)
internal/client/v1/client/filter/ingress/client.go 0.00% <0.00%> (ø)
internal/client/v1/client/filter/ingress/option.go 0.00% <0.00%> (ø)
internal/client/v1/client/vald/vald.go 0.00% <0.00%> (ø)
... and 48 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d4bf810...98d38c8. Read the comment docs.

@kpango kpango mentioned this pull request Jan 25, 2021
18 tasks
Signed-off-by: kpango <kpango@vdaas.org>
@rinx
Copy link
Contributor

rinx commented Jan 26, 2021

The Cassandra cluster deployed by using make k8s/external/cassandra/deploy doesn't start correctly on my K8s cluster.
I also tried to deploy by using the task on the master branch, it failed too. So it has been already broken.
We should fix it later. 😅

@kpango
Copy link
Collaborator Author

kpango commented Jan 26, 2021

seems k8s/external/cassandra directory is not changed since v0.0.26 and formatted on v0.0.25

@rinx
Copy link
Contributor

rinx commented Jan 26, 2021

The problem is not caused by our changes. Because the problem is happened in preStop hook. Maybe there's some changes in the cassandra:latest container.

@kpango
Copy link
Collaborator Author

kpango commented Jan 26, 2021

I see, how about start using,
https://k8ssandra.io/docs/topics/ingress/traefik/k3d-deployment/
or
https://github.com/datastax/cass-operator
managed cassandra can save maintainance cost.

@kpango
Copy link
Collaborator Author

kpango commented Jan 26, 2021

Oh, sorry let's discuss it on issue, (could you please make new issue?)

@kpango
Copy link
Collaborator Author

kpango commented Jan 26, 2021

How about this PR?

@rinx
Copy link
Contributor

rinx commented Jan 26, 2021

Right. But it is not the scope of the current PR. So let's deal with it later.

@rinx
Copy link
Contributor

rinx commented Jan 26, 2021

There's no more comments about this PR from me.

@kevindiu @kmrmt @hlts2 @vankichi @datelier Could you review it?

@kpango
Copy link
Collaborator Author

kpango commented Jan 26, 2021

@kevindiu @kmrmt @hlts2 @vankichi @datelier can you please review this PR by thursday?

datelier
datelier previously approved these changes Jan 27, 2021
Signed-off-by: kpango <kpango@vdaas.org>
@kpango kpango force-pushed the feature/gateway-filter/add-filter-gateway branch from d82b240 to 8079793 Compare January 27, 2021 06:47
Signed-off-by: kpango <kpango@vdaas.org>
@rinx
Copy link
Contributor

rinx commented Jan 27, 2021

The new changes about chart is okay.

However, the newly added build options and upx may be a bad combination. Please fix the builds.

datelier
datelier previously approved these changes Jan 27, 2021
Signed-off-by: kpango <kpango@vdaas.org>
Copy link
Contributor

@vankichi vankichi left a comment

Choose a reason for hiding this comment

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

LGTM

@kpango
Copy link
Collaborator Author

kpango commented Jan 27, 2021

@rinx I fixed about building failure, may be upx cannot use with pie build...

@kpango
Copy link
Collaborator Author

kpango commented Jan 27, 2021

@rinx @hlts2 @vankichi @datelier thank you for review.
I'm going to merge this pr.

@kpango kpango merged commit f8abd67 into master Jan 27, 2021
@kpango kpango deleted the feature/gateway-filter/add-filter-gateway branch January 27, 2021 07:34
@vdaas-ci vdaas-ci mentioned this pull request Jan 29, 2021
18 tasks
@kpango kpango mentioned this pull request Feb 2, 2021
11 tasks
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.

6 participants