Skip to content
Closed
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
4 changes: 3 additions & 1 deletion deploy/helm/charts/snapshot/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ Host directory holding per-container storage (overlay upperdirs the agent
reads for rootfs-diff capture, and CRI-O config.json fallback).
*/}}
{{- define "snapshot.runtimeStorageDir" -}}
{{- if eq .Values.runtime.type "crio" -}}/var/lib/containers{{- else -}}/var/lib/containerd{{- end -}}
{{- if .Values.runtime.storageDir -}}
{{- .Values.runtime.storageDir -}}
{{- else if eq .Values.runtime.type "crio" -}}/var/lib/containers{{- else -}}/var/lib/containerd{{- end -}}
{{- end }}

{{- define "snapshot.pageBrokerControlPath" -}}/pagebroker/control{{- end -}}
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/charts/snapshot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
runtime:
type: containerd # containerd | crio
socketPath: ""
# Host directory containing container runtime snapshots and overlay upperdirs.
# Leave empty to use /var/lib/containerd (or /var/lib/containers for CRI-O).
storageDir: ""

# Gates the OCP RBAC template and the DS required-scc annotation. Keep false
# on vanilla Kubernetes (it references an OCP-only built-in SCC).
Expand Down
Loading