Sfoglia il codice sorgente

Merge branch 'develop' into helm

Matt Ray 3 anni fa
parent
commit
9e7aa6ff2e
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      pkg/costmodel/aggregation.go
  2. 1 1
      pkg/costmodel/router.go

+ 1 - 1
pkg/costmodel/aggregation.go

@@ -2231,7 +2231,7 @@ func (a *Accesses) ComputeAllocationHandler(w http.ResponseWriter, r *http.Reque
 	// resolution.
 	// resolution.
 	resolution := qp.GetDuration("resolution", env.GetETLResolution())
 	resolution := qp.GetDuration("resolution", env.GetETLResolution())
 
 
-	// Aggregation is a required comma-separated list of fields by which to
+	// Aggregation is an optional comma-separated list of fields by which to
 	// aggregate results. Some fields allow a sub-field, which is distinguished
 	// aggregate results. Some fields allow a sub-field, which is distinguished
 	// with a colon; e.g. "label:app".
 	// with a colon; e.g. "label:app".
 	// Examples: "namespace", "namespace,label:app"
 	// Examples: "namespace", "namespace,label:app"

+ 1 - 1
pkg/costmodel/router.go

@@ -462,7 +462,7 @@ func (a *Accesses) ClusterCostsOverTime(w http.ResponseWriter, r *http.Request,
 	offset := r.URL.Query().Get("offset")
 	offset := r.URL.Query().Get("offset")
 
 
 	if window == "" {
 	if window == "" {
-		w.Write(WrapData(nil, fmt.Errorf("missing window arguement")))
+		w.Write(WrapData(nil, fmt.Errorf("missing window argument")))
 		return
 		return
 	}
 	}
 	windowDur, err := timeutil.ParseDuration(window)
 	windowDur, err := timeutil.ParseDuration(window)