Skip to content

Commit 59d5b80

Browse files
bvliucopybara-github
authored andcommitted
Update CSQL create command.
PiperOrigin-RevId: 838913413
1 parent 5b17475 commit 59d5b80

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

perfkitbenchmarker/providers/gcp/gcp_relational_db.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ class GCPRelationalDb(relational_db.BaseRelationalDb):
212212
213213
This class contains logic required to provision and teardown the database.
214214
Currently, the database will be open to the world (0.0.0.0/0) which is not
215-
ideal; however, a password is still required to connect. Currently only
216-
MySQL 5.7 and Postgres 9.6 are supported.
215+
ideal; however, a password is still required to connect.
217216
"""
218217

219218
CLOUD = provider_info.GCP
@@ -298,12 +297,11 @@ def _CreateGcloudSqlInstance(self):
298297
cmd_string.append('--no-backup')
299298
cmd = util.GcloudCommand(*cmd_string)
300299
cmd.flags['project'] = self.project
300+
# Needed for labels and allocated-ip-range-name
301301
cmd.use_beta_gcloud = True
302302

303303
if self.spec.db_tier:
304304
cmd.flags['edition'] = self.spec.db_tier
305-
cmd.use_alpha_gcloud = True
306-
cmd.use_beta_gcloud = False
307305
if relational_db.ENABLE_DATA_CACHE.value:
308306
cmd.flags['enable-data-cache'] = True
309307
else:

0 commit comments

Comments
 (0)