Upgraded all dependencies

This commit is contained in:
alejandro 2025-08-29 15:38:58 +01:00
parent 01919d0ef1
commit 02f364c29b
10 changed files with 1385 additions and 578 deletions

File diff suppressed because it is too large Load diff

View file

@ -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())
}

View file

@ -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...)