From 902b902fcf487f30ebb5dbeee3bb14e17eb0ec21 Mon Sep 17 00:00:00 2001 From: SmritiSatyanV <94349093+SmritiSatyanV@users.noreply.github.com> Date: Tue, 5 Jul 2022 15:42:13 +0530 Subject: [PATCH] Specify how resource is cleaned up (#274) Specify how resource is cleaned up after successful execution of a k8s pod [Issue](https://github.com/flyteorg/flyte/issues/2650) Signed-off-by: SmritiSatyanV smriti@union.ai Signed-off-by: SmritiSatyanV <94349093+SmritiSatyanV@users.noreply.github.com> --- go/tasks/pluginmachinery/flytek8s/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/tasks/pluginmachinery/flytek8s/config/config.go b/go/tasks/pluginmachinery/flytek8s/config/config.go index b7ca58928a..9111b42ecb 100755 --- a/go/tasks/pluginmachinery/flytek8s/config/config.go +++ b/go/tasks/pluginmachinery/flytek8s/config/config.go @@ -125,7 +125,7 @@ type K8sPluginConfig struct { // DeleteResourceOnFinalize instructs the system to delete the resource on finalize. This ensures that no resources // are kept around (potentially consuming cluster resources). This, however, will cause k8s log links to expire as // soon as the resource is finalized. - DeleteResourceOnFinalize bool `json:"delete-resource-on-finalize" pflag:",Instructs the system to delete the resource on finalize. This ensures that no resources are kept around (potentially consuming cluster resources). This, however, will cause k8s log links to expire as soon as the resource is finalized."` + DeleteResourceOnFinalize bool `json:"delete-resource-on-finalize" pflag:",Instructs the system to delete the resource upon successful execution of a k8s pod rather than have the k8s garbage collector clean it up. This ensures that no resources are kept around (potentially consuming cluster resources). This, however, will cause k8s log links to expire as soon as the resource is finalized."` // Time to wait for transient CreateContainerError errors to be resolved. If the // error persists past this grace period, it will be inferred to be a permanent