Skip to content

Commit

Permalink
FAQ: PR environment cleanup (#437)
Browse files Browse the repository at this point in the history
* FAQ: AWS resource provision

* remove aws provision from origin

* FAQ: How to clean PR Environments

Co-authored-by: Erik Osterman <[email protected]>
  • Loading branch information
drnickiw and osterman committed Jan 12, 2020
1 parent 384f747 commit d87c564
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions content/faq/how-clean-pr-environments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: "How are PR environments cleaned up?"
description: "We create a pipeline and associate it with the closed action of a PR."
tags:
- PR
- namespace
- Codefresh
- Helm
---

## Question

How are PR environments cleaned up?


## Answer

We create one namespace per PR. Codefresh intercepts all webhook actions for a PR. We create a pipeline and associate it with the closed action of a PR. This causes the pipeline to execute, which runs a step that deletes all Helm releases for the PR namespace and then deletes the namespace itself.

0 comments on commit d87c564

Please sign in to comment.