don't double report early alert failures
@@ -750,6 +750,11 @@ var _ = g.Describe("[sig-instrumentation] Prometheus", func() {
"PrometheusRemoteWriteDesiredShards",
}
+ // we exclude alerts that have their own separate tests.
+ for _, alertTest := range allowedalerts.AllAlertTests() {
+ allowedAlertNames = append(allowedAlertNames, alertTest.AlertName())
+ }
+
if isTechPreviewCluster(oc) {
// On a TechPreviewNoUpgrade cluster we must ignore the TechPreviewNoUpgrade and ClusterNotUpgradeable alerts generated by the CVO.
// These two alerts are expected in this case when a cluster is configured to enable Tech Preview features,
