Skip to content

Commit

Permalink
Skip catalog discover when operator is not found in OperandRegistry (#…
Browse files Browse the repository at this point in the history
…1050)

Signed-off-by: Daniel Fan <fanyuchensx@gmail.com>
  • Loading branch information
Daniel-Fan authored Jun 3, 2024
1 parent 287eafa commit 330494d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/operator/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,10 @@ func (m *ODLMOperator) GetOperatorNamespace(installMode, namespace string) strin
// GetOperandFromRegistry gets the Operand from the OperandRegistry
func (m *ODLMOperator) GetOperandFromRegistry(ctx context.Context, reg *apiv1alpha1.OperandRegistry, operandName string) (*apiv1alpha1.Operator, error) {
opt := reg.GetOperator(operandName)
if opt == nil {
return nil, nil
}

// Get excluded CatalogSource from annotation
// excluded-catalogsource: catalogsource1, catalogsource2
var excludedCatalogSources []string
Expand Down

0 comments on commit 330494d

Please sign in to comment.