kubearmor/KubeArmor

Expose Prometheus Metrics

Opened this issue · 2 comments

  • Number of Policies Applied
  • Number of Alerts
  • List of Policies
  • Policy active or not

/assign i will solve this issue.

@daemon1024 I would like to work on this.

This should be added in the KubeArmorController pkg. But when running make deploy in k3s or vagrant dev setup I get the same error but KubeArmor built successfully:

vagrant@kubearmor-dev:~/KubeArmor/pkg/KubeArmorController$ make deploy                                                                                                                             
go mod tidy; /home/vagrant/go/bin/controller-gen "crd:trivialVersions=true,preserveUnknownFields=false" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bas
es                                                                                                                                                                                                 
Error: unable to parse option "crd:trivialVersions=true,preserveUnknownFields=false": [unknown argument "trivialVersions" (at <input>:1:16) extra arguments provided: "true,preserveUnknownFields=f
alse" (at <input>:1:17)]
run `controller-gen crd:trivialVersions=true,preserveUnknownFields=false rbac:roleName=manager-role webhook paths=./... output:crd:artifacts:config=config/crd/bases -w` to see all available markers, or `controller-gen crd:trivialVersions=true,preserveUnknownFields=false rbac:roleName=manager-role webhook paths=./... output:crd:artifacts:config=config/crd/bases -h` for usage
make: *** [Makefile:52: manifests] Error 1

Any idea what to do?
Thanks in advance.