Skip to content

Commit

Permalink
feat: add delete image customize (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl authored Feb 24, 2025
1 parent 2feaa41 commit 69818a0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/keep/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: v2
name: keep
version: 0.1.64
version: 0.1.65
description: Keep Helm Chart
type: application
icon: https://platform.keephq.dev/_next/image?url=%2Fkeep.png&w=48&q=75
appVersion: 0.36.2
appVersion: 0.37.5
deprecated: false
annotations:
app: keep
Expand Down
5 changes: 3 additions & 2 deletions charts/keep/templates/delete-secret-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: delete-keep-secrets
annotations:
"helm.sh/hook": pre-delete
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed
"helm.sh/hook-delete-policy": "hook-succeeded,hook-failed"
labels:
{{- include "keep.labels" . | nindent 4 }}
app.kubernetes.io/component: secrets
Expand All @@ -14,7 +14,8 @@ spec:
serviceAccountName: {{ include "keep.serviceAccountName" . }}
containers:
- name: delete-secrets-container
image: bitnami/kubectl
image: {{ .Values.deleteSecretJob.image.repository | default "bitnami/kubectl" }}:{{ .Values.deleteSecretJob.image.tag | default "latest" }}
pullPolicy: {{ .Values.deleteSecretJob.image.pullPolicy | default "Always" }}
command:
- /bin/sh
- -c
Expand Down
7 changes: 7 additions & 0 deletions charts/keep/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -356,3 +356,10 @@ database:
port: 3306
extraVolumeMounts: []
extraVolumes: []

# Add this new section before or after database section
deleteSecretJob:
image:
repository: bitnami/kubectl
tag: latest
pullPolicy: Always

0 comments on commit 69818a0

Please sign in to comment.