Skip to content

Commit 223d2c4

Browse files
jpverma85rcitton-oracle
authored andcommitted
Fix issue 3
1 parent 582fa16 commit 223d2c4

File tree

10 files changed

+19
-25
lines changed

10 files changed

+19
-25
lines changed

config/samples/onpremdb/pdb_map.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/onpremdb/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ NOTE: The target CDB (for which the PDB life cycle management is needed) **can a
1212

1313
To deploy OraOperator, use this [Oracle Database Operator for Kubernetes](https://github.com/oracle/oracle-database-operator/blob/main/README.md) step-by-step procedure.
1414

15-
After the Oracle Database Operator is deployed, you can see the DB Operator Pods running in the Kubernetes Cluster. As part of the OraOperator deployment, the On-Prem Database Controller is deployed as a CRD (Custom Resource Definition). The following output is an example of such a deployment:
15+
After the Oracle Database Operator is deployed, you can see the DB Operator Pods running in the Kubernetes Cluster. As part of the OraOperator deployment, the On-Prem Database Controller is deployed and we can see the CRDs (Custom Resource Definition) for CDB and PDB in the list of CRDs. The following output is an example of such a deployment:
1616
```
1717
[root@test-server oracle-database-operator]# kubectl get ns
1818
NAME STATUS AGE
@@ -48,7 +48,7 @@ autonomouscontainerdatabases.database.oracle.com 2022-06-22T01:21:36Z
4848
autonomousdatabasebackups.database.oracle.com 2022-06-22T01:21:36Z
4949
autonomousdatabaserestores.database.oracle.com 2022-06-22T01:21:37Z
5050
autonomousdatabases.database.oracle.com 2022-06-22T01:21:37Z
51-
cdbs.database.oracle.com 2022-06-22T01:21:37Z <<<< CRD for CDB
51+
cdbs.database.oracle.com 2022-06-22T01:21:37Z <<<<
5252
certificaterequests.cert-manager.io 2022-06-21T17:03:46Z
5353
certificates.cert-manager.io 2022-06-21T17:03:47Z
5454
challenges.acme.cert-manager.io 2022-06-21T17:03:47Z
@@ -57,7 +57,7 @@ dbcssystems.database.oracle.com 2022-06-22T01:21:38Z
5757
issuers.cert-manager.io 2022-06-21T17:03:49Z
5858
oraclerestdataservices.database.oracle.com 2022-06-22T01:21:38Z
5959
orders.acme.cert-manager.io 2022-06-21T17:03:49Z
60-
pdbs.database.oracle.com 2022-06-22T01:21:39Z <<<< CRD for PDB
60+
pdbs.database.oracle.com 2022-06-22T01:21:39Z <<<<
6161
shardingdatabases.database.oracle.com 2022-06-22T01:21:39Z
6262
singleinstancedatabases.database.oracle.com 2022-06-22T01:21:40Z
6363
```
@@ -179,11 +179,11 @@ To create a CDB CRD, a sample .yaml file is available here: [config/samples/onpr
179179

180180
The Oracle Database Operator On-Prem Controller creates the PDB kind as a custom resource that models a PDB as a native Kubernetes object. There is a one-to-one mapping between the actual PDB and the Kubernetes PDB Custom Resource. You cannot have more than one Kubernetes resource for a target PDB. This PDB resource can be used to perform PDB-LM operations by specifying the action attribute in the PDB Specs. Each PDB resource follows the PDB CRD as defined here: [config/crd/bases/database.oracle.com_pdbs.yaml](../../../config/crd/bases/database.oracle.com_pdbs.yaml)
181181

182-
To create a PDB CRD Resource, a sample .yaml file is available here: [config/samples/onpremdb/pdb.yaml](../../../config/samples/onpremdb/pdb.yaml)
182+
To create a PDB CRD Resource, a sample .yaml file is available here: [config/samples/onpremdb/pdb_create.yaml](../../config/samples/onpremdb/pdb_create.yaml)
183183

184184
# Use Cases for PDB Lifecycle Management Operations using Oracle DB Operator On-Prem Controller
185185

186-
Using Oracle DB Operator On-Prem Controller, you can perform the following PDB-LM operations: CREATE, CLONE, MODIFY, DELETE, STATUS, PLUG, UNPLUG
186+
Using Oracle DB Operator On-Prem Controller, you can perform the following PDB-LM operations: CREATE, CLONE, MODIFY, DELETE, UNPLUG, PLUG.
187187

188188
1. [Create PDB](./provisioning/create_pdb.md)
189189
2. [Clone PDB](./provisioning/clone_pdb.md)

docs/onpremdb/provisioning/clone_pdb.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
In this use case, a PDB is cloned using Oracle DB Operator On-Prem controller.
44

5+
To clone a PDB CRD Resource, a sample .yaml file is available here: [config/samples/onpremdb/pdb_clone.yaml](../../../config/samples/onpremdb/pdb_clone.yaml)
6+
57
**NOTE:** It is assumed that before this step, you have followed the [prerequisite](./../README.md#prerequsites-to-manage-pdb-life-cycle-using-oracle-db-operator-on-prem-database-controller) steps.
68

79
This example uses `clone_pdb.yaml` to clone a PDB using Oracle DB Operator On-Prem Controller with:

docs/onpremdb/provisioning/create_pdb.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ data:
4242

4343
-- This is the .yaml file used to create a PDB CRD resource in this use case:
4444

45-
% cat pdb.yaml
45+
% cat pdb_create.yaml
4646
#
4747
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
4848
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
@@ -79,7 +79,7 @@ spec:
7979
% kubectl apply -f pdb_secret.yaml
8080
secret/pdb1-secret created
8181

82-
% kubectl apply -f pdb.yaml
82+
% kubectl apply -f pdb_create.yaml
8383
pdb.database.oracle.com/pdb1 created
8484

8585

docs/onpremdb/provisioning/create_pdb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The Oracle Database Operator On-Prem Controller creates the PDB kind as a custom resource that models a PDB as a native Kubernetes object. There is a one-to-one mapping between the actual PDB and the Kubernetes PDB Custom Resource. Each PDB resource follows the PDB CRD as defined here: [config/crd/bases/database.oracle.com_pdbs.yaml](../../../config/crd/bases/database.oracle.com_pdbs.yaml)
44

5-
To create a PDB CRD Resource, a sample .yaml file is available here: [config/samples/onpremdb/pdb.yaml](../../../config/samples/onpremdb/pdb.yaml)
5+
To create a PDB CRD Resource, a sample .yaml file is available here: [config/samples/onpremdb/pdb_create.yaml](../../../config/samples/onpremdb/pdb_create.yaml)
66

77
**NOTE:** It is assumed that before this step, you have followed the [prerequisite](./../README.md#prerequsites-to-manage-pdb-life-cycle-using-oracle-db-operator-on-prem-database-controller) steps.
88

docs/onpremdb/provisioning/delete_pdb.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
In this use case, a PDB is deleted using Oracle DB Operator On-Prem controller.
44

5+
To delete a PDB CRD Resource, a sample .yaml file is available here: [config/samples/onpremdb/pdb_delete.yaml](../../../config/samples/onpremdb/pdb_delete.yaml)
6+
57
**NOTE:** It is assumed that before this step, you have followed the [prerequisite](./../README.md#prerequsites-to-manage-pdb-life-cycle-using-oracle-db-operator-on-prem-database-controller) steps.
68

79
This example uses `delete_pdb.yaml` to delete a PDB using Oracle DB Operator On-Prem Controller with:

docs/onpremdb/provisioning/modify_pdb.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
In this use case, the state of an existing PDB is modified using Oracle DB Operator On-Prem controller.
44

5+
To modify a PDB CRD Resource, a sample .yaml file is available here: [config/samples/onpremdb/pdb_modify.yaml](../../../config/samples/onpremdb/pdb_modify.yaml)
6+
57
**NOTE:** It is assumed that before this step, you have followed the [prerequisite](./../README.md#prerequsites-to-manage-pdb-life-cycle-using-oracle-db-operator-on-prem-database-controller) steps.
68

79
Subcase 1: This example uses `modify_pdb_close.yaml` to close a PDB using Oracle DB Operator On-Prem Controller with:
@@ -44,7 +46,7 @@ Subcase 2: This example uses `modify_pdb_open.yaml` to open a PDB using Oracle D
4446
- Option to close the state (i.e. modify) as `READ WRITE`
4547

4648

47-
**NOTE:** For the details of the parameters to be used in the .yaml file, please refer [config/crd/bases/database.oracle.com_pdbs.yaml](../../config/crd/bases/database.oracle.com_pdbs.yaml)
49+
**NOTE:** For the details of the parameters to be used in the .yaml file, please refer [config/crd/bases/database.oracle.com_pdbs.yaml](../../../config/crd/bases/database.oracle.com_pdbs.yaml)
4850

4951
Use the file: [modify_pdb_open.yaml](./modify_pdb_open.yaml) for this use case as below:
5052

docs/onpremdb/provisioning/plug_pdb.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
In this use case, a PDB is plugged in using Oracle DB Operator On-Prem controller using an existing .xml file which was generated when the PDB was unplugged from this target CDB or another CDB.
44

5+
To plug in a PDB CRD Resource, a sample .yaml file is available here: [config/samples/onpremdb/pdb_plug.yaml](../../../config/samples/onpremdb/pdb_plug.yaml)
6+
57
**NOTE:** It is assumed that before this step, you have followed the [prerequisite](./../README.md#prerequsites-to-manage-pdb-life-cycle-using-oracle-db-operator-on-prem-database-controller) steps.
68

79
This example uses `plug_pdb.yaml` to plug in a PDB to a target CDB using Oracle DB Operator On-Prem Controller with:

docs/onpremdb/provisioning/unplug_pdb.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
In this use case, a PDB is unplugged using Oracle DB Operator On-Prem controller.
44

5+
To unplug a PDB CRD Resource, a sample .yaml file is available here: [config/samples/onpremdb/pdb_unplug.yaml](../../../config/samples/onpremdb/pdb_unplug.yaml)
6+
57
**NOTE:** It is assumed that before this step, you have followed the [prerequisite](./../README.md#prerequsites-to-manage-pdb-life-cycle-using-oracle-db-operator-on-prem-database-controller) steps.
68

79
This example uses `unplug_pdb.yaml` to unplug a PDB from a target CDB using Oracle DB Operator On-Prem Controller with:

0 commit comments

Comments
 (0)