forked from spinnaker/deck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js
124 lines (122 loc) · 3.59 KB
/
settings.js
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
'use strict';
var feedbackUrl = process.env.FEEDBACK_URL;
var gateHost = process.env.API_HOST || 'http://localhost:8084';
var bakeryDetailUrl = process.env.BAKERY_DETAIL_URL || (gateHost + '/bakery/logs/{{context.region}}/{{context.status.resourceId}}');
var authEndpoint = process.env.AUTH_ENDPOINT || (gateHost + '/auth/user');
var authEnabled = process.env.AUTH_ENABLED === 'false' ? false : true;
var netflixMode = process.env.NETFLIX_MODE === 'true' ? true : false;
var chaosEnabled = netflixMode || process.env.CHAOS_ENABLED === 'true' ? true : false;
var fiatEnabled = process.env.FIAT_ENABLED === 'true' ? true : false;
var entityTagsEnabled = process.env.ENTITY_TAGS_ENABLED === 'true' ? true : false;
var debugEnabled = process.env.DEBUG_ENABLED === 'false' ? false : true;
window.spinnakerSettings = {
checkForUpdates: true,
debugEnabled: debugEnabled,
defaultProviders: ['aws', 'gce', 'azure', 'cf', 'kubernetes', 'titus', 'openstack'],
feedbackUrl: feedbackUrl,
gateUrl: gateHost,
bakeryDetailUrl: bakeryDetailUrl,
authEndpoint: authEndpoint,
pollSchedule: 30000,
defaultTimeZone: process.env.TIMEZONE || 'America/Los_Angeles', // see http://momentjs.com/timezone/docs/#/data-utilities/
defaultCategory: 'serverGroup',
defaultInstancePort: 80,
providers: {
azure: {
defaults: {
account: 'azure-test',
region: 'westus'
},
},
aws: {
defaults: {
account: 'test',
region: 'us-east-1',
iamRole: 'BaseIAMRole',
},
defaultSecurityGroups: [],
loadBalancers: {
// if true, VPC load balancers will be created as internal load balancers if the selected subnet has a purpose
// tag that starts with "internal"
inferInternalFlagFromSubnet: false,
},
useAmiBlockDeviceMappings: false,
},
gce: {
defaults: {
account: 'my-google-account',
region: 'us-central1',
zone: 'us-central1-f',
},
associatePublicIpAddress: true,
},
titus: {
defaults: {
account: 'titustestvpc',
region: 'us-east-1',
iamProfile: '{{application}}InstanceProfile',
},
},
openstack: {
defaults: {
account: 'test',
region: 'us-west-1'
},
},
kubernetes: {
defaults: {
account: 'my-kubernetes-account',
namespace: 'default',
proxy: 'localhost:8001',
internalDNSNameTemplate: '{{name}}.{{namespace}}.svc.cluster.local',
},
},
appengine: {
defaults: {
account: 'my-appengine-account',
editLoadBalancerStageEnabled: false,
}
}
},
whatsNew: {
gistId: '32526cd608db3d811b38',
fileName: 'news.md',
},
notifications: {
email: {
enabled: true,
},
hipchat: {
enabled: true,
botName: 'Skynet T-800'
},
sms: {
enabled: true,
},
slack: {
enabled: true,
botName: 'spinnakerbot'
}
},
authEnabled: authEnabled,
authTtl: 600000,
gitSources: ['stash', 'github', 'bitbucket'],
triggerTypes: ['git', 'pipeline', 'docker', 'cron', 'jenkins', 'travis'],
feature: {
entityTags: entityTagsEnabled,
fiatEnabled: fiatEnabled,
pipelines: true,
notifications: false,
fastProperty: true,
vpcMigrator: true,
clusterDiff: false,
roscoMode: false,
netflixMode: netflixMode,
chaosMonkey: chaosEnabled,
// whether stages affecting infrastructure (like "Create Load Balancer") should be enabled or not
infrastructureStages: process.env.INFRA_STAGES === 'enabled',
jobs: false,
snapshots: false,
travis: false,
},
};