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