diff --git a/.changeset/hip-ways-shop.md b/.changeset/hip-ways-shop.md new file mode 100644 index 0000000000..74646b7b3a --- /dev/null +++ b/.changeset/hip-ways-shop.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-kubernetes': patch +--- + +expose detectErrors function publicly diff --git a/plugins/kubernetes/api-report.md b/plugins/kubernetes/api-report.md index 99bee06165..19b25b1b02 100644 --- a/plugins/kubernetes/api-report.md +++ b/plugins/kubernetes/api-report.md @@ -108,6 +108,38 @@ export interface DeploymentResources { replicaSets: V1ReplicaSet[]; } +// Warning: (ae-missing-release-tag) "DetectedError" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export interface DetectedError { + // (undocumented) + cluster: string; + // Warning: (ae-forgotten-export) The symbol "ErrorDetectableKind" needs to be exported by the entry point index.d.ts + // + // (undocumented) + kind: ErrorDetectableKind; + // (undocumented) + message: string[]; + // (undocumented) + names: string[]; + // Warning: (ae-forgotten-export) The symbol "ErrorSeverity" needs to be exported by the entry point index.d.ts + // + // (undocumented) + severity: ErrorSeverity; +} + +// Warning: (ae-missing-release-tag) "DetectedErrorsByCluster" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export type DetectedErrorsByCluster = Map; + +// Warning: (ae-missing-release-tag) "detectErrors" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export const detectErrors: ( + objects: ObjectsByEntityResponse, +) => DetectedErrorsByCluster; + // Warning: (ae-missing-release-tag) "EntityKubernetesContent" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) // // @public (undocumented) diff --git a/plugins/kubernetes/src/index.ts b/plugins/kubernetes/src/index.ts index 688d52d7e1..39a966cd1f 100644 --- a/plugins/kubernetes/src/index.ts +++ b/plugins/kubernetes/src/index.ts @@ -30,5 +30,6 @@ export * from './api'; export * from './kubernetes-auth-provider'; export * from './utils/clusterLinks'; export * from './components'; +export * from './error-detection'; export * from './hooks'; export * from './types';