Skip to content

Commit

Permalink
refactor: example: envoy gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
guicassolato committed Jul 15, 2024
1 parent bced400 commit c60d200
Show file tree
Hide file tree
Showing 6 changed files with 578 additions and 580 deletions.
4 changes: 4 additions & 0 deletions examples/kuadrant/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ install: manifests ## Install CRDs into a cluster.

.PHONY: run
run: generate ## Run the controller.
ifneq ($(PROVIDER),)
go run *.go --gateway-provider $(PROVIDER)
else
go run *.go
endif

##@ Testing

Expand Down
8 changes: 4 additions & 4 deletions examples/kuadrant/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Kuadrant Controller

Practical example of using the [Policy Machinery](https://github.com/kuadrant/policy-machinery) to implment a custom controller.
Practical example of using the [Policy Machinery](https://github.com/kuadrant/policy-machinery) to implement a custom controller.

<br/>

The examples defines 4 kinds of policies:
The example defines 4 kinds of policies:
- **DNSPolicy:** can target Gateways and Listeners
- **TLSPolicy:** can target Gateways and Listeners
- **AuthPolicy:** can target Gateways, Listeners, HTTPRoutes, and HTTPRouteRules; support for Defaults & Overrides and 2 merge strategies (`atomic` or `merge`)
Expand Down Expand Up @@ -35,15 +35,15 @@ Install the CRDs:
make install
```

Run the operator (holds the shell):
Run the controller (holds the shell):

```sh
make run
```

### Create the resources

> **Note:** After each step below, check out the state of the topology (`topology.dot`) and the operator logs for the new effective policies in place.
> **Note:** After each step below, check out the state of the topology (`topology.dot`) and the controller logs for the new effective policies in place.
1. Create a Gateway:

Expand Down
Loading

0 comments on commit c60d200

Please sign in to comment.