add Delete all Error pods to ci

This commit is contained in:
Florian Herrengt 2024-01-31 16:39:50 +00:00
parent 6df8706241
commit 00d7f3c02c
1 changed files with 15 additions and 0 deletions

View File

@ -18,3 +18,18 @@ steps:
- echo "$$KUBE_CONFIG" | base64 -d > /.kube/config
- kubectl kustomize ./kustomization/overlays/staging
- kubectl apply -k ./kustomization/overlays/staging
---
kind: pipeline
type: docker
name: Delete all Error pods
steps:
- name: kubectl
image: bitnami/kubectl
environment:
KUBE_CONFIG:
from_secret: KUBE_CONFIG
commands:
- echo "$$KUBE_CONFIG" | base64 -d > /.kube/config
- kubectl delete pods --field-selector=status.phase=Failed --all-namespaces