Skip to content

Commit

Permalink
Helm: Update job ttl to make it configurable
Browse files Browse the repository at this point in the history
Signed-off-by: Ebenezer Muthiah <ebe1234@gmail.com>
  • Loading branch information
emuthiah committed May 10, 2024
1 parent 58e2371 commit 1e03b89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/helm/templates/webhook-cert-autogen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions deployment/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e03b89

Please sign in to comment.