Skip to content

Commit

Permalink
Merge pull request opendatahub-io#17 from VaishnaviHire/cherry_pick_1_08
Browse files Browse the repository at this point in the history
Sync with upstream
  • Loading branch information
VaishnaviHire authored Aug 1, 2023
2 parents c4795f4 + 2905ac7 commit ed29675
Show file tree
Hide file tree
Showing 15 changed files with 101 additions and 689 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@ spec:
type: string
isEnabled:
type: boolean
kfdefApplications:
items:
type: string
type: array
link:
type: string
provider:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
description: Override and fine tune specific component configurations.
properties:
codeflare:
description: CodeFlare component configuration Require CodeFlare
description: CodeFlare component configuration. Require CodeFlare
operator to be installed before enable component
properties:
enabled:
Expand Down Expand Up @@ -90,7 +90,7 @@ spec:
- enabled
type: object
ray:
description: Ray component configuration Require CodeFlare operator
description: Ray component configuration. Require CodeFlare operator
to be installed before enable component
properties:
enabled:
Expand Down
187 changes: 0 additions & 187 deletions bundle/manifests/kfdef.apps.kubeflow.org_kfdefs.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,6 @@ spec:
displayName: Conditions
path: conditions
version: v1alpha1
- kind: KfDef
name: kfdefs.kfdef.apps.kubeflow.org
version: v1
- kind: OdhApplication
name: odhapplications.dashboard.opendatahub.io
version: v1
Expand All @@ -221,10 +218,6 @@ spec:
- kind: OdhQuickStart
name: odhquickstarts.console.openshift.io
version: v1
required:
- kind: KfDef
name: kfdefs.kfdef.apps.kubeflow.org
version: v1
description: "The Open Data Hub is a machine-learning-as-a-service platform built
on Red Hat's Kubernetes-based OpenShift® Container Platform. Open Data Hub integrates
multiple AI/ML open source components into one operator that can easily be downloaded
Expand Down
15 changes: 8 additions & 7 deletions components/dashboard/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (

const (
ComponentName = "odh-dashboard"
ComponentNameSupported = "rhods-dashboard"
Path = deploy.DefaultManifestPath + "/" + ComponentName + "/base"
PathSupported = deploy.DefaultManifestPath + "/" + ComponentName + "/overlays/authentication"
PathISVSM = deploy.DefaultManifestPath + "/" + ComponentName + "/overlays/apps-onprem"
Expand Down Expand Up @@ -85,7 +86,7 @@ func (d *Dashboard) ReconcileComponent(owner metav1.Object, cli client.Client, s
}
}
// Create ODHDashboardConfig if it doesn't exist already
err = deploy.DeployManifestsFromPath(owner, cli, ComponentName,
err = deploy.DeployManifestsFromPath(owner, cli, ComponentNameSupported,
PathODHDashboardConfig,
namespace,
scheme, enabled)
Expand All @@ -94,7 +95,7 @@ func (d *Dashboard) ReconcileComponent(owner metav1.Object, cli client.Client, s
}

// Apply modelserving config
err = deploy.DeployManifestsFromPath(owner, cli, ComponentName,
err = deploy.DeployManifestsFromPath(owner, cli, ComponentNameSupported,
PathOVMS,
namespace,
scheme, enabled)
Expand All @@ -119,7 +120,7 @@ func (d *Dashboard) ReconcileComponent(owner metav1.Object, cli client.Client, s
}
} else {
// Apply authentication overlay
err = deploy.DeployManifestsFromPath(owner, cli, ComponentName,
err = deploy.DeployManifestsFromPath(owner, cli, ComponentNameSupported,
PathSupported,
namespace,
scheme, enabled)
Expand All @@ -131,7 +132,7 @@ func (d *Dashboard) ReconcileComponent(owner metav1.Object, cli client.Client, s
// ISV handling
switch platform {
case deploy.SelfManagedRhods:
err = deploy.DeployManifestsFromPath(owner, cli, ComponentName,
err = deploy.DeployManifestsFromPath(owner, cli, ComponentNameSupported,
PathISVSM,
namespace,
scheme, enabled)
Expand All @@ -140,7 +141,7 @@ func (d *Dashboard) ReconcileComponent(owner metav1.Object, cli client.Client, s
}
return err
case deploy.ManagedRhods:
err = deploy.DeployManifestsFromPath(owner, cli, ComponentName,
err = deploy.DeployManifestsFromPath(owner, cli, ComponentNameSupported,
PathISVAddOn,
namespace,
scheme, enabled)
Expand All @@ -161,14 +162,14 @@ func (d *Dashboard) ReconcileComponent(owner metav1.Object, cli client.Client, s
if err != nil {
return fmt.Errorf("Error replacing with correct dashboard url for ConsoleLink: %v", err)
}
err = deploy.DeployManifestsFromPath(owner, cli, ComponentName,
err = deploy.DeployManifestsFromPath(owner, cli, ComponentNameSupported,
PathConsoleLink,
namespace,
scheme, enabled)
if err != nil {
return fmt.Errorf("failed to set dashboard consolelink from %s", PathConsoleLink)
}
err = deploy.DeployManifestsFromPath(owner, cli, ComponentName,
err = deploy.DeployManifestsFromPath(owner, cli, ComponentNameSupported,
PathConsoleLink,
namespace,
scheme, enabled)
Expand Down
Loading

0 comments on commit ed29675

Please sign in to comment.