From 1e03b89cdc8da05a63620476df9348c1cc33d05f Mon Sep 17 00:00:00 2001 From: Ebenezer Muthiah Date: Fri, 10 May 2024 13:44:13 -0700 Subject: [PATCH] Helm: Update job ttl to make it configurable Signed-off-by: Ebenezer Muthiah --- deployment/helm/templates/webhook-cert-autogen.yaml | 4 ++-- deployment/helm/values.yaml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/deployment/helm/templates/webhook-cert-autogen.yaml b/deployment/helm/templates/webhook-cert-autogen.yaml index e0c638347..f64a8cb92 100644 --- a/deployment/helm/templates/webhook-cert-autogen.yaml +++ b/deployment/helm/templates/webhook-cert-autogen.yaml @@ -108,7 +108,7 @@ metadata: {{- include "akri.labels" . | nindent 4 }} app.kubernetes.io/component: admission-webhook spec: - ttlSecondsAfterFinished: 0 + ttlSecondsAfterFinished: {{ .Values.webhookConfiguration.ttlSecondsAfterFinished }} template: metadata: name: {{ .Values.webhookConfiguration.name }}-create @@ -149,7 +149,7 @@ metadata: {{- include "akri.labels" . | nindent 4 }} app.kubernetes.io/component: admission-webhook spec: - ttlSecondsAfterFinished: 0 + ttlSecondsAfterFinished: {{ .Values.webhookConfiguration.ttlSecondsAfterFinished }} template: metadata: name: {{ .Values.webhookConfiguration.name }}-patch diff --git a/deployment/helm/values.yaml b/deployment/helm/values.yaml index ca462c08d..ca6437014 100644 --- a/deployment/helm/values.yaml +++ b/deployment/helm/values.yaml @@ -846,6 +846,10 @@ webhookConfiguration: # base64-encoded CA certificate (PEM) used by Kubernetes to validate the Webhook's certificate, if # unset, will generate a self-signed certificate valid for 100y caBundle: null + # ttlSecondsAfterFinished is the number of seconds to wait after the webhook has finished its job + # before the job is cleaned up. Set this to a non-zero value if your CD pipeline (e.g. ArgoCD) hangs and requires a longer + # TTL. + ttlSecondsAfterFinished: 0 image: # repository is the Akri Webhook for Configurations image reference repository: ghcr.io/project-akri/akri/webhook-configuration