Skip to content

Commit

Permalink
Remove hardcoded namespace from all examples
Browse files Browse the repository at this point in the history
- having specified namespace makes these examples
hard to consume for users
  • Loading branch information
ChunyiLyu committed Jun 11, 2021
1 parent a8725b1 commit 9661191
Show file tree
Hide file tree
Showing 20 changed files with 0 additions and 27 deletions.
1 change: 0 additions & 1 deletion docs/examples/bindings/binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Binding
metadata:
name: binding
namespace: rabbitmq-system
spec:
vhost: "/test-vhost" # default to '/' if not provided
source: test # an existing exchange
Expand Down
1 change: 0 additions & 1 deletion docs/examples/exchanges/direct-exchange.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Exchange
metadata:
name: direct
namespace: rabbitmq-system
spec:
name: direct-exchange # name of the exchange
vhost: "/test-vhost" # default to '/' if not provided
Expand Down
1 change: 0 additions & 1 deletion docs/examples/exchanges/fanout-exchange.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Exchange
metadata:
name: fanout
namespace: rabbitmq-system
spec:
name: fanout-exchange # name of the exchange
vhost: "/test-vhost" # default to '/' if not provided
Expand Down
2 changes: 0 additions & 2 deletions docs/examples/federations/bindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Binding
metadata:
name: upstream-binding
namespace: rabbitmq-system
spec:
vhost: "upstream"
source: fanout
Expand All @@ -16,7 +15,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Binding
metadata:
name: downstream-binding
namespace: rabbitmq-system
spec:
vhost: "downstream"
source: fanout
Expand Down
2 changes: 0 additions & 2 deletions docs/examples/federations/exchanges.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Exchange
metadata:
name: fanout-upstream
namespace: rabbitmq-system
spec:
name: fanout
vhost: "upstream" # default to '/' if not provided
Expand All @@ -17,7 +16,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Exchange
metadata:
name: fanout-downstream
namespace: rabbitmq-system
spec:
name: fanout
vhost: "downstream"
Expand Down
1 change: 0 additions & 1 deletion docs/examples/federations/federation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Federation
metadata:
name: federation-example
namespace: rabbitmq-system
spec:
name: "origin"
vhost: "downstream"
Expand Down
1 change: 0 additions & 1 deletion docs/examples/federations/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Policy
metadata:
name: federation-policy
namespace: rabbitmq-system
spec:
name: federation-policy # name of the policy
vhost: "downstream"
Expand Down
2 changes: 0 additions & 2 deletions docs/examples/federations/queues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Queue
metadata:
name: downstream-queue
namespace: rabbitmq-system
spec:
name: downstream-queue
vhost: "downstream"
Expand All @@ -17,7 +16,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Queue
metadata:
name: upstream-queue
namespace: rabbitmq-system
spec:
name: upstream-queue
vhost: "upstream"
Expand Down
2 changes: 0 additions & 2 deletions docs/examples/federations/vhosts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Vhost
metadata:
name: upstream-vhost
namespace: rabbitmq-system
spec:
name: upstream
rabbitmqClusterReference:
Expand All @@ -13,7 +12,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Vhost
metadata:
name: downstream-vhost
namespace: rabbitmq-system
spec:
name: downstream
rabbitmqClusterReference:
Expand Down
1 change: 0 additions & 1 deletion docs/examples/permissions/permission.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Permission
metadata:
name: testuser-permission
namespace: rabbitmq-system
spec:
vhost: "/" # name of a vhost
user: "test-user" # name of a RabbitMQ user
Expand Down
1 change: 0 additions & 1 deletion docs/examples/policies/lazy-queue-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Policy
metadata:
name: lazy-queue-policy
namespace: rabbitmq-system
spec:
name: lazy-queue-policy
vhost: "test-vhost"
Expand Down
1 change: 0 additions & 1 deletion docs/examples/policies/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Policy
metadata:
name: policy-example
namespace: rabbitmq-system
spec:
name: transient # name of the policy
vhost: "/a-vhost" # default to '/' if not provided
Expand Down
2 changes: 0 additions & 2 deletions docs/examples/queues/lazy-queue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Policy
metadata:
name: lazy-queue-policy
namespace: rabbitmq-system
spec:
name: lazy-queue-policy
vhost: "test-vhost"
Expand All @@ -20,7 +19,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Queue
metadata:
name: lazy-queue-example
namespace: rabbitmq-system
spec:
name: lazy-queue-example # matches the pattern "^lazy-queue$" set in lazy-queue-policy
vhost: "test-vhost"
Expand Down
1 change: 0 additions & 1 deletion docs/examples/queues/quorum-queue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Queue
metadata:
name: qq-example
namespace: rabbitmq-system
spec:
name: qq # name of the queue
vhost: "/test-vhost" # default to '/' if not provided
Expand Down
2 changes: 0 additions & 2 deletions docs/examples/shovels/queues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Queue
metadata:
name: source-queue
namespace: rabbitmq-system
spec:
name: source-queue
vhost: "source"
Expand All @@ -16,7 +15,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Queue
metadata:
name: destination-queue
namespace: rabbitmq-system
spec:
name: destination-queue
vhost: "destination"
Expand Down
1 change: 0 additions & 1 deletion docs/examples/shovels/shovel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Shovel
metadata:
name: shovel-example
namespace: rabbitmq-system
spec:
name: "shovel-example"
uriSecret:
Expand Down
2 changes: 0 additions & 2 deletions docs/examples/shovels/vhosts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Vhost
metadata:
name: source-vhost
namespace: rabbitmq-system
spec:
name: source
rabbitmqClusterReference:
Expand All @@ -13,7 +12,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Vhost
metadata:
name: destination-vhost
namespace: rabbitmq-system
spec:
name: destination
rabbitmqClusterReference:
Expand Down
1 change: 0 additions & 1 deletion docs/examples/users/publish-consume-user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Permission
metadata:
name: testuser-permission
namespace: rabbitmq-system
spec:
vhost: "test-vhost"
user: "test-user" # name corresponds to the username we provided in "test-user-credentials" secret
Expand Down
1 change: 0 additions & 1 deletion docs/examples/users/user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: User
metadata:
name: user-sample
namespace: rabbitmq-system
spec:
tags:
- management # available tags are 'management', 'policymaker', 'monitoring' and 'administrator'
Expand Down
1 change: 0 additions & 1 deletion docs/examples/vhosts/vhost.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: rabbitmq.com/v1beta1
kind: Vhost
metadata:
name: test-vhost
namespace: rabbitmq-system
spec:
name: test-vhost # vhost name
rabbitmqClusterReference:
Expand Down

0 comments on commit 9661191

Please sign in to comment.