feat: Kubernetes cluster plugin (#18760)

* refactor: k8s plugins

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

* feat: add kubernetes cluster plugin

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

* fix: yarn fix

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

* fix: tsc

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

* fix: types

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

* chore: missing changeset

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

* chore: update api report

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

---------

Signed-off-by: Matthew Clarke <mclarke@spotify.com>
This commit is contained in:
Matthew Clarke
2023-10-04 15:31:30 -04:00
committed by GitHub
parent b74f157839
commit 95518765ee
28 changed files with 1158 additions and 7 deletions
@@ -75,7 +75,7 @@ export class KubernetesBackendClient implements KubernetesApi {
return this.handleResponse(response);
}
private async getCluster(clusterName: string): Promise<{
public async getCluster(clusterName: string): Promise<{
name: string;
authProvider: string;
oidcTokenProvider?: string;
+10 -1
View File
@@ -42,9 +42,18 @@ export interface KubernetesApi {
{
name: string;
authProvider: string;
oidcTokenProvider?: string | undefined;
oidcTokenProvider?: string;
}[]
>;
getCluster(clusterName: string): Promise<
| {
name: string;
authProvider: string;
oidcTokenProvider?: string;
dashboardUrl?: string;
}
| undefined
>;
getWorkloadsByEntity(
request: WorkloadsByEntityRequest,
): Promise<ObjectsByEntityResponse>;