Skip to content

Commit e2499c0

Browse files
authored
Merge pull request #5413 from QiWang19/revert-guard
OCPBUGS-64822: remove check for conflicting ClusterImagePolicy in syncUpgradeableStatus
2 parents 50712a0 + 716253b commit e2499c0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pkg/operator/status.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -280,16 +280,6 @@ func (optr *Operator) syncUpgradeableStatus(co *configv1.ClusterOperator) error
280280
coStatusCondition.Reason = "ClusterOnCgroupV1"
281281
coStatusCondition.Message = "Cluster is using deprecated cgroup v1 and is not upgradable. Please update the `CgroupMode` in the `nodes.config.openshift.io` object to 'v2'. Once upgraded, the cluster cannot be changed back to cgroup v1"
282282
}
283-
284-
// Check for ClusterImagePolicy named "openshift" which conflicts with the cluster default ClusterImagePolicy object
285-
if _, err = optr.configClient.ConfigV1().ClusterImagePolicies().Get(context.TODO(), "openshift", metav1.GetOptions{}); err == nil {
286-
coStatusCondition.Status = configv1.ConditionFalse
287-
coStatusCondition.Reason = "ConflictingClusterImagePolicy"
288-
coStatusCondition.Message = "ClusterImagePolicy resource named 'openshift' conflicts with the cluster default ClusterImagePolicy object and blocks upgrades. Please delete the 'openshift' ClusterImagePolicy resource and reapply it with a different name if needed"
289-
} else if !apierrors.IsNotFound(err) {
290-
return err
291-
}
292-
293283
var degraded, interrupted bool
294284
for _, pool := range pools {
295285
interrupted = isPoolStatusConditionTrue(pool, mcfgv1.MachineConfigPoolBuildInterrupted)

0 commit comments

Comments
 (0)