Skip to content

Commit

Permalink
Merge pull request #926 from shubheksha/fix/329-remove-get-project-gcp
Browse files Browse the repository at this point in the history
Remove logic to get a gcp project
  • Loading branch information
ncdc authored Oct 11, 2018
2 parents d7dfffa + 611bc92 commit fe51be6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion docs/gcp-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
10 changes: 0 additions & 10 deletions pkg/cloudprovider/gcp/block_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fe51be6

Please sign in to comment.