diff --git a/charts/keep/Chart.yaml b/charts/keep/Chart.yaml index 91f2dbb..03518ac 100644 --- a/charts/keep/Chart.yaml +++ b/charts/keep/Chart.yaml @@ -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 diff --git a/charts/keep/templates/keep-backend.yaml b/charts/keep/templates/keep-backend.yaml index 67e304d..f1cfc88 100644 --- a/charts/keep/templates/keep-backend.yaml +++ b/charts/keep/templates/keep-backend.yaml @@ -44,7 +44,23 @@ spec: env: {{- range .Values.backend.env }} - name: {{ .name }} + {{- if .secretKeyRef }} + valueFrom: + secretKeyRef: + name: {{ .secretName }} + key: {{ .secretKey }} + {{- else if .configMapKeyRef }} + valueFrom: + configMapKeyRef: + name: {{ .configMapName }} + key: {{ .configMapKey }} + {{- else if .fieldRef }} + valueFrom: + fieldRef: + fieldPath: metadata.namespace + {{- else }} value: {{ .value | quote }} + {{- end }} {{- end }} {{- if .Values.backend.openAiApi.enabled }} - name: OPENAI_API_KEY @@ -80,6 +96,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: diff --git a/charts/keep/values.yaml b/charts/keep/values.yaml index 478513f..34f226b 100644 --- a/charts/keep/values.yaml +++ b/charts/keep/values.yaml @@ -44,6 +44,7 @@ backend: repository: us-central1-docker.pkg.dev/keephq/keep/keep-api pullPolicy: Always tag: "latest" + extraInitContainers: [] imagePullSecrets: [] podAnnotations: {} podSecurityContext: {}