From 08728c9d6d2720b7b05685dcfe22da85af5aa14e Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Thu, 12 Oct 2023 06:10:49 +0000 Subject: [PATCH] Add InstancePendingForceDelete instance status The InstancePendingForceDelete instance status is meant to signal that the operator wishes to forcefully remove the runner in spite of any provider error. This has the potential to orphan resources in your IaaS, but will help in situations in which the operator deems it necessary to ignore such errors. This may include situations in which the provider is misconfigured in GARM or when credentials change or expire. Signed-off-by: Gabriel Adrian Samfira --- params/params.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/params/params.go b/params/params.go index 3bd2e7d..95a6e6b 100644 --- a/params/params.go +++ b/params/params.go @@ -39,14 +39,15 @@ const ( ) const ( - InstanceRunning InstanceStatus = "running" - InstanceStopped InstanceStatus = "stopped" - InstanceError InstanceStatus = "error" - InstancePendingDelete InstanceStatus = "pending_delete" - InstanceDeleting InstanceStatus = "deleting" - InstancePendingCreate InstanceStatus = "pending_create" - InstanceCreating InstanceStatus = "creating" - InstanceStatusUnknown InstanceStatus = "unknown" + InstanceRunning InstanceStatus = "running" + InstanceStopped InstanceStatus = "stopped" + InstanceError InstanceStatus = "error" + InstancePendingDelete InstanceStatus = "pending_delete" + InstancePendingForceDelete InstanceStatus = "pending_force_delete" + InstanceDeleting InstanceStatus = "deleting" + InstancePendingCreate InstanceStatus = "pending_create" + InstanceCreating InstanceStatus = "creating" + InstanceStatusUnknown InstanceStatus = "unknown" ) const (