Skip to content

Commit

Permalink
chore: 📦 Remove exp envoy plugins from main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Forsworns committed Nov 29, 2022
1 parent cbe260a commit 26e3717
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 276 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: check
args: --target=${{ matrix.RUSTC_TARGET }} --workspace --exclude sentinel-envoy-module --exclude ebpf-probes --exclude ebpf-userspace
args: --target=${{ matrix.RUSTC_TARGET }}

- name: Unit Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --target=${{ matrix.RUSTC_TARGET }} --workspace --exclude sentinel-envoy-module --exclude ebpf-probes --exclude ebpf-userspace -- --nocapture
args: --target=${{ matrix.RUSTC_TARGET }} -- --nocapture
- name: Ignored Unit Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --target=${{ matrix.RUSTC_TARGET }} --workspace --exclude sentinel-envoy-module --exclude ebpf-probes --exclude ebpf-userspace -- --ignored --test-threads=1 --nocapture
args: --target=${{ matrix.RUSTC_TARGET }} -- --ignored --test-threads=1 --nocapture
wasm:
name: WebAssembly
runs-on: ubuntu-latest
Expand All @@ -81,4 +81,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --target=wasm32-unknown-unknown -p sentinel-envoy-module
args: --target=wasm32-unknown-unknown
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ members = [
]

exclude = [
"examples/proxy/envoy",
"examples/ebpf/probes",
"examples/ebpf/userspace",
"middleware/tower",
Expand Down
17 changes: 6 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ SRC_FILES := $(shell find . -path '*/target' -prune -o -name '*.rs' -print)
KERNEL_VERSION?=$(shell ls /lib/modules | grep generic | head -1)

check:
cargo check --all-features --workspace --exclude sentinel-envoy-module --exclude ebpf-probes --exclude ebpf-userspace
cargo check --all-features

clippy:
cargo clippy --all-targets --workspace --exclude sentinel-envoy-module --exclude ebpf-probes --exclude ebpf-userspace
cargo clippy --all-targets

doc: clean
cargo doc --lib --no-deps --all-features --document-private-items --workspace --exclude sentinel-envoy-module --exclude ebpf-probes --exclude ebpf-userspace
cargo doc --lib --no-deps --all-features --document-private-items

clean:
cargo clean
Expand All @@ -19,15 +19,10 @@ fmt:
unit: unit_single unit_parallel

unit_single:
cargo test --workspace --exclude sentinel-envoy-module --exclude ebpf-probes --exclude ebpf-userspace -- --ignored --test-threads=1 --nocapture
cargo test -- --ignored --test-threads=1 --nocapture

unit_parallel:
cargo test --workspace --exclude sentinel-envoy-module --exclude ebpf-probes --exclude ebpf-userspace -- --nocapture

envoy:
cargo build --target wasm32-unknown-unknown --release -p sentinel-envoy-module
cp target/wasm32-unknown-unknown/release/sentinel_envoy_module.wasm examples/proxy/envoy/docker/sentinel_envoy_module.wasm
cd examples/proxy/envoy && docker-compose up --build
cargo test -- --nocapture

ebpf_port:
cd examples/ebpf/probes && KERNEL_VERSION=$(KERNEL_VERSION) cargo bpf build port --target-dir=../target
Expand All @@ -36,4 +31,4 @@ ebpf_port:
sudo examples/ebpf/target/x86_64-unknown-linux-gnu/debug/examples/port


.PHONY: clean clippy doc fmt unit unit_single unit_parallel check envoy ebpf
.PHONY: clean clippy doc fmt unit unit_single unit_parallel check ebpf
1 change: 0 additions & 1 deletion examples/proxy/envoy/.gitignore

This file was deleted.

17 changes: 0 additions & 17 deletions examples/proxy/envoy/Cargo.toml

This file was deleted.

30 changes: 0 additions & 30 deletions examples/proxy/envoy/README.md

This file was deleted.

31 changes: 0 additions & 31 deletions examples/proxy/envoy/docker-compose.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions examples/proxy/envoy/docker/.dockerignore

This file was deleted.

2 changes: 0 additions & 2 deletions examples/proxy/envoy/docker/Dockerfile.proxy

This file was deleted.

98 changes: 0 additions & 98 deletions examples/proxy/envoy/docker/envoy.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions examples/proxy/envoy/proxy_envoy_test.sh

This file was deleted.

55 changes: 0 additions & 55 deletions examples/proxy/envoy/src/lib.rs

This file was deleted.

8 changes: 0 additions & 8 deletions sentinel-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ metric_log = ["directories", "regex"]
ds_etcdv3 = ["etcd-rs", "futures"]
ds_consul = ["consul", "base64"]
ds_k8s = ["kube", "k8s-openapi", "schemars", "futures"]
# wasm proxy
proxy_envoy = ["proxy-wasm", "getrandom"]

[dependencies]
sentinel-macros = { version = "0.1.0", path = "../sentinel-macros", optional = true }
Expand Down Expand Up @@ -77,12 +75,6 @@ schemars = { version = "0.8.8", optional = true }
# they won't be exported by `proxy_wasm` module
uuid = { version = "0.8", features = ["serde", "v4"] }

# for envoy wasm proxy
[target.wasm32-unknown-unknown.dependencies]
proxy-wasm = { version = "0.1.4", optional = true }
getrandom = { version = "0.2", features = ["js"], optional = true }


[dev-dependencies]
mockall = "0.11.0"
rand = "0.8.4"
Expand Down

0 comments on commit 26e3717

Please sign in to comment.