From 13b04f1b30ffdb728d0b7a951efdf374e2c79ec4 Mon Sep 17 00:00:00 2001 From: Marc Sensenich Date: Thu, 15 Aug 2019 17:30:35 -0400 Subject: [PATCH] [stable/filebeat] Use data.hostPath in Pod Security Policy (#15974) Signed-off-by: Marc Sensenich --- stable/filebeat/Chart.yaml | 2 +- stable/filebeat/templates/podsecuritypolicy.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/filebeat/Chart.yaml b/stable/filebeat/Chart.yaml index ea069b8a87..5389ad8fc3 100644 --- a/stable/filebeat/Chart.yaml +++ b/stable/filebeat/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 description: A Helm chart to collect Kubernetes logs with filebeat icon: https://www.elastic.co/assets/blt47799dcdcf08438d/logo-elastic-beats-lt.svg name: filebeat -version: 2.0.1 +version: 2.0.2 appVersion: 7.0.1 home: https://www.elastic.co/products/beats/filebeat sources: diff --git a/stable/filebeat/templates/podsecuritypolicy.yaml b/stable/filebeat/templates/podsecuritypolicy.yaml index 3a11b38260..690042568b 100644 --- a/stable/filebeat/templates/podsecuritypolicy.yaml +++ b/stable/filebeat/templates/podsecuritypolicy.yaml @@ -16,7 +16,7 @@ spec: readOnly: true - pathPrefix: /var/lib/docker/containers readOnly: true - - pathPrefix: /var/lib/filebeat + - pathPrefix: {{ .Values.data.hostPath }} requiredDropCapabilities: - ALL volumes: