Kubeslice Worker Operator Opensource Repository: The KubeSlice Worker Operator is a Kubernetes operator that manages the lifecycle of KubeSlice worker clusters.
Adds a new metric kubeslice_netpol_violations_active in netpol reconciler. This is a guage which shows number of active violations in netpol.
Also fixed a bug in main.go where serviceimport metric was not intiialized
Type of change
Please delete options that are not relevant.
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a helm chart update (eg: CRD changes)
[x] E2e not required (eg: Updates in test cases)
How Has This Been Tested?
[x] Create Slice with isolation enabled. Adjust the netpol manually to trigger the violation and verify the metrics.
Description
Adds a new metric
kubeslice_netpol_violations_active
in netpol reconciler. This is a guage which shows number of active violations in netpol. Also fixed a bug in main.go where serviceimport metric was not intiializedType of change
Please delete options that are not relevant.
How Has This Been Tested?
Checklist:
go fmt