mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 09:47:54 +00:00
Upgraded all dependencies
This commit is contained in:
parent
01919d0ef1
commit
02f364c29b
10 changed files with 1385 additions and 578 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -54,9 +54,10 @@ func (c *httpAPIClient) Do(ctx context.Context, verb, endpoint string, query url
|
|||
u := *c.baseURL
|
||||
u.Path = path.Join(c.baseURL.Path, endpoint)
|
||||
var reqBody io.Reader
|
||||
if verb == http.MethodGet {
|
||||
switch verb {
|
||||
case http.MethodGet:
|
||||
u.RawQuery = query.Encode()
|
||||
} else if verb == http.MethodPost {
|
||||
case http.MethodPost:
|
||||
reqBody = strings.NewReader(query.Encode())
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ var _ = Describe("Series Registry", func() {
|
|||
}
|
||||
|
||||
for _, tc := range testCases {
|
||||
tc := tc // copy to avoid iteration variable issues
|
||||
// copy to avoid iteration variable issues
|
||||
It(fmt.Sprintf("should build a query for %s", tc.title), func() {
|
||||
By(fmt.Sprintf("composing the query for the %s metric on %v in namespace %s", tc.info, tc.resourceNames, tc.namespace))
|
||||
outputQuery, found := registry.QueryForMetric(tc.info, tc.namespace, tc.metricSelector, tc.resourceNames...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue