Skip to content

Commit

Permalink
feat: runtimeClassName annotation support so we can support gVisor (G…
Browse files Browse the repository at this point in the history
…KE Sandbox) (#100)

* feat: runtimeClassName support so we can support gVisor (GKE Sandbox)

* Bump chart version to 0.7.3
  • Loading branch information
isaachall authored Oct 15, 2024
1 parent 1f95947 commit 24ad2b8
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 4 deletions.
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.7.2
version: 0.7.3
appVersion: "v0.8.2"
keywords:
- quickwit
Expand Down
5 changes: 4 additions & 1 deletion charts/quickwit/templates/control-plane-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: {{ include "quickwit.fullname" . }}-control-plane
labels:
{{- include "quickwit.labels" . | nindent 4 }}
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
Expand Down Expand Up @@ -121,3 +121,6 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.control_plane.runtimeClassName }}
runtimeClassName: {{ .Values.control_plane.runtimeClassName | quote }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/quickwit/templates/indexer-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ spec:
lifecycle:
{{- toYaml . | nindent 8 }}
{{- end}}
{{- if .Values.indexer.runtimeClassName }}
runtimeClassName: {{ .Values.indexer.runtimeClassName | quote }}
{{- end }}
{{- if .Values.indexer.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down
7 changes: 5 additions & 2 deletions charts/quickwit/templates/janitor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Deployment
metadata:
name: {{ include "quickwit.fullname" . }}-janitor
labels:
{{- include "quickwit.labels" . | nindent 4 }}
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
Expand Down Expand Up @@ -122,4 +122,7 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if .Values.janitor.runtimeClassName }}
runtimeClassName: {{ .Values.janitor.runtimeClassName | quote }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/quickwit/templates/job-create-indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,8 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.bootstrap.runtimeClassName }}
runtimeClassName: {{ .Values.bootstrap.runtimeClassName | quote }}
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/quickwit/templates/job-create-sources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,8 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.bootstrap.runtimeClassName }}
runtimeClassName: {{ .Values.bootstrap.runtimeClassName | quote }}
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/quickwit/templates/metastore-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,6 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.metastore.runtimeClassName }}
runtimeClassName: {{ .Values.metastore.runtimeClassName | quote }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/quickwit/templates/searcher-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ spec:
lifecycle:
{{- toYaml . | nindent 8 }}
{{- end}}
{{- if .Values.searcher.runtimeClassName }}
runtimeClassName: {{ .Values.searcher.runtimeClassName | quote }}
{{- end }}
{{- if .Values.searcher.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down
12 changes: 12 additions & 0 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ searcher:

affinity: {}

runtimeClassName: ""

indexer:
replicaCount: 1

Expand Down Expand Up @@ -216,6 +218,8 @@ indexer:
# See https://quickwit.io/docs/configuration/index-config#indexing-settings
terminationGracePeriodSeconds: 120

runtimeClassName: ""

persistentVolume:
enabled: false
# storage: "1Gi"
Expand Down Expand Up @@ -288,6 +292,8 @@ metastore:

affinity: {}

runtimeClassName: ""

control_plane:
# Extra env for control plane
extraEnv: {}
Expand Down Expand Up @@ -349,6 +355,8 @@ control_plane:

affinity: {}

runtimeClassName: ""

janitor:
# Enable Janitor service
enabled: true
Expand Down Expand Up @@ -413,6 +421,8 @@ janitor:

affinity: {}

runtimeClassName: ""

# Deploy jobs to bootstrap creation of indexes and sources for quickwit clusters
bootstrap:
# Enable bootstrap jobs
Expand Down Expand Up @@ -441,6 +451,8 @@ bootstrap:

affinity: {}

runtimeClassName: ""

sources:
# Override command for starting container
command: []
Expand Down

0 comments on commit 24ad2b8

Please sign in to comment.