Skip to content

Commit

Permalink
Adding host-visibility data to karmorProbeData.cfg file
Browse files Browse the repository at this point in the history
  • Loading branch information
legorie committed Feb 3, 2023
1 parent 49f79c2 commit 3b371bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions KubeArmor/core/karmorprobedata.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type KarmorData struct {
ContainerSecurity bool
ContainerDefaultPosture tp.DefaultPosture
HostDefaultPosture tp.DefaultPosture
HostVisibility string
}

// SetKarmorData generates runtime configuration for KubeArmor to be consumed by kArmor
Expand Down Expand Up @@ -54,6 +55,7 @@ func (dm *KubeArmorDaemon) SetKarmorData() {
}
}
kd.KernelHeaderPresent = true //this is always true since KubeArmor is running
kd.HostVisibility = dm.Node.Annotations["kubearmor-visibility"]
err := kl.WriteToFile(kd, "/tmp/karmorProbeData.cfg")
if err != nil {
dm.Logger.Errf("Error writing karmor config data", err)
Expand Down

0 comments on commit 3b371bf

Please sign in to comment.