Skip to content

Commit

Permalink
Added host-visibility to probe sub-command (#254)
Browse files Browse the repository at this point in the history
Signed-off-by: Legorie <legorie@hotmail.com>
  • Loading branch information
legorie committed Apr 3, 2023
1 parent 8f3e118 commit 7dd806f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions probe/probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ type KubeArmorProbeData struct {
ContainerSecurity bool
ContainerDefaultPosture tp.DefaultPosture
HostDefaultPosture tp.DefaultPosture
HostVisibility string
}

func isKubeArmorRunning(c *k8s.Client, o Options) bool {
Expand Down Expand Up @@ -534,6 +535,7 @@ func printKubeArmorProbeOutput(buf []byte) error {
data = append(data, []string{" ", "Container Security:", green(strconv.FormatBool(kd.ContainerSecurity))})
data = append(data, []string{" ", "Container Default Posture:", green(kd.ContainerDefaultPosture.FileAction) + itwhite("(File)"), green(kd.ContainerDefaultPosture.FileAction) + itwhite("(Capabilities)"), green(kd.ContainerDefaultPosture.NetworkAction) + itwhite("(Network)")})
data = append(data, []string{" ", "Host Default Posture:", green(kd.HostDefaultPosture.FileAction) + itwhite("(File)"), green(kd.HostDefaultPosture.CapabilitiesAction) + itwhite("(Capabilities)"), green(kd.HostDefaultPosture.NetworkAction) + itwhite("(Network)")})
data = append(data, []string{" ", "Host Visibility:", green(kd.HostVisibility)})
renderOutputInTableWithNoBorders(data)
return nil
}
Expand Down

0 comments on commit 7dd806f

Please sign in to comment.