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-methods-of-exposing-binding-data.adoc
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,8 @@ The service you intend to connect to is compliant with the Service Binding speci
16
16
You must expose the binding data from the backing service. Depending on your workload requirements and environment, you can choose any of the following methods to expose the binding data:
17
17
+
18
18
** Direct secret reference
19
-
** Generation of an intermediate secret through custom resource definition (CRD) or CR annotations
20
-
** Generation of an intermediate secret through Operator Lifecycle Manager (OLM) descriptors
19
+
** Declaring binding data through custom resource definition (CRD) or CR annotations
20
+
** Declaring binding data through Operator Lifecycle Manager (OLM) descriptors
21
21
** Detection of binding data through owned resources
22
22
23
23
== Provisioned service
@@ -143,7 +143,7 @@ You can use this method to annotate the resources of the backing service to expo
143
143
144
144
The following examples show the annotations that are added under the `metadata` section and a referenced `ConfigMap` object from a resource:
145
145
146
-
.Example: Exposing binding data from a `Secret` object in the `metadata.annotations.dbsecret` custom field
146
+
.Example: Exposing binding data from a `Secret` object defined in the CR annotations
.Example: Exposing binding data from a `ConfigMap` object in the `metadata.annotations.dbconfig` custom field
159
+
The previous example places the name of the secret name in the `{.metadata.name}-pguser-{.metadata.name}` template that resolves to `hippo-pguser-hippo`. The template can contain multiple JSONPath expressions.
160
+
161
+
.Example: Referenced `Secret` object from a resource
162
+
[source,yaml]
163
+
----
164
+
apiVersion: v1
165
+
kind: Secret
166
+
metadata:
167
+
name: hippo-pguser-hippo
168
+
data:
169
+
password: "MTBz"
170
+
user: "Z3Vlc3Q="
171
+
----
172
+
173
+
.Example: Exposing binding data from a `ConfigMap` object defined in the CR annotations
The previous example places the name of the config map in the `metadata.annotations.dbconfig` custom field and specifies to expose a single key from the config map.
186
+
The previous example places the name of the config map in the `{.metadata.name}-config` template that resolves to `hippo-config`. The template can contain multiple JSONPath expressions.
173
187
174
188
.Example: Referenced `ConfigMap` object from a resource
0 commit comments