diff --git a/charts/core-dump-handler/README.md b/charts/core-dump-handler/README.md index 026be63..afc2446 100644 --- a/charts/core-dump-handler/README.md +++ b/charts/core-dump-handler/README.md @@ -334,6 +334,7 @@ Daemonset * envFrom: Array of [EnvFromSource](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#envfromsource-v1-core) to inject into main container. * sidecarContainers: Array of [Container](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#container-v1-core) to define as part of the pod. * updateStrategy: [DaemonsetUpdateStrategy](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#daemonsetupdatestrategy-v1-apps) is a struct used to control the update strategy for the DaemonSet. +* mountPropagation: [Mount propagation](https://kubernetes.io/docs/concepts/storage/volumes/#mount-propagation) mode for core dump volumes. (Default "") Service account: * useToken: automatically create a service account token secret diff --git a/charts/core-dump-handler/templates/_helpers.tpl b/charts/core-dump-handler/templates/_helpers.tpl index 200465f..77ebda7 100644 --- a/charts/core-dump-handler/templates/_helpers.tpl +++ b/charts/core-dump-handler/templates/_helpers.tpl @@ -86,6 +86,24 @@ Basically copied from https://github.com/bitnami/charts/blob/master/bitnami/comm mountPath: {{ .Values.daemonset.eventDirectory }} mountPropagation: Bidirectional {{- end }} +{{- define "core-dump-handler.daemonset.container.volumeMounts" -}} +- name: host-volume + mountPath: {{ .Values.daemonset.hostDirectory }} + {{- if .Values.daemonset.mountPropagation }} + mountPropagation: {{ .Values.daemonset.mountPropagation }} + {{- end }} +- name: core-volume + mountPath: {{ .Values.daemonset.coreDirectory }} + {{- if .Values.daemonset.mountPropagation }} + mountPropagation: {{ .Values.daemonset.mountPropagation }} + {{- end }} +{{- if .Values.composer.coreEvents }} +- name: event-volume + mountPath: {{ .Values.daemonset.eventDirectory }} + {{- if .Values.daemonset.mountPropagation }} + mountPropagation: {{ .Values.daemonset.mountPropagation }} + {{- end }} +{{- end }} {{- if .Values.daemonset.mountContainerRuntimeEndpoint }} - mountPath: {{ .Values.daemonset.hostContainerRuntimeEndpoint }} name: container-runtime diff --git a/charts/core-dump-handler/values.yaml b/charts/core-dump-handler/values.yaml index 05f8213..8a4261f 100644 --- a/charts/core-dump-handler/values.yaml +++ b/charts/core-dump-handler/values.yaml @@ -60,6 +60,7 @@ daemonset: envFrom: [] sidecarContainers: [] updateStrategy: {} + mountPropagation: "" serviceAccount: create: true