Scopes: Use Grafana namespace instead of default (#88451)

This commit is contained in:
Bogdan Matei 2024-05-29 23:48:17 +03:00 committed by GitHub
parent f5346e3e2a
commit 011becb39e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,7 @@ import { css, cx } from '@emotion/css';
import React from 'react';
import { AppEvents, GrafanaTheme2, Scope, ScopeSpec, ScopeTreeItemSpec } from '@grafana/data';
import { getAppEvents, getBackendSrv } from '@grafana/runtime';
import { config, getAppEvents, getBackendSrv } from '@grafana/runtime';
import {
SceneComponentProps,
SceneObjectBase,
@ -32,7 +32,7 @@ export class ScopesFiltersScene extends SceneObjectBase<ScopesFiltersSceneState>
private serverGroup = 'scope.grafana.app';
private serverVersion = 'v0alpha1';
private serverNamespace = 'default';
private serverNamespace = config.namespace;
private server = new ScopedResourceClient<ScopeSpec, 'Scope'>({
group: this.serverGroup,