Skip to content

Commit

Permalink
ensure label within length limitation (#1094)
Browse files Browse the repository at this point in the history
Signed-off-by: Allen Li <[email protected]>
  • Loading branch information
qpdpQ authored Oct 22, 2024
1 parent cc65c9e commit 885f03e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/operator/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,9 @@ func (m *ODLMOperator) GetOperandFromRegistry(ctx context.Context, reg *apiv1alp
excludedCatalogSources = strings.Split(reg.Annotations["excluded-catalogsource"], ",")
}
// Get catalog used by ODLM itself by check its own subscription
labelKey := util.GetFirstNCharacter("ibm-odlm"+"."+util.GetOperatorNamespace(), 63)
opts := []client.ListOption{
client.MatchingLabels{fmt.Sprintf("operators.coreos.com/ibm-odlm.%s", util.GetOperatorNamespace()): ""},
client.MatchingLabels{fmt.Sprintf("operators.coreos.com/%s", labelKey): ""},
client.InNamespace(util.GetOperatorNamespace()),
}
odlmCatalog := ""
Expand Down

0 comments on commit 885f03e

Please sign in to comment.