mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 04:55:22 +00:00
remove logic to get a gcp project
Signed-off-by: Shubheksha Jalan <jshubheksha@gmail.com>
This commit is contained in:
@@ -67,7 +67,6 @@ To integrate Heptio Ark with GCP, create an Ark-specific [Service Account][15]:
|
||||
compute.snapshots.create
|
||||
compute.snapshots.useReadOnly
|
||||
compute.snapshots.delete
|
||||
compute.projects.get
|
||||
)
|
||||
|
||||
gcloud iam roles create heptio_ark.server \
|
||||
|
||||
@@ -64,16 +64,6 @@ func (b *blockStore) Init(config map[string]string) error {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
// validate connection
|
||||
res, err := gce.Projects.Get(project).Do()
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
if res == nil {
|
||||
return errors.Errorf("error getting project %q", project)
|
||||
}
|
||||
|
||||
b.gce = gce
|
||||
b.project = project
|
||||
|
||||
|
||||
Reference in New Issue
Block a user