Skip to content

Commit

Permalink
Merge pull request #5485 from ministryofjustice/update-ns-delete
Browse files Browse the repository at this point in the history
add tip for locating namespace delete PR number
  • Loading branch information
sj-williams authored Apr 17, 2024
2 parents 8e8df64 + 62452b1 commit 59d46a2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion runbooks/source/manually-delete-namespace-resources.html.md.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Manually Delete Namespace Resources
weight: 185
last_reviewed_on: 2024-01-16
last_reviewed_on: 2024-04-17
review_in: 6 months
---

Expand Down Expand Up @@ -62,3 +62,12 @@ cloud-platform environment destroy \
```
The command will then destroy all terraform and kubernetes resources associated with the namespace, and finally will delete
the namespace itself.

## Locating PR number

If you are unable to locate the PR number for the namespace deletion, you can run this handy `git` command from the root of the `cloud-platform-environments` repo
to get the commit hash for the namespace deletion, and then search for the PR in the environments repository via the GitHub UI search.

```bash
git rev-list -n 1 HEAD -- namespaces/live.cloud-platform.service.justice.gov.uk/[namespace-name]
```

0 comments on commit 59d46a2

Please sign in to comment.