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
Copy file name to clipboardExpand all lines: modules/sbo-categories-of-exposable-binding-data.adoc
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ data:
73
73
user: "Z3Vlc3Q="
74
74
----
75
75
76
+
////
76
77
The following example shows how to expose an entire config map through OLM descriptors:
77
78
78
79
.Example: Exposing an entire config map through OLM descriptors
@@ -87,6 +88,8 @@ The following example shows how to expose an entire config map through OLM descr
87
88
This example uses the `path` attribute with a `urn:alm:descriptor:io.kubernetes:ConfigMap` entry to indicate that the path points to the `ConfigMap` service resource.
88
89
89
90
If you intend to project all the values from a `ConfigMap` service resource, you must specify it as an attribute in the backing service CR. For example, if the attribute is part of the `.spec` section, you can create and use a `specDescriptors` array. Or, if the attribute is part of the `.status` section, you can create and use a `statusDescriptors` array.
91
+
////
92
+
// When the OLM descriptors are supported again, add this example.
The following example shows how to expose a resource definition value through OLM descriptors:
154
161
155
162
.Example: Exposing a resource definition value through OLM descriptors
@@ -163,6 +170,8 @@ The following example shows how to expose a resource definition value through OL
163
170
The previous example uses the `connectionURL` attribute that points to the required resource definition value that is to be projected as `uri`.
164
171
165
172
If required values are available as attributes of backing service resources, annotating these values using `X-Descriptors` identifies them as the binding data.
173
+
////
174
+
// When the OLM descriptors are supported again, add this example.
Copy file name to clipboardExpand all lines: modules/sbo-data-model.adoc
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,10 @@
7
7
= Data model
8
8
9
9
[role="_abstract"]
10
-
The data model used in the annotations and OLM descriptors follow specific conventions.
10
+
// The data model used in the annotations and OLM descriptors follow specific conventions.
11
+
// When the OLM descriptors are supported again, add this sentence.
12
+
13
+
The data model used in the annotations follows specific conventions.
11
14
12
15
Service binding annotations must use the following convention:
13
16
@@ -21,7 +24,8 @@ where:
21
24
`<NAME>`:: Specifies the name under which the binding value is to be exposed. You can exclude it only when the `objectType` parameter is set to `Secret` or `ConfigMap`.
22
25
`<VALUE>`:: Specifies the constant value exposed when no `path` is set.
23
26
24
-
Although, the data model is the same for custom resource definitions (CRD), custom resource (CR) annotations, and Operator Lifecycle Manager (OLM) descriptors, the syntax for each one differs.
27
+
// Although, the data model is the same for custom resource definitions (CRD), custom resource (CR) annotations, and Operator Lifecycle Manager (OLM) descriptors, the syntax for each one differs.
28
+
// When the OLM descriptors are supported again, add this sentence.
25
29
26
30
The data model provides the details on the allowed values and semantic for the `path`, `elementType`, `objectType`, `sourceKey`, and `sourceValue` parameters.
You can use this method if your backing service is provided by an Operator. If your Operator is distributed as an OLM bundle, you can add OLM descriptors to describe the binding data that is to be exposed. The OLM descriptors are part of Cluster Service Version resources. The {servicebinding-title} detects the OLM descriptors and then creates a `Secret` resource with the values extracted based on the detected OLM descriptors.
@@ -235,6 +237,8 @@ The following examples show how to define an X-Descriptor depending on the resou
235
237
* You must have a `service.binding` entry in the X-Descriptors to identify that it is a configuration for service binding.
236
238
* The absence of the `Secret` or `ConfigMap` specific X-Descriptors indicates that the descriptor is referencing the binding data value at the given path.
237
239
====
240
+
////
241
+
// When the OLM descriptors are supported again, add this section.
Copy file name to clipboardExpand all lines: modules/sbo-naming-strategies.adoc
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,10 @@ While using naming strategies, depending on the expectations or requirements of
21
21
* `title`: Converts the character strings where the first letter of each word is capitalized except for certain minor words.
22
22
23
23
.Predefined naming strategies
24
-
Binding names declared through annotations or Operator Lifecycle Manager (OLM) descriptors are processed for their name change before their projection into the workload according to the following predefined naming strategies:
24
+
// Binding names declared through annotations or Operator Lifecycle Manager (OLM) descriptors are processed for their name change before their projection into the workload according to the following predefined naming strategies:
25
+
// When the OLM descriptors are supported again, add this sentence.
26
+
27
+
Binding names declared through annotations are processed for their name change before their projection into the workload according to the following predefined naming strategies:
25
28
26
29
* `none`: When applied, there are no changes in the binding names.
0 commit comments