From 881877ed111e1cb043aaa61ed3f90a916187b32f Mon Sep 17 00:00:00 2001 From: mmahipal Date: Tue, 26 Oct 2021 13:03:51 +0530 Subject: [PATCH 1/2] Update README.md to remove Operator Image Pull Secrets --- README.md | 13 +------------ doc/installation/OPERATOR_INSTALLATION_README.md | 12 ++---------- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 30c9528e..76d97495 100644 --- a/README.md +++ b/README.md @@ -49,17 +49,6 @@ Oracle strongly recommends that you ensure your system meets the following [Prer kubectl apply -f https://github.com/jetstack/cert-manager/releases/latest/download/cert-manager.yaml ``` -* ### Create Operator Image Pull Secrets - - Sign into [https://container-registry.oracle.com/](https://container-registry.oracle.com/) and accept the license agreement for the Operator image. - - Create an image pull secret for Oracle Container Registry: - - ```sh - kubectl create namespace oracle-database-operator-system - kubectl create secret docker-registry container-registry-secret -n oracle-database-operator-system --docker-server=container-registry.oracle.com --docker-username='' --docker-password='' --docker-email='' - ``` - ## Quick Install of the Operator To install the operator in the cluster quickly, you can use a single [oracle-database-operator.yaml](https://github.com/oracle/oracle-database-operator/blob/main/oracle-database-operator.yaml) file. Operator pod replicas are set to a default of 3 for High Availability, which can be scaled up and down. @@ -120,7 +109,7 @@ YAML file templates are available under [`/config/samples`](./config/samples/). Note: If the CRD instances are not deleted, and the operator is deleted by using the preceding command, then operator deployment and instance objects (pods,services,PVCs, and so on) are deleted. However, the CRD deletion stops responding, because the CRD instances have finalizers that can only be removed by the operator pod, which is deleted when the APIServices are deleted. -* ### Retain the CRDs and APIservices +* ### Retaining the CRDs and APIservices To delete the operator deployment and retain the CRDs, run the following commands: diff --git a/doc/installation/OPERATOR_INSTALLATION_README.md b/doc/installation/OPERATOR_INSTALLATION_README.md index d01c468f..d9c8b893 100644 --- a/doc/installation/OPERATOR_INSTALLATION_README.md +++ b/doc/installation/OPERATOR_INSTALLATION_README.md @@ -57,17 +57,9 @@ If you encounter an issue with these steps, then refer to the more detailed step Clone the [oracle-database-operator](https://github.com/oracle/oracle-database-operator) on your local machine ## Review and modify the Cloned Repository -Make changes as needed to the repository. +Make changes as needed to the repository. -If you want to run the operator locally outside the cluster, then run the following steps: - - ```sh - cd oracle-database-operator - make generate - make manifests - make install run - ``` -If you want to run the operator inside the cluster, then run the following steps: +## Build and push the Operator image ```sh cd oracle-database-operator From 13ef8678d63bef850342ac7e0612e74101b5993c Mon Sep 17 00:00:00 2001 From: mmahipal Date: Tue, 26 Oct 2021 13:23:11 +0530 Subject: [PATCH 2/2] Revernt changes to Operator Installation --- doc/installation/OPERATOR_INSTALLATION_README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/installation/OPERATOR_INSTALLATION_README.md b/doc/installation/OPERATOR_INSTALLATION_README.md index d9c8b893..d01c468f 100644 --- a/doc/installation/OPERATOR_INSTALLATION_README.md +++ b/doc/installation/OPERATOR_INSTALLATION_README.md @@ -57,9 +57,17 @@ If you encounter an issue with these steps, then refer to the more detailed step Clone the [oracle-database-operator](https://github.com/oracle/oracle-database-operator) on your local machine ## Review and modify the Cloned Repository -Make changes as needed to the repository. +Make changes as needed to the repository. -## Build and push the Operator image +If you want to run the operator locally outside the cluster, then run the following steps: + + ```sh + cd oracle-database-operator + make generate + make manifests + make install run + ``` +If you want to run the operator inside the cluster, then run the following steps: ```sh cd oracle-database-operator