Skip to content

Commit

Permalink
fix(monitoring): only set prometheus as part-of label from component (#…
Browse files Browse the repository at this point in the history
…135)

this will reduced necessary updates on configmap

Signed-off-by: Wen Zhou <[email protected]>
  • Loading branch information
zdtsw authored Nov 23, 2023
1 parent 6ecf2b5 commit 13c28ec
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/codeflare/codeflare.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (c *CodeFlare) ReconcileComponent(cli client.Client, owner metav1.Object, d
if err = deploy.DeployManifestsFromPath(cli, owner,
filepath.Join(deploy.DefaultManifestPath, "monitoring", "prometheus", "apps"),
dscispec.Monitoring.Namespace,
ComponentName+"prometheus", true); err != nil {
"prometheus", true); err != nil {
return err
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/dashboard/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (d *Dashboard) ReconcileComponent(cli client.Client, owner metav1.Object, d
if err = deploy.DeployManifestsFromPath(cli, owner,
filepath.Join(deploy.DefaultManifestPath, "monitoring", "prometheus", "apps"),
dscispec.Monitoring.Namespace,
ComponentName+"prometheus", true); err != nil {
"prometheus", true); err != nil {
return err
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/datasciencepipelines/datasciencepipelines.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (d *DataSciencePipelines) ReconcileComponent(cli client.Client, owner metav
if err = deploy.DeployManifestsFromPath(cli, owner,
filepath.Join(deploy.DefaultManifestPath, "monitoring", "prometheus", "apps"),
dscispec.Monitoring.Namespace,
ComponentName+"prometheus", true); err != nil {
"prometheus", true); err != nil {
return err
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/modelmeshserving/modelmeshserving.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (m *ModelMeshServing) ReconcileComponent(cli client.Client, owner metav1.Ob
if err = deploy.DeployManifestsFromPath(cli, owner,
filepath.Join(deploy.DefaultManifestPath, "monitoring", "prometheus", "apps"),
dscispec.Monitoring.Namespace,
ComponentName+"prometheus", true); err != nil {
"prometheus", true); err != nil {
return err
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/ray/ray.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (r *Ray) ReconcileComponent(cli client.Client, owner metav1.Object, dscispe
if err = deploy.DeployManifestsFromPath(cli, owner,
filepath.Join(deploy.DefaultManifestPath, "monitoring", "prometheus", "apps"),
dscispec.Monitoring.Namespace,
ComponentName+"prometheus", true); err != nil {
"prometheus", true); err != nil {
return err
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/workbenches/workbenches.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (w *Workbenches) ReconcileComponent(cli client.Client, owner metav1.Object,
if err = deploy.DeployManifestsFromPath(cli, owner,
filepath.Join(deploy.DefaultManifestPath, "monitoring", "prometheus", "apps"),
dscispec.Monitoring.Namespace,
ComponentName+"prometheus", true); err != nil {
"prometheus", true); err != nil {
return err
}
}
Expand Down

0 comments on commit 13c28ec

Please sign in to comment.