You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allows service instances to be broken down into steps, allowing once
service to be provisioned, waited for it to start, before provisioning
the next.
Implements #72
Copy file name to clipboardExpand all lines: documentation/modules/ROOT/pages/concepts/bindings.adoc
+17-9Lines changed: 17 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,14 +25,6 @@ Unsurprisingly, given a service plan name is unique within its parent service of
25
25
Configuration bindings use this unique identifier to map from a service plan to a configuration binding.
26
26
This is a one-to-one mapping and every plan must have a binding.
27
27
28
-
=== Templates
29
-
30
-
Configuration bindings can be thought of as lists of Kubernetes resources.
31
-
In our example this would be a `ServiceAccount`, `Role` and all the other resources required to create our service instance in Kubernetes.
32
-
33
-
In reality, the resources the binding refers to are all templates--a base Kubernetes resource that can be modified dynamically based on request parameters.
34
-
Templates are covered in more detail in the next section.
35
-
36
28
=== Registry Definitions
37
29
38
30
Configuration bindings may also contain lists of registry definitions.
@@ -41,7 +33,15 @@ These are simple functions--based on Go language templates--that accept inputs f
41
33
These are covered in more detail in a xref:concepts/dynamic-attributes.adoc[later section], however we will mention that registry entries defined in the configuration binding may be used to generate values that can used as inputs to template rending later.
42
34
Such values can be shared resource names, passwords and even TLS configuration.
43
35
44
-
=== Readiness Checks
36
+
=== Steps
37
+
38
+
When provisioning a service instance, it's possible that you may be provisioning a logical set of services.
39
+
For this reason provisioning is divided into steps.
40
+
41
+
Each step contains templates that represent a logical service, and a set of readiness gates.
42
+
Readiness checks act as blocking barriers between steps, so you can ensure one service is running, before starting a dependent service.
43
+
44
+
==== Readiness Checks
45
45
46
46
The Service Broker, in simple terms, creates Kubernetes resources.
47
47
This operation is almost instantaneous, however, Kubernetes is an eventually-consistent system.
@@ -52,6 +52,14 @@ These allow you to poll resources created as part of a service instance for actu
52
52
For example a Kubernetes `Deployment` will report as available only when all of its pods are ready.
53
53
Readiness checks allow the Service Broker API to declare a service instance creation as successful only when its underlying resources are available to be consumed by a client.
54
54
55
+
==== Templates
56
+
57
+
Configuration bindings can be thought of as lists of Kubernetes resources.
58
+
In our example this would be a `ServiceAccount`, `Role` and all the other resources required to create our service instance in Kubernetes.
59
+
60
+
In reality, the resources the binding refers to are all templates--a base Kubernetes resource that can be modified dynamically based on request parameters.
61
+
Templates are covered in more detail in the next section.
62
+
55
63
=== Processing Rules
56
64
57
65
Service instances and service bindings have their own separate lists of templates and parameters for each service plan.
0 commit comments