test/e2e/upgrade/alert: Allow AggregatedAPIDown to unblock 4.7->4.8 CI
We're getting:
alert AggregatedAPIDown fired for 210 seconds with labels: {name="v1beta1.metrics.k8s.io", namespace="default", severity="warning"}
and such pretty consistently in those jobs.  Tracked in [1].  Until
that gets fixed, ignore the alert, so we are more likely to notice
other breakage.
[1]:
@@ -54,6 +54,10 @@ func (t *UpgradeTest) Setup(f *framework.Framework) {
func (t *UpgradeTest) Test(f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType) {
tolerateDuringSkew := exutil.TolerateVersionSkewInTests()
firingAlertsWithBugs := helper.MetricConditions{
+ {
+ Selector: map[string]string{"alertname": "KubePodNotReady", "namespace": "openshift-kube-apiserver-operator"},
+ Text: "https://bugzilla.redhat.com/show_bug.cgi?id=1939580",
+ },
{
Selector: map[string]string{"alertname": "KubePodNotReady", "namespace": "openshift-kube-apiserver-operator"},
Text: "https://bugzilla.redhat.com/show_bug.cgi?id=1939580",
@@ -85,6 +89,13 @@ func (t *UpgradeTest) Test(f *framework.Framework, done <-chan struct{}, upgrade
return framework.ProviderIs("gce")
},
},
+ {
+ Selector: map[string]string{"alertname": "AggregatedAPIDown", "namespace": "default", "name": "v1beta1.metrics.k8s.io"},
+ Text: "https://bugzilla.redhat.com/show_bug.cgi?id=1970624",
+ Matches: func(_ *model.Sample) bool {
+ return framework.ProviderIs("gce")
+ },
+ },
}
pendingAlertsWithBugs := helper.MetricConditions{
