Skip to content

Commit d253c23

Browse files
committed
Add exceptions for the violating COs
1 parent 969fcc5 commit d253c23

File tree

1 file changed

+47
-2
lines changed
  • pkg/monitortests/clusterversionoperator/legacycvomonitortests

1 file changed

+47
-2
lines changed

pkg/monitortests/clusterversionoperator/legacycvomonitortests/operators.go

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,52 @@ func clusterOperatorIsNotProgressingWhenMachineConfigIs(events monitorapi.Interv
662662
continue
663663
}
664664

665-
except := func(co string, condition *configv1.ClusterOperatorStatusCondition) string {
665+
except := func(co string, reason string) string {
666+
switch co {
667+
case "csi-snapshot-controller":
668+
if reason == "CSISnapshotController_Deploying" {
669+
return "https://issues.redhat.com/browse/OCPBUGS-62624"
670+
}
671+
case "dns":
672+
if reason == "DNSReportsProgressingIsTrue" {
673+
return "https://issues.redhat.com/browse/OCPBUGS-62623"
674+
}
675+
case "image-registry":
676+
if reason == "NodeCADaemonUnavailable" || reason == "DeploymentNotCompleted" {
677+
return "https://issues.redhat.com/browse/OCPBUGS-62626"
678+
}
679+
case "ingress":
680+
if reason == "Reconciling" {
681+
return "https://issues.redhat.com/browse/OCPBUGS-62627"
682+
}
683+
case "kube-storage-version-migrator":
684+
if reason == "KubeStorageVersionMigrator_Deploying" {
685+
return "https://issues.redhat.com/browse/OCPBUGS-62629"
686+
}
687+
case "network":
688+
if reason == "Deploying" {
689+
return "https://issues.redhat.com/browse/OCPBUGS-62630"
690+
}
691+
case "node-tuning":
692+
if reason == "Reconciling" {
693+
return "https://issues.redhat.com/browse/OCPBUGS-62632"
694+
}
695+
case "service-ca":
696+
if reason == "_ManagedDeploymentsAvailable" {
697+
return "https://issues.redhat.com/browse/OCPBUGS-62633"
698+
}
699+
case "storage":
700+
if reason == "GCPPDCSIDriverOperatorCR_GCPPDDriverControllerServiceController_Deploying" ||
701+
reason == "GCPPDCSIDriverOperatorCR_GCPPDDriverNodeServiceController_Deploying" ||
702+
reason == "GCPPD_Deploying" ||
703+
reason == "VolumeDataSourceValidatorDeploymentController_Deploying" {
704+
return "https://issues.redhat.com/browse/OCPBUGS-62634"
705+
}
706+
case "olm":
707+
if reason == "CatalogdDeploymentCatalogdControllerManager_Deploying" {
708+
return "https://issues.redhat.com/browse/OCPBUGS-62635"
709+
}
710+
}
666711
return ""
667712
}
668713

@@ -687,7 +732,7 @@ func clusterOperatorIsNotProgressingWhenMachineConfigIs(events monitorapi.Interv
687732
// if there was any switch, it was wrong/unexpected at some point
688733
failure := fmt.Sprintf("%v", operatorEvent)
689734

690-
exception := except(operatorName, condition)
735+
exception := except(operatorName, condition.Reason)
691736
if exception == "" {
692737
fatal = append(fatal, failure)
693738
} else {

0 commit comments

Comments
 (0)