Skip to content

Commit

Permalink
Merge pull request #30 from malscent/main
Browse files Browse the repository at this point in the history
Updated Image generation on GCP
  • Loading branch information
malscent authored Mar 26, 2021
2 parents 9976f9e + f999fd4 commit 271b076
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gcp/couchbase-enterprise-edition-byol/couchbase.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import naming

def GenerateConfig(context):
license = 'byol'
license = '-ee-byol'

config={}
config['resources'] = []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import naming

def GenerateConfig(context):
license = 'hourly-pricing'
license = '-ee-hourly-pricing'

config={}
config['resources'] = []
Expand Down
8 changes: 4 additions & 4 deletions gcp/shared/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,15 @@ def GenerateStartupScript(context, runtimeconfigName):

def _SyncGatewayImageUrl(license, useFamily):
if useFamily:
return URL_BASE + 'couchbase-public/global/images/family/couchbase-sync-gateway-ee-' + license
return URL_BASE + 'couchbase-public/global/images/family/couchbase-sync-gateway' + license
else:
return URL_BASE + 'couchbase-public/global/images/couchbase-sync-gateway-ee-' + license + '-v20200923'
return URL_BASE + 'couchbase-public/global/images/couchbase-sync-gateway' + license + '-v20200923'

def _ServerImageUrl(license, useFamily):
if (useFamily):
return URL_BASE + 'couchbase-public/global/images/family/couchbase-server-ee-' + license
return URL_BASE + 'couchbase-public/global/images/family/couchbase-server' + license
else:
return URL_BASE + 'couchbase-public/global/images/couchbase-server-ee-' + license + '-v20200923'
return URL_BASE + 'couchbase-public/global/images/couchbase-server' + license + '-v20200923'

def _WaiterSuccessPath(clusterName, groupName):
return 'status/clusters/%s/groups/%s/success' % (clusterName, groupName)
Expand Down

0 comments on commit 271b076

Please sign in to comment.