From 8892d384631a3ff1c2a762eb4e9c6a6b92277ef0 Mon Sep 17 00:00:00 2001 From: The_Spider Date: Fri, 28 Jan 2022 10:40:25 -0600 Subject: [PATCH] auto delete pod --- build-factario-container.jenkins | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build-factario-container.jenkins b/build-factario-container.jenkins index 1dd3626..7a8b680 100644 --- a/build-factario-container.jenkins +++ b/build-factario-container.jenkins @@ -114,5 +114,12 @@ podTemplate( dockerFile: dockerFile, repoCreds: repositoryCreds, ) + + functions.deletePod( + kubeAuth: "rancher-admin-token", + kubeURL: "https://rancher.test-chamber-13.lan/k8s/clusters/c-mc9cq", + namespace: "game-servers", + selector: "workload.user.cattle.io/workloadselector=apps.deployment-game-servers-factorio" + ) } }