-
Notifications
You must be signed in to change notification settings - Fork 74
Switch API Groups - pubsub.cloud.google.com -> internal.events.cloud.google.com #905
Comments
Some ideas about how we can do this change. Note: This assumes that all our controllers atomically swap. Either they are all on the old release or all on the new. Because we only have one replica and can use leader election, I think this is reasonable. But it does mean we also need to think about what happens during downgrades. 1. Ignoring the oldIdea: Pretend the old one doesn't exist at all.
Pros
Cons
2. Deprecate, Delete, RemoveIdea: Make user do the work, but give them a release to get it done.
Pros
Cons
3. DoppelgängerIdea: Have the new PullSubscription controller determine if it is a Doppelgänger and if so, copy the other's GCP Subscription name.
Pros
Cons
4. DelegateIdea: Have the old CRD delegate to the new CRD before being deleted.
Pros
Cons
|
It would help with the decision if we get the know the potential impact. Since it's an alpha API, maybe option 1? |
Notes from GVC call with @Harwayne Assume next release is X.
Let's make sure our release notes capture this clearly. Goal is in vX+1 - CRD is removed and Controllers don't exist. |
Plan based on #905 (comment). For brevity, 'old COs' means 'custom objects made with the old CRDs'. And 'new COs' means 'custom objects made with the new CRDs'. In this release, 0.x:
Just before upgrade to 0.x+1:
In release 0.x+1:
|
Chiming in here, if we care about programatically creating PubSub |
Our eventual plan was to release something that allowed this. We didn't know anyone was using them right now. So that we can better understand your use case, how do you use them? Do you use only |
We just Topics as a simple way to create pub sub topics within our CI/CD pipeline, though we could just as easily switch to https://www.terraform.io/docs/providers/google/r/pubsub_topic.html We don't use PullSubscription |
If you only want to create Topics, but not send events to them, would something like Config Connector work for you? It allows you to make K8s objects and have them reified into GCP resources. Topic in particular is documented here. |
It would indeed. I had no idea about this. Thanks @Harwayne |
Problem
Change the API Groups of existing resources.
Topic
andPullSubscription
should be moved tointernal.events.cloud.google.com
.Additional context (optional)
Should we make a breaking change and just drop the existing resources? Or should we move things over safely?
The text was updated successfully, but these errors were encountered: