-
Notifications
You must be signed in to change notification settings - Fork 3
Added support for M2 and M5 #52
Added support for M2 and M5 #52
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would rather use TENANT
, to be consistent with the API.
What happens if someone specifies parameters that aren't included in those three?
M2 and M5 clusters are very strict. Error in most cases this:
|
I'm still not clear on what happens if a user adds parameters that aren't applicable to a service instance. Say that a user applies the following service instance: ---
apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceInstance
metadata:
name: atlas-cluster-instance
spec:
clusterServiceClassExternalName: mongodb-atlas-tenant
clusterServicePlanExternalName: M2
parameters:
cluster:
providerSettings:
regionName: "EU_CENTRAL_1"
diskTypeName: "P4" # not applicable for the M2
backupEnabled: true # not applicable for the M2 Will they successfully provision a cluster that doesn't have those settings set? Will they get an error? If so, how will the error be displayed to the user? What happens if they specify a bad region? |
We'll use your CRD for this realtime example
No new provision get's created. Currently what the user sees when using kubernetes is simply:
Which basically means according to this link, To mitigate orphaned Service Instances and Service Bindings, the Platform SHOULD attempt to delete resources it cannot be sure were successfully created, and SHOULD keep trying to delete them until the Service Broker responds with a success. Now for a correct provision with all of the correct values per parameter:
Now for the last question :
|
I currently hardcoded the TENANT provider in the catalog. This means users are able to see M2 and M5 plan sizes under TENANT in the marketplace. Apart from that just a simple check in instance_operations.go. Users are now able to create M2 or M5 clusters.
These are the only parameters users have access to for M2 and M5 clusters:
The only 3 parameters that can be changed here are:
Everything else are required to keep their current value as specified by the docs