@@ -13,7 +13,7 @@ import (
13
13
14
14
var clusterPtr , gRPCPtr , logPathPtr * string
15
15
var enableKubeArmorPolicyPtr , enableKubeArmorHostPolicyPtr , enableKubeArmorVMPtr , coverageTestPtr , enableK8sEnv , tlsEnabled * bool
16
- var defaultFilePosturePtr , defaultCapabilitiesPosturePtr , defaultNetworkPosturePtr , hostDefaultCapabilitiesPosturePtr , hostDefaultNetworkPosturePtr , hostDefaultFilePosturePtr , procFsMountPtr * string
16
+ var defaultFilePosturePtr , defaultCapabilitiesPosturePtr , defaultNetworkPosturePtr , hostDefaultCapabilitiesPosturePtr , hostDefaultNetworkPosturePtr , hostDefaultFilePosturePtr * string
17
17
18
18
func init () {
19
19
// options (string)
@@ -32,8 +32,6 @@ func init() {
32
32
hostDefaultNetworkPosturePtr = flag .String ("hostDefaultNetworkPosture" , "block" , "configuring default enforcement action in global network context {allow|audit|block}" )
33
33
hostDefaultCapabilitiesPosturePtr = flag .String ("hostDefaultCapabilitiesPosture" , "block" , "configuring default enforcement action in global capability context {allow|audit|block}" )
34
34
35
- procFsMountPtr = flag .String ("procfsMount" , "/proc" , "Path to the BPF filesystem to use for storing maps" )
36
-
37
35
// options (boolean)
38
36
enableKubeArmorPolicyPtr = flag .Bool ("enableKubeArmorPolicy" , true , "enabling KubeArmorPolicy" )
39
37
enableKubeArmorHostPolicyPtr = flag .Bool ("enableKubeArmorHostPolicy" , true , "enabling KubeArmorHostPolicy" )
@@ -44,7 +42,6 @@ func init() {
44
42
45
43
// options (boolean)
46
44
coverageTestPtr = flag .Bool ("coverageTest" , false , "enabling CoverageTest" )
47
-
48
45
}
49
46
50
47
// TestMain - test to drive external testing coverage
@@ -67,7 +64,6 @@ func TestMain(t *testing.T) {
67
64
fmt .Sprintf ("-enableKubeArmorHostPolicy=%s" , strconv .FormatBool (* enableKubeArmorHostPolicyPtr )),
68
65
fmt .Sprintf ("-coverageTest=%s" , strconv .FormatBool (* coverageTestPtr )),
69
66
fmt .Sprintf ("-tlsEnabled=%s" , strconv .FormatBool (* tlsEnabled )),
70
- fmt .Sprintf ("-procfsMount=%s" , * procFsMountPtr ),
71
67
}
72
68
73
69
t .Log ("[INFO] Executed KubeArmor" )
0 commit comments