Update plugins/kubernetes-backend/src/service/KubernetesProxy.ts
Co-authored-by: Jamie Klassen <jklassen@vmware.com> Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
This commit is contained in:
committed by
Fredrik Adelöw
parent
033a717b0a
commit
a05aa6cc69
@@ -145,14 +145,6 @@ export class KubernetesProxy {
|
||||
uri: string,
|
||||
req: ExpressRequest,
|
||||
): Promise<Response> {
|
||||
const bearerToken = details.serviceAccountToken;
|
||||
|
||||
if (!bearerToken) {
|
||||
this.logger.error('Invalid service account token');
|
||||
|
||||
throw new AuthenticationError('Invalid service account token');
|
||||
}
|
||||
|
||||
const { method, headers, body } = req;
|
||||
|
||||
const reqData: RequestInit = {
|
||||
|
||||
Reference in New Issue
Block a user