Skip to content

Commit

Permalink
Merge pull request #80 from populationgenomics/service-account
Browse files Browse the repository at this point in the history
Add a --service-account parameter to `hailctl dataproc start`
  • Loading branch information
vladsavelyev authored Mar 9, 2021
2 parents c1ee5d6 + 05fad42 commit 47eefe3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hail/python/hailtop/hailctl/dataproc/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def init_parser(parser):
parser.add_argument('--bucket', type=str,
help='The Google Cloud Storage bucket to use for cluster staging (just the bucket name, no gs:// prefix).')
parser.add_argument('--network', type=str, help='the network for all nodes in this cluster')
parser.add_argument('--service-account', type=str, help='The Google Service Account to use for cluster creation (default to the Compute Engine service account).')
parser.add_argument('--master-tags', type=str, help='comma-separated list of instance tags to apply to the mastern node')

parser.add_argument('--wheel', help='Non-default Hail installation. Warning: experimental.')
Expand Down Expand Up @@ -357,6 +358,8 @@ def disk_size(size):
cmd.append('--max-age={}'.format(args.max_age))
if args.expiration_time:
cmd.append('--expiration_time={}'.format(args.expiration_time))
if args.service_account:
cmd.append('--service-account={}'.format(args.service_account))

cmd.extend(pass_through_args)

Expand Down

0 comments on commit 47eefe3

Please sign in to comment.