فهرست منبع

Code comments

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
 	NetworkInternetEgressRecorder prometheus.Gauge
 
-	// Flow Control
+	// Concurrent Flow Control - Manages the run state of the metric emitter
 	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
+// allows our k8s proxy methods to emulate a List() request to k8s API
 func wrapAsObjectItems(items interface{}) map[string]interface{} {
 	return map[string]interface{}{
 		"items": items,