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_serviceimport_endpoints in serviceimport reconciler with corresponding UTs. This is a guage which shows number of active endpoints for each serviceimport in a slice.
Also made some minor label changes to existing metrics
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 a ServiceExport on a slice to expose bookinfo details pod. Verify that the serviceimport comes up with correct list of endpoints. Then port-forward the operator pod to view prometheus metrics exposed. From the metrics page, verify that the above metric is present with the correct value.
Description
Adds a new metric
kubeslice_serviceimport_endpoints
in serviceimport reconciler with corresponding UTs. This is a guage which shows number of active endpoints for each serviceimport in a slice.Also made some minor label changes to existing metrics
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Checklist:
go fmt