Skip to content

Commit

Permalink
fix: for Managed cluster, we need another namespace or it will be (op…
Browse files Browse the repository at this point in the history
…endatahub-io#1146)

deteced as self-managed

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
  • Loading branch information
zdtsw authored Jul 30, 2024
1 parent 00af708 commit ae9133c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/cluster_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func detectSelfManaged(ctx context.Context, cli client.Client) (Platform, error)
// detectManagedRHODS checks if catsrc CR add-on exists ManagedRhods.
func detectManagedRHODS(ctx context.Context, cli client.Client) (Platform, error) {
catalogSource := &ofapiv1alpha1.CatalogSource{}
err := cli.Get(ctx, client.ObjectKey{Name: "addon-managed-odh-catalog", Namespace: "openshift-marketplace"}, catalogSource)
err := cli.Get(ctx, client.ObjectKey{Name: "addon-managed-odh-catalog", Namespace: "redhat-ods-operator"}, catalogSource)
if err != nil {
return Unknown, client.IgnoreNotFound(err)
}
Expand Down

0 comments on commit ae9133c

Please sign in to comment.