Skip to content

Commit

Permalink
Merge pull request #12 from nimbolus/fix-optional-localtime-mount
Browse files Browse the repository at this point in the history
Allow overwriting localtime host path mount
  • Loading branch information
travisghansen authored Oct 24, 2020
2 parents 8b06a17 + 3a96c85 commit a3c6c0c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/democratic-csi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Kubernetes
name: democratic-csi
version: 0.4.5
version: 0.4.6
6 changes: 5 additions & 1 deletion stable/democratic-csi/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ spec:
- name: modules-dir
mountPath: /lib/modules
readOnly: true
{{- if .Values.node.driver.localtimeHostPath }}
- name: localtime
mountPath: /etc/localtime
readOnly: true
{{- end }}
- name: udev-data
mountPath: /run/udev
- name: host-dir
Expand Down Expand Up @@ -204,9 +206,11 @@ spec:
- name: modules-dir
hostPath:
path: /lib/modules
{{- if .Values.node.driver.localtimeHostPath }}
- name: localtime
hostPath:
path: /etc/localtime
path: {{ .Values.node.driver.localtimeHostPath }}
{{- end }}
- name: udev-data
hostPath:
path: /run/udev
Expand Down
2 changes: 2 additions & 0 deletions stable/democratic-csi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ node:
enabled: true
image: democraticcsi/democratic-csi:latest
logLevel: info
# set path to null if your OS has no localtime file (e.g. for RancherOS)
localtimeHostPath: /etc/localtime
lifecycle:
# postStart:
# exec:
Expand Down

0 comments on commit a3c6c0c

Please # to comment.