Skip to content

Commit

Permalink
Merge pull request #14 from VaishnaviHire/update_rhods_1.31
Browse files Browse the repository at this point in the history
Add Authentication overlay for dashboard
  • Loading branch information
VaishnaviHire authored Jul 31, 2023
2 parents 9faa7bc + e1ed9fa commit 3840033
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions components/dashboard/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
const (
ComponentName = "odh-dashboard"
Path = deploy.DefaultManifestPath + "/" + ComponentName + "/base"
PathSupported = deploy.DefaultManifestPath + "/" + ComponentName + "/overlays/authentication"
PathISVSM = deploy.DefaultManifestPath + "/" + ComponentName + "/overlays/apps-onprem"
PathISVAddOn = deploy.DefaultManifestPath + "/" + ComponentName + "/overlays/apps-addon"
PathOVMS = deploy.DefaultManifestPath + "/" + ComponentName + "/modelserving"
Expand Down Expand Up @@ -108,12 +109,23 @@ func (d *Dashboard) ReconcileComponent(owner metav1.Object, cli client.Client, s
}

// Deploy odh-dashboard manifests
err = deploy.DeployManifestsFromPath(owner, cli, ComponentName,
Path,
namespace,
scheme, enabled)
if err != nil {
return err
if platform == deploy.OpenDataHub {
err = deploy.DeployManifestsFromPath(owner, cli, ComponentName,
Path,
namespace,
scheme, enabled)
if err != nil {
return err
}
} else {
// Apply authentication overlay
err = deploy.DeployManifestsFromPath(owner, cli, ComponentName,
PathSupported,
namespace,
scheme, enabled)
if err != nil {
return err
}
}

// ISV handling
Expand Down

0 comments on commit 3840033

Please sign in to comment.