Skip to content

Commit

Permalink
feat: runtimeClassName support so we can support gVisor (GKE Sandbox)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaachall committed Sep 7, 2024
1 parent 44056e3 commit fe1a09a
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 3 deletions.
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 @@ -127,6 +127,9 @@ spec:
tolerations:
{{- 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 @@ -127,6 +127,9 @@ spec:
tolerations:
{{- 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 @@ -125,6 +125,8 @@ searcher:

affinity: {}

runtimeClassName: ""

indexer:
replicaCount: 1

Expand Down Expand Up @@ -196,6 +198,8 @@ indexer:

affinity: {}

runtimeClassName: ""

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

affinity: {}

runtimeClassName: ""

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

affinity: {}

runtimeClassName: ""

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

affinity: {}

runtimeClassName: ""

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

affinity: {}

runtimeClassName: ""

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

0 comments on commit fe1a09a

Please sign in to comment.