Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tip for locating namespace delete PR number #5485

Merged
merged 3 commits into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
```