Skip to content

Commit

Permalink
Remove mount of redhat-release
Browse files Browse the repository at this point in the history
  • Loading branch information
tomer-shefler authored and BenRub committed Oct 19, 2023
1 parent e0c8503 commit 152d6ea
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions cbcontainers/state/components/sensor_daemon_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,24 +76,21 @@ 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{
"root": hostRootPath,
"boot": bootPath,
}
cndrReadOnlyMounts = map[string]struct{}{
"root": {},
"boot": {},
"os-release": {},
"redhat-release": {},
"root": {},
"boot": {},
"os-release": {},
}
)

Expand Down

0 comments on commit 152d6ea

Please sign in to comment.