feat: add Kubernetes pod logs component (#17120)
* refactor: rename kubernetes structured metadata table Signed-off-by: Matthew Clarke <mclarke@spotify.com> * feat: add pod logs components Signed-off-by: Matthew Clarke <mclarke@spotify.com> * refactor: more generic proxy token generating Signed-off-by: Matthew Clarke <mclarke@spotify.com> * tests Signed-off-by: Matthew Clarke <mclarke@spotify.com> * chore: changeset Signed-off-by: Matthew Clarke <mclarke@spotify.com> * fix: tsc fix Signed-off-by: Matthew Clarke <mclarke@spotify.com> * docs: api report Signed-off-by: Matthew Clarke <mclarke@spotify.com> * fix: remove event/errors mention Signed-off-by: Matthew Clarke <mclarke@spotify.com> * feat: pending pod conditions Signed-off-by: Matthew Clarke <mclarke@spotify.com> * fix: missed file Signed-off-by: Matthew Clarke <mclarke@spotify.com> * fix: merge master Signed-off-by: Matthew Clarke <mclarke@spotify.com> * fix: remove unneeded code Signed-off-by: Matthew Clarke <mclarke@spotify.com> * feat: add proxy client Signed-off-by: Matthew Clarke <mclarke@spotify.com> * docs: breaking change Signed-off-by: Matthew Clarke <mclarke@spotify.com> * Update plugins/kubernetes/src/api/types.ts Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com> Signed-off-by: Matthew Clarke <matthewclarke47@gmail.com> * Update plugins/kubernetes/src/api/types.ts Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com> Signed-off-by: Matthew Clarke <matthewclarke47@gmail.com> * fix: PR feedback Signed-off-by: Matthew Clarke <mclarke@spotify.com> * fix: test Signed-off-by: Matthew Clarke <mclarke@spotify.com> * fix: PR feedback Signed-off-by: Matthew Clarke <mclarke@spotify.com> * fix: PR feedback Signed-off-by: Matthew Clarke <mclarke@spotify.com> * fix: todo Signed-off-by: Matthew Clarke <mclarke@spotify.com> * fix: api reports Signed-off-by: Matthew Clarke <mclarke@spotify.com> --------- Signed-off-by: Matthew Clarke <mclarke@spotify.com> Signed-off-by: Matthew Clarke <matthewclarke47@gmail.com> Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -61,6 +61,15 @@ class MockKubernetesClient implements KubernetesApi {
|
||||
({ type: type.toLocaleLowerCase('en-US'), resources } as FetchResponse),
|
||||
);
|
||||
}
|
||||
async getPodLogs(_request: {
|
||||
podName: string;
|
||||
namespace: string;
|
||||
clusterName: string;
|
||||
containerName: string;
|
||||
token: string;
|
||||
}): Promise<string> {
|
||||
return await 'some logs';
|
||||
}
|
||||
async getWorkloadsByEntity(
|
||||
_request: WorkloadsByEntityRequest,
|
||||
): Promise<ObjectsByEntityResponse> {
|
||||
|
||||
Reference in New Issue
Block a user