diff --git a/plugins/kubernetes-backend/src/auth/GoogleServiceAccountStrategy.test.ts b/plugins/kubernetes-backend/src/auth/GoogleServiceAccountStrategy.test.ts index 57181f61c6..d70cba784d 100644 --- a/plugins/kubernetes-backend/src/auth/GoogleServiceAccountStrategy.test.ts +++ b/plugins/kubernetes-backend/src/auth/GoogleServiceAccountStrategy.test.ts @@ -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({ diff --git a/plugins/kubernetes-backend/src/auth/GoogleServiceAccountStrategy.ts b/plugins/kubernetes-backend/src/auth/GoogleServiceAccountStrategy.ts index a6ffdc00e8..2e2af018bc 100644 --- a/plugins/kubernetes-backend/src/auth/GoogleServiceAccountStrategy.ts +++ b/plugins/kubernetes-backend/src/auth/GoogleServiceAccountStrategy.ts @@ -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(