remove explicit scopes
Signed-off-by: Raghunandan Balachandran <raghunandan@spotify.com>
This commit is contained in:
@@ -100,7 +100,6 @@ describe('GoogleServiceAccountStrategy', () => {
|
||||
|
||||
expect(MockedClusterManagerClient).toHaveBeenCalledWith({
|
||||
credentials: serviceAccountKey,
|
||||
scopes: ['https://www.googleapis.com/auth/container.readonly'],
|
||||
});
|
||||
expect(mockGetAccessToken).toHaveBeenCalled();
|
||||
expect(credential).toEqual({
|
||||
|
||||
@@ -65,7 +65,6 @@ export class GoogleServiceAccountStrategy implements AuthenticationStrategy {
|
||||
|
||||
client = new container.v1.ClusterManagerClient({
|
||||
credentials: credentialsObject,
|
||||
scopes: ['https://www.googleapis.com/auth/container.readonly'],
|
||||
});
|
||||
} catch (error) {
|
||||
throw new Error(
|
||||
|
||||
Reference in New Issue
Block a user