Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/quickwit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: quickwit
description: Sub-second search & analytics engine on cloud storage.
type: application
version: 0.8.14
version: 0.8.15
appVersion: v0.8.2
keywords:
- quickwit
Expand Down
12 changes: 12 additions & 0 deletions charts/quickwit/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ Expand the name of the chart.
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Create the Quickwit image reference. An immutable digest takes precedence over
the configured tag and the chart appVersion.
*/}}
{{- define "quickwit.image" -}}
{{- if .Values.image.digest -}}
{{- printf "%s@%s" .Values.image.repository .Values.image.digest -}}
{{- else -}}
{{- printf "%s:%s" .Values.image.repository (.Values.image.tag | default .Chart.AppVersion) -}}
{{- end -}}
{{- end }}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
Expand Down
2 changes: 1 addition & 1 deletion charts/quickwit/templates/_metastore-deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
- name: {{ $root.Chart.Name }}
securityContext:
{{- toYaml $root.Values.securityContext | nindent 12 }}
image: "{{ $root.Values.image.repository }}:{{ $root.Values.image.tag | default $root.Chart.AppVersion }}"
image: {{ include "quickwit.image" $root | quote }}
imagePullPolicy: {{ $root.Values.image.pullPolicy }}
{{- if $values.args }}
args: {{- toYaml $values.args | nindent 10 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/quickwit/templates/compactor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: {{ include "quickwit.image" . | quote }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if $.Values.compactor.args }}
args: {{- toYaml $.Values.compactor.args | nindent 10 }}
Expand Down
4 changes: 2 additions & 2 deletions charts/quickwit/templates/control-plane-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: {{ include "quickwit.image" . | quote }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if $.Values.control_plane.args }}
args: {{- toYaml $.Values.control_plane.args | nindent 10 }}
Expand Down Expand Up @@ -128,4 +128,4 @@ spec:
topologySpreadConstraints:
{{- toYaml $tsc | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/quickwit/templates/indexer-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: {{ include "quickwit.image" . | quote }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if $.Values.indexer.args }}
args: {{- toYaml $.Values.indexer.args | nindent 10 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/quickwit/templates/janitor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: {{ include "quickwit.image" . | quote }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if $.Values.janitor.args }}
args: {{- toYaml $.Values.janitor.args | nindent 10 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/quickwit/templates/job-create-indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
- name: {{ $.Chart.Name }}
securityContext:
{{- toYaml $.Values.securityContext | nindent 10 }}
image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag | default $.Chart.AppVersion }}"
image: {{ include "quickwit.image" $ | quote }}
imagePullPolicy: {{ $.Values.image.pullPolicy }}
{{- if $.Values.bootstrap.indexes.command }}
command: {{- toYaml $.Values.bootstrap.indexes.command | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/quickwit/templates/job-create-sources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
- name: {{ $.Chart.Name }}
securityContext:
{{- toYaml $.Values.securityContext | nindent 10 }}
image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag | default $.Chart.AppVersion }}"
image: {{ include "quickwit.image" $ | quote }}
imagePullPolicy: {{ $.Values.image.pullPolicy }}
{{- if $.Values.bootstrap.sources.command }}
command: {{- toYaml $.Values.bootstrap.sources.command | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/quickwit/templates/searcher-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: {{ include "quickwit.image" . | quote }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if $.Values.searcher.args }}
args: {{- toYaml $.Values.searcher.args | nindent 10 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ image:
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
# tag: v0.8.2
# Overrides the image tag with an immutable image digest.
digest: ""

imagePullSecrets: []
nameOverride: ""
Expand Down
Loading