mirror of https://github.com/kubernetes/kops.git
Merge pull request #16355 from sl1pm4t/fix-gcs-client-scope
gce: Update GCE storage service scope to DevstorageFullControlScope to resolve permission error.
This commit is contained in:
commit
97328165f0
|
@ -418,7 +418,7 @@ func (c *VFSContext) getGCSClient(ctx context.Context) (*storage.Service, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Should we fall back to read-only?
|
// TODO: Should we fall back to read-only?
|
||||||
scope := storage.DevstorageReadWriteScope
|
scope := storage.DevstorageFullControlScope
|
||||||
|
|
||||||
gcsClient, err := storage.NewService(ctx, option.WithScopes(scope))
|
gcsClient, err := storage.NewService(ctx, option.WithScopes(scope))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue