refactor: prepare kubernetes backend fan out handler for new endpoint (#11952)

* refactor: prepare kubernetes backend fan out handler for new endpoint

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* add changeset

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* PR api report feedback

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* update api docs

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* fix api report warnings

Signed-off-by: Matthew Clarke <mclarke@spotify.com>
This commit is contained in:
Matthew Clarke
2022-06-15 15:18:35 -04:00
committed by GitHub
parent 1857c85533
commit 0791af993f
19 changed files with 430 additions and 262 deletions
+13 -6
View File
@@ -190,17 +190,24 @@ export interface KubernetesFetchError {
statusCode?: number;
}
// Warning: (ae-missing-release-tag) "KubernetesRequestAuth" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export interface KubernetesRequestAuth {
// (undocumented)
google?: string;
// (undocumented)
oidc?: {
[key: string]: string;
};
}
// Warning: (ae-missing-release-tag) "KubernetesRequestBody" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export interface KubernetesRequestBody {
// (undocumented)
auth?: {
google?: string;
oidc?: {
[key: string]: string;
};
};
auth?: KubernetesRequestAuth;
// (undocumented)
entity: Entity;
}
+8 -6
View File
@@ -29,13 +29,15 @@ import {
} from '@kubernetes/client-node';
import { Entity } from '@backstage/catalog-model';
export interface KubernetesRequestBody {
auth?: {
google?: string;
oidc?: {
[key: string]: string;
};
export interface KubernetesRequestAuth {
google?: string;
oidc?: {
[key: string]: string;
};
}
export interface KubernetesRequestBody {
auth?: KubernetesRequestAuth;
entity: Entity;
}