Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Skip catalog discover when operator is not found in OperandRegistry
Signed-off-by: Daniel Fan <[email protected]>
  • Loading branch information
Daniel-Fan committed Jun 3, 2024
commit 15011cc6709bad06f693175cfbdcb6d14534adb2
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