Expected Behavior
Each channel on a gcppubsub bus should operate atomically.
Actual Behavior
If there are two Knative clusters running in the same GCP Project, that create a gcppubsub bus with the same name in the same namespace, and a channel is created with the same name, and a subscription is created with the same name. The topics and subscription resources in pub/sub end up being shared between both clusters which assume that have use of those resources exclusively.
This is mostly an issue when running samples, but can cause head scratching.
Steps to Reproduce the Problem
- create two Knative clusters
- deploy the gcppubsub bus into each cluster in the same name/namespace using the same GCP Project
- deploy the hello sample into each cluster
- each message hitting the bus will only be delivered to one of the clusters (appears to be round robin)
Additional Info
The topic and subscription resources in cloud pub/sub should have a random value representing the bus that "owns" the resource that is also stable for the lifetime of the bus.
/kind bug
Expected Behavior
Each channel on a gcppubsub bus should operate atomically.
Actual Behavior
If there are two Knative clusters running in the same GCP Project, that create a gcppubsub bus with the same name in the same namespace, and a channel is created with the same name, and a subscription is created with the same name. The topics and subscription resources in pub/sub end up being shared between both clusters which assume that have use of those resources exclusively.
This is mostly an issue when running samples, but can cause head scratching.
Steps to Reproduce the Problem
Additional Info
The topic and subscription resources in cloud pub/sub should have a random value representing the bus that "owns" the resource that is also stable for the lifetime of the bus.
/kind bug