Skip to content

Commit

Permalink
feat: more tpl
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl committed Sep 8, 2024
1 parent 61051f5 commit 0496ecf
Show file tree
Hide file tree
Showing 2 changed files with 11 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.7
version: 0.1.8
description: Keep Helm Chart
type: application
icon: https://platform.keephq.dev/_next/image?url=%2Fkeep.png&w=48&q=75
appVersion: 0.23.0
appVersion: 0.24.0
deprecated: false
annotations:
app: keep
Expand Down
11 changes: 9 additions & 2 deletions charts/keep/templates/keep-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ spec:
metadata:
{{- with .Values.backend.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.backend.podAnnotations }}
{{- range $key, $value := .Values.backend.podAnnotations }}
{{- if kindIs "string" $value }}
{{ $key }}: {{ tpl $value $ | quote }}
{{- else }}
{{ $key }}: {{ $value | toYaml | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}
labels:
{{- include "keep.selectorLabels" . | nindent 8 }}
keep-component: backend
Expand Down

0 comments on commit 0496ecf

Please sign in to comment.