From 3943cbc00eebccb707948325370b0d356483cd73 Mon Sep 17 00:00:00 2001 From: Aryan-sharma11 Date: Tue, 30 Jul 2024 09:11:04 +0530 Subject: [PATCH] set annotateResources=true in MakeFile Signed-off-by: Aryan-sharma11 --- KubeArmor/Makefile | 2 +- pkg/KubeArmorController/informer/nodewatcher.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/KubeArmor/Makefile b/KubeArmor/Makefile index d550ec8ca1..8ed13c0456 100644 --- a/KubeArmor/Makefile +++ b/KubeArmor/Makefile @@ -51,7 +51,7 @@ run: build cd $(CURDIR); sudo rm -f /tmp/kubearmor.log cd $(CURDIR)/BPF; make clean cd $(CURDIR)/BPF; make - cd $(CURDIR); DEBUG=true sudo -E ./kubearmor -logPath=/tmp/kubearmor.log -enableKubeArmorPolicy -enableKubeArmorHostPolicy -hostVisibility=process,file,network,capabilities -defaultFilePosture block -defaultCapabilitiesPosture block -defaultNetworkPosture block -hostDefaultFilePosture block -hostDefaultCapabilitiesPosture block -hostDefaultNetworkPosture block + cd $(CURDIR); DEBUG=true sudo -E ./kubearmor -logPath=/tmp/kubearmor.log -enableKubeArmorPolicy -enableKubeArmorHostPolicy -hostVisibility=process,file,network,capabilities -defaultFilePosture block -defaultCapabilitiesPosture block -defaultNetworkPosture block -hostDefaultFilePosture block -hostDefaultCapabilitiesPosture block -hostDefaultNetworkPosture block -annotateResources=true .PHONY: run-container run-container: build diff --git a/pkg/KubeArmorController/informer/nodewatcher.go b/pkg/KubeArmorController/informer/nodewatcher.go index f90af078dc..8054f5ab23 100644 --- a/pkg/KubeArmorController/informer/nodewatcher.go +++ b/pkg/KubeArmorController/informer/nodewatcher.go @@ -147,5 +147,3 @@ func NodeWatcher(c *kubernetes.Clientset, cluster *types.Cluster, log logr.Logge inf.Run(wait.NeverStop) } - -// add fall back logix for pod annotataions