Skip to content

Commit

Permalink
Start kubearmor in VM mode only if k8s false and
Browse files Browse the repository at this point in the history
enableKubeArmorHostPOlicy true

Signed-off-by: Eswar Rajan Subramanian <[email protected]>
  • Loading branch information
seswarrajan committed Feb 14, 2022
1 parent 38b9224 commit 01bd255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KubeArmor/core/kubeArmor.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func KubeArmor() {
dm := NewKubeArmorDaemon()

// Enable KubeArmorHostPolicy for both VM and KVMAgent
if cfg.GlobalCfg.KVMAgent || cfg.GlobalCfg.HostPolicy {
if cfg.GlobalCfg.KVMAgent || (!cfg.GlobalCfg.K8sEnv && cfg.GlobalCfg.HostPolicy) {
dm.Node.NodeIP = kl.GetExternalIPAddr()

dm.Node.Annotations = map[string]string{}
Expand Down

0 comments on commit 01bd255

Please sign in to comment.