Service Instantiation #24
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: servala/servala-portal#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stories
As a user, I want to order a service instance via a service offering.
The form implemented in #14 allows filling in parameters for a service instance. When the parameters are filled in, the service can be instantiated.
See also Servala Portal Docs.
Implementation Notes
Tracking instances in the database
When an instance is created, we track the following information in the database:
All other information is retrieved from the service instance on the control-plane.
To be figured out
Kubernetes name restrictions: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/
I propose we restrict the resource name to "RFC 1035 Label Names":
And enforce the uniqueness rules directly in the Django app, before it hits the Kubernetes API (the Kubernetes API enforces it as well):
We need to set the label
appcat.vshn.io/provider-config
in every instance we create. The value of that label needs to be hardcoded for every control-plane, so this means we need a new field in the control-plane config. Minimum example: