Skip to content

Commit

Permalink
Feat: remove /sys/kernel/debug mount
Browse files Browse the repository at this point in the history
Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>
  • Loading branch information
BGrasnick committed Sep 1, 2023
1 parent 93a1c8c commit a0aeadb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pkg/components/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ func NewDaemonSet(detail components.Detail, k *v1alpha1.Kepler) *appsv1.DaemonSe
{Name: "lib-modules", MountPath: "/lib/modules", ReadOnly: true},
{Name: "tracing", MountPath: "/sys", ReadOnly: true},
{Name: "kernel-src", MountPath: "/usr/src/kernels", ReadOnly: true},
{Name: "kernel-debug", MountPath: "/sys/kernel/debug"},
{Name: "proc", MountPath: "/proc"},
{Name: "cfm", MountPath: "/etc/kepler/kepler.config"},
}, // VolumeMounts
Expand All @@ -175,7 +174,6 @@ func NewDaemonSet(detail components.Detail, k *v1alpha1.Kepler) *appsv1.DaemonSe
k8s.VolumeFromHost("tracing", "/sys"),
k8s.VolumeFromHost("proc", "/proc"),
k8s.VolumeFromHost("kernel-src", "/usr/src/kernels"),
k8s.VolumeFromHost("kernel-debug", "/sys/kernel/debug"),
k8s.VolumeFromConfigMap("cfm", ConfigmapName),
}, // Volumes
}, // PodSpec
Expand Down
2 changes: 0 additions & 2 deletions pkg/components/exporter/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ func TestVolumeMounts(t *testing.T) {
{Name: "lib-modules", MountPath: "/lib/modules", ReadOnly: true},
{Name: "tracing", MountPath: "/sys", ReadOnly: true},
{Name: "kernel-src", MountPath: "/usr/src/kernels", ReadOnly: true},
{Name: "kernel-debug", MountPath: "/sys/kernel/debug"},
{Name: "proc", MountPath: "/proc"},
{Name: "cfm", MountPath: "/etc/kepler/kepler.config"},
},
Expand Down Expand Up @@ -155,7 +154,6 @@ func TestVolumes(t *testing.T) {
k8s.VolumeFromHost("tracing", "/sys"),
k8s.VolumeFromHost("proc", "/proc"),
k8s.VolumeFromHost("kernel-src", "/usr/src/kernels"),
k8s.VolumeFromHost("kernel-debug", "/sys/kernel/debug"),
k8s.VolumeFromConfigMap("cfm", ConfigmapName),
},
scenario: "default case",
Expand Down

0 comments on commit a0aeadb

Please sign in to comment.