From 0571336f7c368c0f9ed568f2688d10686c519a31 Mon Sep 17 00:00:00 2001 From: Tomer Shefler Date: Thu, 31 Aug 2023 10:14:24 +0300 Subject: [PATCH] Remove mount of redhat-release --- .../state/components/sensor_daemon_set.go | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/cbcontainers/state/components/sensor_daemon_set.go b/cbcontainers/state/components/sensor_daemon_set.go index a4fd6f94..f67a3f89 100644 --- a/cbcontainers/state/components/sensor_daemon_set.go +++ b/cbcontainers/state/components/sensor_daemon_set.go @@ -76,13 +76,11 @@ var ( hostPathDirectory = coreV1.HostPathDirectory hostPathDirectoryOrCreate = coreV1.HostPathDirectoryOrCreate hostPathFile = coreV1.HostPathFile - hostPathFileOrCreate = coreV1.HostPathFileOrCreate cndrHostPaths = map[string]*coreV1.HostPathVolumeSource{ - "boot": {Path: "/boot", Type: &hostPathDirectory}, - "cb-data-dir": {Path: "/var/opt/carbonblack", Type: &hostPathDirectoryOrCreate}, - "os-release": {Path: "/etc/os-release", Type: &hostPathFile}, - "redhat-release": {Path: "/etc/redhat-release", Type: &hostPathFileOrCreate}, - "root": {Path: "/", Type: &hostPathDirectory}, + "boot": {Path: "/boot", Type: &hostPathDirectory}, + "cb-data-dir": {Path: "/var/opt/carbonblack", Type: &hostPathDirectoryOrCreate}, + "os-release": {Path: "/etc/os-release", Type: &hostPathFile}, + "root": {Path: "/", Type: &hostPathDirectory}, } // Optional to have a different mount volume that the host path. If not exits the host path will be used. cndrVolumeMounts = map[string]string{ @@ -90,10 +88,9 @@ var ( "boot": bootPath, } cndrReadOnlyMounts = map[string]struct{}{ - "root": {}, - "boot": {}, - "os-release": {}, - "redhat-release": {}, + "root": {}, + "boot": {}, + "os-release": {}, } )