Skip to content

Commit

Permalink
Add fanout and direct exchange examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunyiLyu committed Apr 22, 2021
1 parent 1044f0b commit d025ec1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
14 changes: 14 additions & 0 deletions docs/examples/exchanges/direct-exchange.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: rabbitmq.com/v1alpha2
kind: Exchange
metadata:
name: direct
namespace: rabbitmq-system
spec:
name: direct-exchange # name of the exchange
vhost: "/test-vhost" # default to '/' if not provided
type: direct
autoDelete: false
durable: true
rabbitmqClusterReference:
name: test
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
---
apiVersion: rabbitmq.com/v1alpha2
kind: Exchange
metadata:
name: exchange-example
name: fanout
namespace: rabbitmq-system
spec:
name: example # name of the exchange
name: fanout-exchange # name of the exchange
vhost: "/test-vhost" # default to '/' if not provided
rabbitmqClusterReference:
name: test # rabbitmqCluster must exist in the same namespace as this resource
type: fanout # default to 'direct' if not provided
autoDelete: false
durable: true
rabbitmqClusterReference:
name: test # rabbitmqCluster must exist in the same namespace as this resource
# status:
# conditions:
# - lastTransitionTime: ""
Expand Down

0 comments on commit d025ec1

Please sign in to comment.