Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
Merge #875
Browse files Browse the repository at this point in the history
875: [jjo] fix: improve kubeprod removal (e2e and docu) r=jjo a=jjo

Fixes #739.

Co-authored-by: JuanJo Ciarlante <juanjosec@gmail.com>
  • Loading branch information
bors[bot] and jjo committed Jul 16, 2020
2 parents dc645a9 + 771ea16 commit 45eb3fa
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
Expand Up @@ -251,6 +251,11 @@ def runIntegrationTest(String description, String kubeprodArgs, String ginkgoArg
sh "kubecfg delete kubeprod-manifest.jsonnet || true"
}
container('kubectl') {
sh """
timeout 60 kubectl get -n kubeprod challenges.acme.cert-manager.io -oname | \
timeout 60 xargs -rtI{} kubectl patch -n kubeprod {} \
--type=json -p='[{"op": "remove", "path": "/metadata/finalizers"}]' || true
"""
sh "kubectl wait --for=delete ns/kubeprod --timeout=300s || true"
}
}
Expand Down
8 changes: 8 additions & 0 deletions docs/quickstart-aks.md
Expand Up @@ -173,6 +173,14 @@ Re-run the `kubeprod install` command, from the [Deploy BKPR](#step-2-deploy-bkp

### Step 2: Wait for the `kubeprod` namespace to be deleted

```bash
# Specific finalizers cleanup, to avoid kubeprod ns lingering
# - cert-manager challenges if TLS certs have not been issued
kubectl get -n kubeprod challenges.acme.cert-manager.io -oname| \
xargs -rtI{} kubectl patch -n kubeprod {} \
--type=json -p='[{"op": "remove", "path": "/metadata/finalizers"}]'
```

```bash
kubectl wait --for=delete ns/kubeprod --timeout=300s
```
Expand Down
8 changes: 8 additions & 0 deletions docs/quickstart-eks.md
Expand Up @@ -232,6 +232,14 @@ Re-run the `kubeprod install` command from the [Deploy BKPR](#step-3-deploy-bkpr

### Step 2: Wait for the `kubeprod` namespace to be deleted

```bash
# Specific finalizers cleanup, to avoid kubeprod ns lingering
# - cert-manager challenges if TLS certs have not been issued
kubectl get -n kubeprod challenges.acme.cert-manager.io -oname| \
xargs -rtI{} kubectl patch -n kubeprod {} \
--type=json -p='[{"op": "remove", "path": "/metadata/finalizers"}]'
```

```bash
kubectl wait --for=delete ns/kubeprod --timeout=300s
```
Expand Down
8 changes: 8 additions & 0 deletions docs/quickstart-generic.md
Expand Up @@ -136,6 +136,14 @@ Re-run the `kubeprod install` command, from the [Deploy BKPR](#step-2-deploy-bkp

### Step 2: Wait for the `kubeprod` namespace to be deleted

```bash
# Specific finalizers cleanup, to avoid kubeprod ns lingering
# - cert-manager challenges if TLS certs have not been issued
kubectl get -n kubeprod challenges.acme.cert-manager.io -oname| \
xargs -rtI{} kubectl patch -n kubeprod {} \
--type=json -p='[{"op": "remove", "path": "/metadata/finalizers"}]'
```

```bash
kubectl wait --for=delete ns/kubeprod --timeout=300s
```
Expand Down
8 changes: 8 additions & 0 deletions docs/quickstart-gke.md
Expand Up @@ -217,6 +217,14 @@ Re-run the `kubeprod install` command, from the [Deploy BKPR](#step-2-deploy-bkp

### Step 2: Wait for the `kubeprod` namespace to be deleted

```bash
# Specific finalizers cleanup, to avoid kubeprod ns lingering
# - cert-manager challenges if TLS certs have not been issued
kubectl get -n kubeprod challenges.acme.cert-manager.io -oname| \
xargs -rtI{} kubectl patch -n kubeprod {} \
--type=json -p='[{"op": "remove", "path": "/metadata/finalizers"}]'
```

```bash
kubectl wait --for=delete ns/kubeprod --timeout=300s
```
Expand Down

0 comments on commit 45eb3fa

Please sign in to comment.