Skip to content

Commit c339a3d

Browse files
Merge pull request #72 from gallettilance/ocpbug-42860
OCPBUGS-42860: degraded co operator
2 parents 2c36793 + 18b9914 commit c339a3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/controller/incompatible_operator_controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ func (c *incompatibleOperatorController) getIncompatibleOperators() ([]string, e
138138
logger.Info("Chart or Chart.Metadata is nil")
139139
continue
140140
}
141+
if _, ok := rel.Chart.Metadata.Annotations["olm.properties"]; !ok {
142+
logger.Info("Bundle has no properties")
143+
continue
144+
}
141145
logger = logger.WithValues("bundleName", rel.Labels[bundleNameKey])
142146
props, err := propertyListFromPropertiesAnnotation(rel.Chart.Metadata.Annotations["olm.properties"])
143147
if err != nil {

0 commit comments

Comments
 (0)