Skip to content

Commit c6ca2b3

Browse files
authored
Merge pull request #43 from oracle-devrel/codereppo
Cascade deletion samples
2 parents 7433f41 + df3e003 commit c6ca2b3

File tree

8 files changed

+67
-2
lines changed

8 files changed

+67
-2
lines changed

AIO.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ All in One reference for samples - In Alphabetical (A to Z) order.
2727
- Integrate sonarqube with OCI devops build runner. - https://github.com/oracle-devrel/oci-devops-examples/tree/main/oci-build-examples/oci_buildrunner_with_sonarqube
2828
- Invoke deployment pipeline on a container image upload - https://github.com/oracle-devrel/oci-devops-examples/blob/main/oci-deployment-examples/oci-devops-deploy-on-imageupload
2929
- OCI Policy management using terraform - https://github.com/oracle-devrel/oci-devops-examples/blob/main/oci-config-examples/oci_devops_policy_dg_terraform
30+
- Cascade delete of OCI Project - https://github.com/oracle-devrel/oci-devops-examples/blob/main/oci-config-examples/oci-project-cascadedelete
3031
- Sample illustration of OCI Devops deployment pipeline to update the deployment environment - Instances dynamically - https://github.com/oracle-devrel/oci-devops-examples/blob/main/oci-deployment-examples/oci-devops-instance-env-dynamic-update
3132
- Scanning code for vulnerabilities for Maven packages - https://github.com/oracle-devrel/oci-devops-examples/tree/main/oci-build-examples/oci-devops-vulnerability-audit-management
3233
- Trigger build-pipeline from OCI Code repo on file modifications . - https://github.com/oracle-devrel/oci-devops-examples/blob/main/oci-coderepo-examples/oci-devops-coderepo-filebasedtrigger

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The service also provides private Git repositories to store your code and it sup
1515
- [⚡ OCI Devops Build service - samples](./oci-build-examples/README.md)
1616
- [⚡ OCI Devops Deployment service - samples](./oci-deployment-examples/README.md)
1717
- [⚡ OCI Source Code Management service - sample](./oci-coderepo-examples/README.md)
18-
- [⚡ OCI Devops Policies and Groups - sample](./oci-config-examples/README.md)
18+
- [⚡ OCI Devops Projects,Policies and Groups - sample](./oci-config-examples/README.md)
1919

2020
## All samples (A to Z sorted order)
2121

oci-config-examples/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
All about OCI devops deployment samples ..
1+
All about OCI devops Projects & Config samples ..
22
=======
33

44
<details>
@@ -9,6 +9,13 @@ All about OCI devops deployment samples ..
99

1010
</details>
1111

12+
<details>
13+
<summary>Projects - click to expand</summary>
14+
15+
* [Cascade Deletion of Project](./oci-project-cascadedelete/)
16+
17+
</details>
18+
1219

1320
### Back to examples.
1421
----
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
Cascade delete of `DevOps Project`.
2+
------
3+
The procedure illustrates the cascade deletion of OCI DevOps projects.
4+
5+
* Specific instruction to clone only this example.
6+
7+
```
8+
$ git init oci-project-cascade delete
9+
$ cd oci-project-cascadedelete
10+
$ git remote add origin <url to this git repo>
11+
$ git config core. sparse checkout true
12+
$ echo "oci-config-examples/oci-project-cascadedelete/*">>.git/info/sparse-checkout
13+
$ git pull --depth=1 origin main
14+
15+
```
16+
17+
18+
Procedure to use the illustration
19+
-------
20+
21+
- Use `OCI Console` >`Developer service`>`Devops` and the `Project name`
22+
23+
![](images/oci-project-view.png)
24+
25+
- Click `Delete`. Provide the project name and select the `Cascade delete` option.
26+
27+
![](images/oci-project-deleteact.png)
28+
29+
- Deletion will be scheduled and it will start after `72` hours.
30+
31+
![](images/oci-deletion-schedule.png)
32+
33+
- All the associated resources within the DevOps project will be in to `deleting` state and won't be able to use further. At any point within the `72` hours, the deletion can be cancelled or individual resources can be deleted.
34+
35+
![](images/oci-project-deleting.png)
36+
37+
- Once the 72-hour window elapses and the Project and sub-resources are being hard deleted, the OCI Logging Configuration set up by the Project resource will also be deleted
38+
- For a failed deletion the project status will move to the `Needs Attention` state.
39+
- The act will emit audit events for cascade Delete success & failures for the schedule.
40+
41+
Read more
42+
---
43+
44+
- OCI DevOps service - https://docs.oracle.com/en-us/iaas/Content/devops/using/home.htm
45+
46+
Contributors
47+
===========
48+
49+
- Author: [Rahul M R](https://github.com/RahulMR42).
50+
- Collaborators:
51+
- Last release: December 2022
52+
53+
### Back to examples.
54+
----
55+
56+
- 🏝️ [Back to OCI Devops sample](./../../README.md)
57+
282 KB
Loading
195 KB
Loading
68.9 KB
Loading
79 KB
Loading

0 commit comments

Comments
 (0)