Skip to content

Commit

Permalink
cluster: tune managed/selfmanaged user facing name
Browse files Browse the repository at this point in the history
The config map name "addon-managed-odh-catalog" is not pretty
enough. Also self managed variant is ambiguous, does not say it
explicitly.

Change the names to:
- Managed Red Hat OpenShift AI
- Self Managed Red Hat OpenShift AI

Signed-off-by: Yauheni Kaliuta <[email protected]>
  • Loading branch information
ykaliuta committed Jun 12, 2024
1 parent 420da75 commit 1ef3695
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cluster/cluster_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func detectManagedRHODS(cli client.Client) (Platform, error) {
}
if len(expectedCatlogSource.Items) > 0 {
for _, cs := range expectedCatlogSource.Items {
if cs.Name == string(ManagedRhods) {
if cs.Name == string("addon-managed-odh-catalog") {
return ManagedRhods, nil
}
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/cluster/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package cluster

const (
// ManagedRhods defines expected addon catalogsource.
ManagedRhods Platform = "addon-managed-odh-catalog"
ManagedRhods Platform = "Managed Red Hat OpenShift AI"
// SelfManagedRhods defines display name in csv.
SelfManagedRhods Platform = "Red Hat OpenShift AI"
SelfManagedRhods Platform = "Self Managed Red Hat OpenShift AI"
// OpenDataHub defines display name in csv.
OpenDataHub Platform = "Open Data Hub Operator"
// Unknown indicates that operator is not deployed using OLM.
Expand Down

0 comments on commit 1ef3695

Please sign in to comment.