Bump to latest k8s versions in ci workflow (#2507)

* Bump to latest k8s versions in ci workflow

* Drop deprecated api server metric

https://github.com/kubernetes/kubernetes/pull/118959

* test: Extend time for poll for ksm replicas
This commit is contained in:
Philip Gough
2024-09-10 10:12:25 +01:00
committed by GitHub
parent bbabb7956a
commit 1d5dec22b9
9 changed files with 29 additions and 11 deletions

View File

@@ -201,7 +201,7 @@ func TestFailedRuleEvaluations(t *testing.T) {
}()
// Wait for the 2 replicas of kube-state-metrics to be successfully scraped.
err = wait.Poll(5*time.Second, 1*time.Minute, func() (bool, error) {
err = wait.Poll(5*time.Second, 2*time.Minute, func() (bool, error) {
n, err := promClient.query(`up{job="kube-state-metrics"} == 1`)
if err != nil {
return false, err