From 017598aaf57f9d64462f1bd6d7442664a6fa0e10 Mon Sep 17 00:00:00 2001 From: Misagh Date: Thu, 16 Feb 2023 16:03:29 +0100 Subject: [PATCH] Add allow_other option to fix the non-root user access denied issue --- helm/templates/daemonset.yaml | 3 ++- helm/values.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/helm/templates/daemonset.yaml b/helm/templates/daemonset.yaml index dbf110f..631d88f 100644 --- a/helm/templates/daemonset.yaml +++ b/helm/templates/daemonset.yaml @@ -22,7 +22,8 @@ spec: containers: - name: mounter image: otomato/goofys - command: ["./goofys", "-f", "{{ .Values.bucketName }}", "{{ .Values.mountPath }}"] + command: {{ .Values.commandOption }} + args: ["{{ .Values.bucketName }}", "{{ .Values.mountPath }}"] securityContext: privileged: true volumeMounts: diff --git a/helm/values.yaml b/helm/values.yaml index 25d1072..09613e9 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -18,4 +18,5 @@ bucketName: my-bucket iamRoleARN: my-role mountPath: /var/s3 hostPath: /mnt/s3data - +# This is a variable to customize the command and manage options +commandOption: ["./goofys", "-f"] \ No newline at end of file