Skip to content

Commit

Permalink
Merge pull request #1 from n3wscott/broker
Browse files Browse the repository at this point in the history
Use broker
  • Loading branch information
Scott Nichols authored Jan 14, 2021
2 parents c6ca6df + e869536 commit 7c45b19
Show file tree
Hide file tree
Showing 4,095 changed files with 1,289,378 additions and 3 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
1. Go try to do bad things on that pod:
```
kubectl exec -it mysql-db-d5dc6b85d-77hrm -- bash -il # Replace with the mysql pod name you have
kubectl exec -it $(kubectl get pods --selector="app=mysql-db" --output=jsonpath={.items..metadata.name}) -- bash -il
```
### Expected Results
Expand Down
16 changes: 16 additions & 0 deletions config/drop/trigger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: eventing.knative.dev/v1
kind: Trigger
metadata:
name: drop
namespace: default
spec:
broker: default
filter:
attributes:
source: falco.org
type: falco.rule.output.v1
subscriber:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: drop
3 changes: 2 additions & 1 deletion config/sidekick/sidekick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ spec:
- name: LISTENPORT
value: "8080"
- name: CLOUDEVENTS_ADDRESS
value: http://drop.default.svc.cluster.local
value: http://broker-ingress.knative-eventing.svc.cluster.local/default/default # this needs to be updated to your broker url

15 changes: 15 additions & 0 deletions config/sidekick/sinkbinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: sources.knative.dev/v1beta1
kind: SinkBinding
metadata:
name: falcosidekick
namespace: default
spec:
subject:
apiVersion: serving.knative.dev/v1
kind: Service
name: falcosidekick
sink:
ref:
apiVersion: eventing.knative.dev/v1
kind: Broker
name: default
18 changes: 18 additions & 0 deletions config/sockeye/trigger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# The depends on having Sockeye installed: https://github.com/n3wscott/sockeye

apiVersion: eventing.knative.dev/v1
kind: Trigger
metadata:
name: falco-sockeye
namespace: default
spec:
broker: default
filter:
attributes:
source: falco.org
type: falco.rule.output.v1
subscriber:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: sockeye
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ require (
github.com/cloudevents/sdk-go/v2 v2.3.1
github.com/falcosecurity/falcosidekick v0.0.0-20201231190542-0403fbd02572
github.com/nats-io/nats-streaming-server v0.20.0 // indirect
k8s.io/apimachinery v0.18.12
k8s.io/apimachinery v0.20.1
knative.dev/pkg v0.0.0-20210107211936-93874f0ea7c0
)

replace github.com/falcosecurity/falcosidekick => ../../falcosecurity/falcosidekick
54 changes: 54 additions & 0 deletions go.sum

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions vendor/cloud.google.com/go/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,778 changes: 1,778 additions & 0 deletions vendor/cloud.google.com/go/CHANGES.md

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions vendor/cloud.google.com/go/CODE_OF_CONDUCT.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7c45b19

Please sign in to comment.