update to just config reading-based

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2025-11-09 18:46:03 -05:00
parent 979f9f6679
commit e3508b0e67
20 changed files with 250 additions and 436 deletions
@@ -14,19 +14,19 @@
* limitations under the License.
*/
import { Observable } from '@backstage/types';
/**
* @public
*/
export interface BackstageInstance {
internalUrl: string;
externalUrl: string;
/** @public */
export interface RootSystemMetadataServicePluginInfo {
readonly pluginId: string;
readonly hosts: (string | { external: string; internal: string })[];
}
/**
* @public
*/
export interface SystemMetadataService {
instances(): Observable<BackstageInstance[]>;
/** @public */
export interface RootSystemMetadataService {
getInstalledPlugins: () => Promise<
ReadonlyArray<RootSystemMetadataServicePluginInfo>
>;
getHosts: () => Promise<
ReadonlyArray<string | { external: string; internal: string }>
>;
}
@@ -289,15 +289,15 @@ export namespace coreServices {
id: 'core.rootInstanceMetadata',
scope: 'root',
});
/**
* Read information about your current Backstage deployment.
* @public
*/
export const systemMetadata = createServiceRef<
import('./SystemMetadataService').SystemMetadataService
export const rootSystemMetadata = createServiceRef<
import('./RootSystemMetadataService').RootSystemMetadataService
>({
id: 'core.systemMetadata',
id: 'core.rootSystemMetadata',
scope: 'root',
});
}
@@ -73,9 +73,9 @@ export type {
SchedulerServiceTaskScheduleDefinitionConfig,
} from './SchedulerService';
export type {
BackstageInstance,
SystemMetadataService,
} from './SystemMetadataService';
RootSystemMetadataServicePluginInfo,
RootSystemMetadataService,
} from './RootSystemMetadataService';
export type {
UrlReaderService,
UrlReaderServiceReadTreeOptions,