Skip to content

Commit

Permalink
disable: modelmesh-monitoring (opendatahub-io#681)
Browse files Browse the repository at this point in the history
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
  • Loading branch information
zdtsw authored Oct 31, 2023
1 parent 890da22 commit c88d84d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions components/modelmeshserving/modelmeshserving.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (
)

var (
ComponentName = "model-mesh"
Path = deploy.DefaultManifestPath + "/" + ComponentName + "/overlays/odh"
monitoringPath = deploy.DefaultManifestPath + "/" + "modelmesh-monitoring/base"
ComponentName = "model-mesh"
Path = deploy.DefaultManifestPath + "/" + ComponentName + "/overlays/odh"
// monitoringPath = deploy.DefaultManifestPath + "/" + "modelmesh-monitoring/base"
DependentComponentName = "odh-model-controller"
DependentPath = deploy.DefaultManifestPath + "/" + DependentComponentName + "/base"
)
Expand Down Expand Up @@ -139,15 +139,15 @@ func (m *ModelMeshServing) ReconcileComponent(cli client.Client, owner metav1.Ob
if err != nil {
return err
}
var monitoringNamespace string
if dscInit.Spec.Monitoring.Namespace != "" {
monitoringNamespace = dscInit.Spec.Monitoring.Namespace
} else {
monitoringNamespace = dscispec.ApplicationsNamespace
}

// If modelmesh is deployed successfully, deploy modelmesh-monitoring
err = deploy.DeployManifestsFromPath(cli, owner, monitoringPath, monitoringNamespace, ComponentName, enabled)
// var monitoringNamespace string
// if dscInit.Spec.Monitoring.Namespace != "" {
// monitoringNamespace = dscInit.Spec.Monitoring.Namespace
// } else {
// monitoringNamespace = dscispec.ApplicationsNamespace
// }

//// If modelmesh is deployed successfully, deploy modelmesh-monitoring
// err = deploy.DeployManifestsFromPath(cli, owner, monitoringPath, monitoringNamespace, ComponentName, enabled)

return err
}
Expand Down

0 comments on commit c88d84d

Please sign in to comment.