Matt Bolt 4 роки тому
батько
коміт
ed0bfb0957
2 змінених файлів з 2 додано та 1 видалено
  1. 1 1
      pkg/costmodel/metrics.go
  2. 1 0
      pkg/costmodel/router.go

+ 1 - 1
pkg/costmodel/metrics.go

@@ -250,7 +250,7 @@ type CostModelMetricsEmitter struct {
 	NetworkRegionEgressRecorder   prometheus.Gauge
 	NetworkRegionEgressRecorder   prometheus.Gauge
 	NetworkInternetEgressRecorder prometheus.Gauge
 	NetworkInternetEgressRecorder prometheus.Gauge
 
 
-	// Flow Control
+	// Concurrent Flow Control - Manages the run state of the metric emitter
 	runState atomic.AtomicRunState
 	runState atomic.AtomicRunState
 }
 }
 
 

+ 1 - 0
pkg/costmodel/router.go

@@ -355,6 +355,7 @@ func WrapDataWithMessageAndWarning(data interface{}, err error, message, warning
 }
 }
 
 
 // wrapAsObjectItems wraps a slice of items into an object containing a single items list
 // wrapAsObjectItems wraps a slice of items into an object containing a single items list
+// allows our k8s proxy methods to emulate a List() request to k8s API
 func wrapAsObjectItems(items interface{}) map[string]interface{} {
 func wrapAsObjectItems(items interface{}) map[string]interface{} {
 	return map[string]interface{}{
 	return map[string]interface{}{
 		"items": items,
 		"items": items,