Skip to content

Commit 459bb16

Browse files
Merge pull request #30541 from hongkailiu/OCPBUGS-23746-non-upgrade
NO-JIRA: Add a new exception for CO's Available=False in non-upgrade tests
2 parents 8995472 + 1cce29b commit 459bb16

File tree

1 file changed

+8
-0
lines changed
  • pkg/monitortests/clusterversionoperator/legacycvomonitortests

1 file changed

+8
-0
lines changed

pkg/monitortests/clusterversionoperator/legacycvomonitortests/operators.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ func testStableSystemOperatorStateTransitions(events monitorapi.Intervals, clien
9797
if operator == "image-registry" {
9898
return "Image-registry operator is allowed to have Available=False on a non-upgrade scenario for now", nil
9999
}
100+
if operator == "openshift-apiserver" &&
101+
(condition.Reason == "APIServerDeployment_NoDeployment" ||
102+
condition.Reason == "APIServerDeployment_NoPod" ||
103+
condition.Reason == "APIServerDeployment_PreconditionNotFulfilled" ||
104+
condition.Reason == "APIServerDeployment_UnavailablePod" ||
105+
condition.Reason == "APIServices_Error") {
106+
return "https://issues.redhat.com/browse/OCPBUGS-23746", nil
107+
}
100108
return "", nil
101109
}
102110
if condition.Type == configv1.OperatorDegraded && condition.Status == configv1.ConditionTrue {

0 commit comments

Comments
 (0)