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
+6
View File
@@ -116,6 +116,12 @@ class MockKubernetesClient implements KubernetesApi {
return [{ name: 'mock-cluster', authProvider: 'serviceAccount' }];
}
async getCluster(
_clusterName: string,
): Promise<{ name: string; authProvider: string }> {
return { name: 'mock-cluster', authProvider: 'serviceAccount' };
}
async proxy(_options: { clusterName: String; path: String }): Promise<any> {
return {
kind: 'Namespace',