From 035a22ed80af13270040726befbc498f9bd03724 Mon Sep 17 00:00:00 2001 From: Sergey Kudasov Date: Tue, 27 Feb 2024 16:16:54 +0100 Subject: [PATCH] ttl command to increase namespace time until removal (#12028) --- charts/chainlink-cluster/README.md | 7 +++++++ charts/chainlink-cluster/devspace.yaml | 2 ++ 2 files changed, 9 insertions(+) diff --git a/charts/chainlink-cluster/README.md b/charts/chainlink-cluster/README.md index 7f2736034a7..c06107d2669 100644 --- a/charts/chainlink-cluster/README.md +++ b/charts/chainlink-cluster/README.md @@ -31,6 +31,13 @@ Build and deploy current commit devspace deploy ``` +Default `ttl` is `72h`, use `ttl` command to update if you need more time + +Valid values are `1h`, `2m`, `3s`, etc. Go time format is invalid `1h2m3s` +``` +devspace run ttl ${namespace} 120h +``` + If you don't need a build use ``` devspace deploy --skip-build diff --git a/charts/chainlink-cluster/devspace.yaml b/charts/chainlink-cluster/devspace.yaml index f7808085505..95369e549cd 100644 --- a/charts/chainlink-cluster/devspace.yaml +++ b/charts/chainlink-cluster/devspace.yaml @@ -89,6 +89,8 @@ pipelines: commands: connect: |- sudo kubefwd svc -n $1 + ttl: |- + kubectl annotate namespace $1 janitor/ttl=$2 --overwrite images: app: