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
{{ message }}
This repository was archived by the owner on Jun 26, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: examples/java_ol_postgresql_odo/README.md
+30-47Lines changed: 30 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,17 +94,18 @@ After the instalation completes via the Operator Hub, please follow the instruct
94
94
#### Create a namespace called `service-binding-demo` from the pgo CLI
95
95
> What is the pgo CLI? The pgo cli is a terminal command line interface for the Crunchy PostgreSQL Operator - it allows you to create namespaces and database instances that will be managed by the Crunchy PostgreSQL Operator. Then pgo CLI was installed as part of the Crunchy PostgreSQL installation process that you followed earlier.
96
96
97
-
The application and the DB needs a namespace to live in so let's create one for them using the pgo CLI:
97
+
[comment]: <>(The application and the DB needs a namespace to live in so let's create one for them using the pgo CLI:)
#### Create a database cluster instance called `my-demo-db` from the pgo CLI
103
104
104
-
Use the pgo CLI to create a db cluster instance in the namespace you created in the previous command. This instance will be a postgreSQL db managed by the Crunchy PostgreSQL Operator.
105
+
Use the pgo CLI to create a db cluster instance in the pgo namespace you created in the previous command. This instance will be a postgreSQL db managed by the Crunchy PostgreSQL Operator.
Use URL to navigate to the CreatePerson.xhtml data entry page and enter requested data, clicking on the "Save" button when complete
@@ -188,39 +189,21 @@ Note that the entry of any data does not result in the data being displayed when
188
189
189
190
Now, the only thing that remains is to connect the DB and the application. We will use odo to create a link to the Service Binding Operator and will manually configure the resulting Service Binding Request to 'magically' do the connection for us.
190
191
191
-
Display the services available to odo:
192
-
```shell
193
-
> odo catalog list services
194
-
```
195
-
196
-
You will see an entry for the Service Binding Operator displayed:
Or, alternatively, you can inspect the SBR via the OpenShift console in Administrator view by navigating to Operators > Installed Operators > Service Binding Operator and clicking on the Service Binding Request tab. Select the Service Binding Request Instance named `mysboproj-servicebindingrequest-example-servicebindingrequest`
223
+
Or, alternatively, you can inspect the SBR via the OpenShift console in Administrator view by navigating to Operators > Installed Operators > Service Binding Operator and clicking on the Service Binding Request tab. Select the Service Binding Request Instance named `jpa-pgcluster-my-demo-db`
241
224
242
225
#### Manually configure YAML files
243
226
@@ -410,11 +393,11 @@ Replace the `backingServiceSelector` block with the following YAML snippet:
You have now created an intermediate secret object called `mysboproj-servicebindingrequest-example-servicebindingrequest` in the cluster that can be used by your application. You can see this secret via kubectl
442
+
You have now created an intermediate secret object called `jpa-pgcluster-my-demo-db` in the cluster that can be used by your application. You can see this secret via kubectl
460
443
461
444
```shell
462
-
kubectl get secret mysboproj-servicebindingrequest-example-servicebindingrequest
Or, alternatively, you can inspect the new intermediate secret via the OpenShift console in Administrator view by navigating to Workloads > Secrets and clicking on the secret named `mysboproj-servicebindingrequest-example-servicebindingrequest` Notice it contains 5 pieces of data all related to the connection information for your PostgreSQL database instance.
450
+
Or, alternatively, you can inspect the new intermediate secret via the OpenShift console in Administrator view by navigating to Workloads > Secrets and clicking on the secret named `jpa-pgcluster-my-demo-db` Notice it contains 5 pieces of data all related to the connection information for your PostgreSQL database instance.
0 commit comments