From d13bbc6e1553bf4a0363a5498de0a097b72be7c9 Mon Sep 17 00:00:00 2001 From: michelia feng Date: Mon, 9 Sep 2019 17:34:46 +0800 Subject: [PATCH] change fluentd windows init container command Problem: windows will throws error when the file already exist, which is different from linux Solution: change to use new-item Issue: https://github.com/rancher/rancher/issues/22679 --- .../fluentd/charts/fluentd-windows/templates/daemonset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/rancher-logging/0.1.2/charts/fluentd/charts/fluentd-windows/templates/daemonset.yaml b/charts/rancher-logging/0.1.2/charts/fluentd/charts/fluentd-windows/templates/daemonset.yaml index 33cd9f2..545bde5 100644 --- a/charts/rancher-logging/0.1.2/charts/fluentd/charts/fluentd-windows/templates/daemonset.yaml +++ b/charts/rancher-logging/0.1.2/charts/fluentd/charts/fluentd-windows/templates/daemonset.yaml @@ -41,7 +41,7 @@ spec: command: - 'powershell' - '-command' - - 'mkdir -p /var/lib/rancher/fluentd/log' + - 'New-Item -ItemType Directory -Force -Path /var/lib/rancher/fluentd/log' volumeMounts: - mountPath: /var/lib/rancher name: rancher -- GitLab