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

feat: Move features to separate suite #506

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions examples/basic/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Basic examples

Basis example contains setup and tear down logic with default NSM infrastructure.
Contain basic setup for NSM that includes `nsmgr`, `forwarder-vpp`, `registry-k8s`. This setup can be used to check mechanisms combination or some kind of NSM [features](../features).

## Requires

Expand All @@ -17,17 +17,14 @@ Basis example contains setup and tear down logic with default NSM infrastructure
- [Kernel to VXLAN to Memif Connection](../use-cases/Kernel2Vxlan2Memif)
- [Memif to VXLAN to Kernel Connection](../use-cases/Memif2Vxlan2Kernel)

**Featues**
- [Open Policy Agent](../features/opa)

## Run

Create ns for deployments:
1. Create ns for deployments:
```bash
kubectl create ns nsm-system
```

Register `nsm-system` namespace in spire:
2. Register `nsm-system` namespace in spire:

```bash
kubectl exec -n spire spire-server-0 -- \
Expand All @@ -38,7 +35,7 @@ kubectl exec -n spire spire-server-0 -- \
-selector k8s:sa:default
```

Register `registry-k8s-sa` in spire:
3. Register `registry-k8s-sa` in spire:

```bash
kubectl exec -n spire spire-server-0 -- \
Expand All @@ -48,14 +45,17 @@ kubectl exec -n spire spire-server-0 -- \
-selector k8s:ns:nsm-system \
-selector k8s:sa:registry-k8s-sa
```
Apply NSM resources for basic tests:

4. Apply NSM resources for basic tests:

```bash
kubectl apply -k .
```

## Cleanup

To free resouces follow the next command:

```bash
kubectl delete ns nsm-system
```
16 changes: 16 additions & 0 deletions examples/features/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Feature examples

This document contain links for feature examples of NSM.

## Requires

To run any feature example follow steps for [Basic NSM setup](../basic)

## Includes

- [Simple OPA example](./opa)
- Heal
- Refresh
- Timeout
- Admission webhook
- DNS
1 change: 0 additions & 1 deletion examples/features/opa/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Feature OPA


Let's consider a current simplified version of NSM authorization.

![NSM Authorize Scheme](./scheme.png "NSM Authorize Scheme")
Expand Down