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:
@@ -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;
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user