forked from spinnaker/deck-kayenta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js
120 lines (118 loc) · 4.21 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
'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 fiatEnabled = process.env.FIAT_ENABLED === 'true' ? true : false;
var entityTagsEnabled = process.env.ENTITY_TAGS_ENABLED === 'true' ? true : false;
var reduxLoggerEnabled = process.env.REDUX_LOGGER === 'true';
var defaultMetricStore = process.env.METRIC_STORE || 'atlas';
var canaryStagesEnabled = process.env.CANARY_STAGES_ENABLED === 'true';
var manualCanaryAnalysisEnabled = process.env.MANUAL_CANARY_ANALYSIS_ENABLED === 'true';
var legacySiteLocalFieldsEnabled = process.env.LEGACY_SITE_LOCAL_FIELDS_ENABLED === 'true';
var canaryStageName = process.env.CANARY_STAGE_NAME;
var canaryStageDescription = process.env.CANARY_STAGE_DESCRIPTION;
var templatesEnabled = process.env.TEMPLATES_ENABLED === 'true';
var atlasWebComponentsUrl = process.env.ATLAS_WEB_COMPONENTS_URL;
var atlasWebComponentsPolyfillUrl = process.env.ATLAS_WEB_COMPONENTS_POLYFILL_URL;
var canaryAccount = process.env.CANARY_ACCOUNT || 'my-google-account';
window.spinnakerSettings = {
checkForUpdates: true,
defaultProviders: ['aws', 'gce', 'kubernetes'],
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: {
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,
},
kubernetes: {
defaults: {
account: 'my-kubernetes-account',
namespace: 'default',
proxy: 'localhost:8001',
internalDNSNameTemplate: '{{name}}.{{namespace}}.svc.cluster.local',
instanceLinkTemplate: '{{host}}/api/v1/proxy/namespaces/{{namespace}}/pods/{{name}}',
apiPrefix: 'api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard/#',
},
},
},
whatsNew: {
gistId: '32526cd608db3d811b38',
fileName: 'news.md',
},
notifications: {
email: {
enabled: true,
},
sms: {
enabled: true,
},
slack: {
enabled: true,
botName: 'spinnakerbot',
},
},
authEnabled: true,
authTtl: 600000,
gitSources: ['stash', 'github', 'bitbucket'],
triggerTypes: ['git', 'pipeline', 'docker', 'cron', 'jenkins', 'travis'],
canary: {
reduxLogger: reduxLoggerEnabled,
metricsAccountName: canaryAccount,
storageAccountName: canaryAccount,
defaultJudge: 'NetflixACAJudge-v1.0',
metricStore: defaultMetricStore,
stagesEnabled: canaryStagesEnabled,
manualAnalysisEnabled: manualCanaryAnalysisEnabled,
legacySiteLocalFieldsEnabled: legacySiteLocalFieldsEnabled,
stageName: canaryStageName,
stageDescription: canaryStageDescription,
atlasWebComponentsUrl: atlasWebComponentsUrl,
atlasWebComponentsPolyfillUrl: atlasWebComponentsPolyfillUrl,
templatesEnabled: templatesEnabled,
showAllConfigs: true,
},
feature: {
entityTags: entityTagsEnabled,
fiatEnabled: fiatEnabled,
pipelines: true,
notifications: false,
fastProperty: true,
vpcMigrator: true,
clusterDiff: false,
roscoMode: false,
chaosMonkey: true,
// 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,
versionedProviders: true,
},
};