Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow only overview dashboard to be visible inside OpenShift developer console #393

Merged
merged 1 commit into from
May 14, 2024

Conversation

vprashar2929
Copy link
Collaborator

This PR restricts visibility to only the power-monitoring-overview dashboard in the OpenShift developer console due to the
console's limitation on per-namespace visualization

Comment on lines 163 to 170
var dashboardLabels k8s.StringMap = k8s.StringMap{
"console.openshift.io/dashboard": "true",
}

// NOTE ommiting the below label when configuring the power-monitoring-by-ns dashboard
if name != nsInfoDashboardName {
dashboardLabels["console.openshift.io/odc-dashboard"] = "true"
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should rather move this code to Overview Dashboard.

…eloper console

This PR restricts visibility to only the power-monitoring-overview dashboard
in the OpenShift developer console due to the
console's limitation on per-namespace visualization

Signed-off-by: Vibhu Prashar <[email protected]>
@sthaha sthaha merged commit 20bbebd into sustainable-computing-io:v1alpha1 May 14, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants