Skip to content

Commit

Permalink
feat: add extraInitContainers and env from secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl committed Aug 19, 2024
1 parent bfa9f4d commit a527638
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/keep/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: keep
version: 0.0.7
version: 0.1.0
description: Keep Helm Chart
type: application
icon: https://platform.keephq.dev/_next/image?url=%2Fkeep.png&w=48&q=75
Expand Down
19 changes: 19 additions & 0 deletions charts/keep/templates/keep-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,25 @@ spec:
image: busybox
command: ['sh', '-c', 'until nc -z keep-database 3306; do sleep 1; done;']
{{- end }}
{{- range .Values.backend.extraInitContainers }}
- name: {{ .name }}
image: {{ .image }}
{{- with .imagePullPolicy }}
imagePullPolicy: {{ . }}
{{- end }}
{{- with .command }}
command: {{ toYaml . | nindent 12 }}
{{- end }}
{{- with .args }}
args: {{ toYaml . | nindent 12 }}
{{- end }}
{{- with .env }}
env: {{ toYaml . | nindent 12 }}
{{- end }}
{{- with .volumeMounts }}
volumeMounts: {{ toYaml . | nindent 12 }}
{{- end }}
{{- end }}

{{- with .Values.backend.nodeSelector }}
nodeSelector:
Expand Down
5 changes: 5 additions & 0 deletions charts/keep/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ backend:
repository: us-central1-docker.pkg.dev/keephq/keep/keep-api
pullPolicy: Always
tag: "latest"
extraInitContainers: []
imagePullSecrets: []
podAnnotations: {}
podSecurityContext: {}
Expand Down Expand Up @@ -253,6 +254,7 @@ database:
nodeSelector: {}
tolerations: []
affinity: {}
<<<<<<< Updated upstream
healthCheck:
enabled: false
probes:
Expand All @@ -266,3 +268,6 @@ database:
port: 3306
extraVolumeMounts: []
extraVolumes: []
=======

>>>>>>> Stashed changes

0 comments on commit a527638

Please sign in to comment.