From 407b501e2383ca22c1e36bedcdf0abf14923d8cf Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Sun, 6 Nov 2022 20:50:42 +0200 Subject: [PATCH] fix(auto-perms): don't try recursive on file --- charts/common/Chart.yaml | 3 +-- charts/common/templates/lib/controller/_prepare.tpl | 2 +- charts/common/templates/lib/util/_crd-updater.tpl | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/charts/common/Chart.yaml b/charts/common/Chart.yaml index e6ee750a..5e239968 100644 --- a/charts/common/Chart.yaml +++ b/charts/common/Chart.yaml @@ -15,5 +15,4 @@ maintainers: name: common sources: null type: library -version: 10.8.0 - +version: 10.8.1 diff --git a/charts/common/templates/lib/controller/_prepare.tpl b/charts/common/templates/lib/controller/_prepare.tpl index cd7741bb..4b9b9779 100644 --- a/charts/common/templates/lib/controller/_prepare.tpl +++ b/charts/common/templates/lib/controller/_prepare.tpl @@ -90,7 +90,7 @@ before chart installation. echo "Automatically correcting permissions..." {{- if and ( .Values.addons.vpn.configFile.enabled ) ( ne .Values.addons.vpn.type "disabled" ) ( ne .Values.addons.vpn.type "tailscale" ) }} echo "Automatically correcting permissions for vpn config file..." - /usr/bin/nfs4xdr_winacl -a chown -O 568 -G 568 -r -c /vpn/vpn.conf -p /vpn/vpn.conf + /usr/bin/nfs4xdr_winacl -a chown -O 568 -G 568 -c /vpn/vpn.conf -p /vpn/vpn.conf {{- end }} {{- range $_, $hpm := $hostPathMounts }} echo "Automatically correcting permissions for {{ $hpm.mountPath }}..." diff --git a/charts/common/templates/lib/util/_crd-updater.tpl b/charts/common/templates/lib/util/_crd-updater.tpl index a4e9202c..b8c663e4 100644 --- a/charts/common/templates/lib/util/_crd-updater.tpl +++ b/charts/common/templates/lib/util/_crd-updater.tpl @@ -41,7 +41,7 @@ spec: - name: {{ $fullName }}-crds configMap: name: {{ $fullName }}-crds - restartPolicy: OnFailure + restartPolicy: Never --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole