Skip to content

Commit b32804b

Browse files
author
odx-pipelines/[email protected]
committed
cascade deletion
1 parent 3ca1140 commit b32804b

File tree

8 files changed

+66
-2
lines changed

8 files changed

+66
-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: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
Cascade delete of `DevOps Project`.
2+
------
3+
The procedure illustrates the cascade deletion of OCI DevOps projects.
4+
5+
```
6+
$ git init oci-project-cascade delete
7+
$ cd oci-project-cascadedelete
8+
$ git remote add origin <url to this git repo>
9+
$ git config core. sparse checkout true
10+
$ echo "oci-config-examples/oci-project-cascadedelete/*">>.git/info/sparse-checkout
11+
$ git pull --depth=1 origin main
12+
13+
```
14+
15+
16+
Procedure to use the illustration
17+
-------
18+
19+
- Use `OCI Console` >`Developer service`>`Devops` and the `Project name
20+
21+
![](images/oci-project-view.png)
22+
23+
- Click `Delete`. Provide the project name and select the `Cascade delete` option.
24+
25+
![](images/oci-project-deleteact.png)
26+
27+
- Deletion will be scheduled and it will start after `72` hours.
28+
29+
![](images/oci-deletion-schedule.png)
30+
31+
- 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.
32+
33+
![](images/oci-project-deleting.png)
34+
35+
- 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
36+
- For a failed deletion the project status will move to the `Needs Attention` state.
37+
- The act will emit audit events for cascade Delete success & failures for the schedule.
38+
39+
Read more
40+
---
41+
42+
- OCI DevOps service - https://docs.oracle.com/en-us/iaas/Content/devops/using/home.htm
43+
- OCI Compute run command agent - https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/runningcommands.htm
44+
45+
Contributors
46+
===========
47+
48+
- Author: [Rahul M R](https://github.com/RahulMR42).
49+
- Collaborators:
50+
- Last release: December 2022
51+
52+
### Back to examples.
53+
----
54+
55+
- 🏝️ [Back to OCI Devops sample](./../../README.md)
56+
317 KB
Loading
206 KB
Loading
68.9 KB
Loading
79.6 KB
Loading

0 commit comments

Comments
 (0)