-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.ts
52 lines (43 loc) · 1.51 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import * as gcp from '@pulumi/gcp'
import * as pulumi from '@pulumi/pulumi'
const config = new pulumi.Config()
export const clusterConfig = {
/**
* The name for the GKE cluster. A name will be auto-generated
* for the cluster if the configuation value is undefefined.
*/
name: config.get('clusterName'),
/**
* The number of nodes to create in this cluster.
* Defaults to 4.
*/
nodeCount: config.getNumber('nodeCount') || 3,
/**
* The name of a Google Compute Engine machine type.
* Defaults to n1-standard-8.
*/
machineType: config.get('machineType') || 'n1-standard-16',
}
export const gcloudConfig = {
/**
* The name of the GCP Project to create the cluster inside of.
* Defaults to 'sourcegraph-server' (Sourcegraph Auxiliary).
*/
project: gcp.config.project || 'sourcegraph-server',
/**
* The name of the GCP zone to create the cluster inside of.
* Defaults to 'us-central1-a'.
*/
location: gcp.config.zone || 'us-central1-a',
/**
* The email that you use to sign in to our GCP project.
* Example: [email protected]
*/
username: config.require('gcloudEmail'),
}
/**
* The path to the root of your sourcegraph/deploy-sourcegraph checkout.
* Example: /Users/ggilmore/dev/go/src/github.com/sourcegraph/deploy-sourcegraph
*/
export const deploySourcegraphLocalRoot = config.get('deploySourcegraphLocalRoot')
export const deploySourcegraphRef = config.get('deploySourcegraphRef') || 'master'