@axway/axway-central-cli 2.17.0 → 2.18.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +6 -28
- package/dist/commands/apply/index.js +9 -24
- package/dist/commands/completion/index.js +3 -9
- package/dist/commands/config/common/index.js +2 -11
- package/dist/commands/config/index.js +2 -7
- package/dist/commands/config/list.js +2 -6
- package/dist/commands/config/set.js +4 -31
- package/dist/commands/config/unset.js +2 -12
- package/dist/commands/create/agentResource.js +12 -32
- package/dist/commands/create/environment.js +6 -16
- package/dist/commands/create/index.js +9 -26
- package/dist/commands/create/serviceAccount.js +2 -6
- package/dist/commands/delete/index.js +15 -33
- package/dist/commands/edit/environment.js +6 -21
- package/dist/commands/edit/index.js +4 -8
- package/dist/commands/get/index.js +27 -44
- package/dist/commands/install/agents.js +44 -73
- package/dist/commands/install/apigeexSaasAgents.js +35 -98
- package/dist/commands/install/awsAgents.js +89 -139
- package/dist/commands/install/awsSaasAgents.js +50 -142
- package/dist/commands/install/azureAgents.js +39 -79
- package/dist/commands/install/edgeAgents.js +17 -110
- package/dist/commands/install/gitHubSaasAgents.js +286 -0
- package/dist/commands/install/helpers/creators.js +17 -70
- package/dist/commands/install/helpers/deleters.js +2 -11
- package/dist/commands/install/helpers/getters.js +4 -30
- package/dist/commands/install/helpers/index.js +13 -48
- package/dist/commands/install/helpers/inputs.js +26 -98
- package/dist/commands/install/helpers/regex.js +29 -34
- package/dist/commands/install/helpers/templates/awsTemplates.js +6 -23
- package/dist/commands/install/helpers/templates/azureTemplates.js +5 -24
- package/dist/commands/install/helpers/templates/edgeTemplates.js +7 -38
- package/dist/commands/install/helpers/templates/istioTemplates.js +5 -16
- package/dist/commands/install/index.js +4 -10
- package/dist/commands/install/istioAgents.js +40 -117
- package/dist/commands/install/platform.js +20 -52
- package/dist/commands/proxies/create.js +2 -18
- package/dist/commands/proxies/index.js +4 -8
- package/dist/commands/proxies/promote.js +2 -21
- package/dist/common/ApiServerClient.js +64 -173
- package/dist/common/CacheController.js +11 -32
- package/dist/common/CliConfigManager.js +14 -27
- package/dist/common/CompositeError.js +6 -30
- package/dist/common/CoreConfigController.js +18 -40
- package/dist/common/DefinitionsManager.js +29 -76
- package/dist/common/Kubectl.js +2 -25
- package/dist/common/PlatformClient.js +19 -63
- package/dist/common/Renderer.js +25 -87
- package/dist/common/TmpFile.js +11 -28
- package/dist/common/bashCommands.js +3 -22
- package/dist/common/basicPrompts.js +8 -43
- package/dist/common/dataService.js +22 -50
- package/dist/common/errorHandler.js +0 -9
- package/dist/common/resultsRenderers.js +10 -42
- package/dist/common/types.js +116 -341
- package/dist/common/utils.js +37 -99
- package/dist/main.js +0 -2
- package/package.json +2 -2
package/dist/common/types.js
CHANGED
|
@@ -4,37 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.docsUrl = exports.commonCmdArgsDescription = exports.cliVersionHeader = exports.YesNoChoices = exports.YesNo = exports.WAIT_TIMEOUT = exports.TrueFalseChoices = exports.TrueFalse = exports.TraceabilityConfig = exports.SingleEntryPointUrls = exports.SaaSGatewayTypes = exports.Regions = exports.PublicRepoUrl = exports.PublicDockerRepoBaseUrl = exports.Protocol = exports.ProdBaseUrls = exports.Platforms = exports.OutputTypes = exports.MAX_TABLE_STRING_LENGTH = exports.MAX_FILE_SIZE = exports.MAX_CACHE_FILE_SIZE = exports.LoggingSource = exports.KindTypes = exports.Kind = exports.IstioProfileChoices = exports.IstioInstallValues = exports.IstioAgentValues = exports.IngestionProtocolToHosts = exports.IngestionProtocol = exports.IngestionHostsHTTP = exports.IngestionHosts = exports.IngestionHTTPHosts = exports.GatewayTypes = exports.GatewayTypeToDataPlane = exports.GatewayMode = exports.EnvironmentConfigInfo = exports.DosaAccount = exports.DataPlaneNames = exports.DOSAConfigInfo = exports.ConfigTypes = exports.CloudFormationConfig = exports.Certificate = exports.CentralAgentConfig = exports.CACHE_FILE_TTL_MILLISECONDS = exports.BundleType = exports.BasePaths = exports.AuthUrls = exports.AgentTypes = exports.AgentResourceKind = exports.AgentNames = exports.AgentInstallSwitches = exports.AgentInstallConfig = exports.AgentConfigTypes = exports.AWSRegions = exports.APIGEEXDISCOVERYMODES = exports.APICDeployments = exports.ABORT_TIMEOUT = void 0;
|
|
7
|
-
|
|
8
7
|
var _dataService = require("./dataService");
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
const cliVersionHeader = 'x-axway-cli-version';
|
|
13
|
-
exports.
|
|
14
|
-
const
|
|
15
|
-
exports.
|
|
16
|
-
const
|
|
17
|
-
exports.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
exports.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
exports.MAX_CACHE_FILE_SIZE = MAX_CACHE_FILE_SIZE;
|
|
25
|
-
const CACHE_FILE_TTL_MILLISECONDS = process.env.NODE_ENV === 'test' ? 100 : 60000 * 60 * 12;
|
|
26
|
-
exports.CACHE_FILE_TTL_MILLISECONDS = CACHE_FILE_TTL_MILLISECONDS;
|
|
27
|
-
const WAIT_TIMEOUT = process.env.NODE_ENV === 'test' ? 1e3 : 1e4;
|
|
28
|
-
exports.WAIT_TIMEOUT = WAIT_TIMEOUT;
|
|
29
|
-
let Kind;
|
|
30
|
-
/**
|
|
31
|
-
* temporary solution to validate "kind" values.
|
|
32
|
-
* NOTE: order of this array is used to orchestrate bulk api calls (see utils/compareDocsByKind)
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
exports.Kind = Kind;
|
|
36
|
-
|
|
37
|
-
(function (Kind) {
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
+
const cliVersionHeader = exports.cliVersionHeader = 'x-axway-cli-version';
|
|
12
|
+
const docsUrl = exports.docsUrl = 'https://docs.axway.com/bundle/amplify-central/page/docs/index.html';
|
|
13
|
+
const ABORT_TIMEOUT = exports.ABORT_TIMEOUT = process.env.NODE_ENV === 'test' ? 1e3 : process.env.DEBUG || process.env.SNOOPLOGG ? 1e9 : 30e3;
|
|
14
|
+
const MAX_TABLE_STRING_LENGTH = exports.MAX_TABLE_STRING_LENGTH = 50;
|
|
15
|
+
const MAX_FILE_SIZE = exports.MAX_FILE_SIZE = process.env.NODE_ENV === 'test' ? 1e5 : 20 * 1024 * 1024;
|
|
16
|
+
const MAX_CACHE_FILE_SIZE = exports.MAX_CACHE_FILE_SIZE = 5 * 1024 * 1024;
|
|
17
|
+
|
|
18
|
+
// 12 hours
|
|
19
|
+
const CACHE_FILE_TTL_MILLISECONDS = exports.CACHE_FILE_TTL_MILLISECONDS = process.env.NODE_ENV === 'test' ? 100 : 60000 * 60 * 12;
|
|
20
|
+
const WAIT_TIMEOUT = exports.WAIT_TIMEOUT = process.env.NODE_ENV === 'test' ? 1e3 : 1e4;
|
|
21
|
+
let Kind = exports.Kind = /*#__PURE__*/function (Kind) {
|
|
38
22
|
Kind["Environment"] = "Environment";
|
|
39
23
|
Kind["APIService"] = "APIService";
|
|
40
24
|
Kind["APIServiceRevision"] = "APIServiceRevision";
|
|
@@ -43,18 +27,16 @@ exports.Kind = Kind;
|
|
|
43
27
|
Kind["Webhook"] = "Webhook";
|
|
44
28
|
Kind["ConsumerSubscriptionDefinition"] = "ConsumerSubscriptionDefinition";
|
|
45
29
|
Kind["ConsumerInstance"] = "ConsumerInstance";
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
const
|
|
53
|
-
exports.
|
|
54
|
-
|
|
55
|
-
exports.BasePaths = BasePaths
|
|
56
|
-
|
|
57
|
-
(function (BasePaths) {
|
|
30
|
+
return Kind;
|
|
31
|
+
}({});
|
|
32
|
+
/**
|
|
33
|
+
* temporary solution to validate "kind" values.
|
|
34
|
+
* NOTE: order of this array is used to orchestrate bulk api calls (see utils/compareDocsByKind)
|
|
35
|
+
*/
|
|
36
|
+
const KindTypes = exports.KindTypes = [Kind.Environment, Kind.APIService, Kind.APIServiceRevision, Kind.APIServiceInstance, Kind.Secret, Kind.Webhook, Kind.ConsumerSubscriptionDefinition, Kind.ConsumerInstance];
|
|
37
|
+
const PublicRepoUrl = exports.PublicRepoUrl = 'https://axway.jfrog.io';
|
|
38
|
+
const PublicDockerRepoBaseUrl = exports.PublicDockerRepoBaseUrl = 'axway.jfrog.io/ampc-public-docker-release';
|
|
39
|
+
let BasePaths = exports.BasePaths = /*#__PURE__*/function (BasePaths) {
|
|
58
40
|
BasePaths["Aggregator"] = "/api/apiAggregator/v1";
|
|
59
41
|
BasePaths["ApiServer"] = "/apis";
|
|
60
42
|
BasePaths["ApiCentral"] = "/api/v1";
|
|
@@ -63,12 +45,9 @@ exports.BasePaths = BasePaths;
|
|
|
63
45
|
BasePaths["AWSAgents"] = "/artifactory/ampc-public-generic-release/aws-agents";
|
|
64
46
|
BasePaths["DockerAgentPublicRepo"] = "/agent";
|
|
65
47
|
BasePaths["DockerAgentAPIRepoPath"] = "/artifactory/api/docker/ampc-public-docker-release/v2/agent";
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
let ConfigTypes
|
|
69
|
-
exports.ConfigTypes = ConfigTypes;
|
|
70
|
-
|
|
71
|
-
(function (ConfigTypes) {
|
|
48
|
+
return BasePaths;
|
|
49
|
+
}({});
|
|
50
|
+
let ConfigTypes = exports.ConfigTypes = /*#__PURE__*/function (ConfigTypes) {
|
|
72
51
|
ConfigTypes["APIC_DEPLOYMENT"] = "apic-deployment";
|
|
73
52
|
ConfigTypes["BASE_URL"] = "base-url";
|
|
74
53
|
ConfigTypes["EXTENSIONS"] = "extensions";
|
|
@@ -76,54 +55,40 @@ exports.ConfigTypes = ConfigTypes;
|
|
|
76
55
|
ConfigTypes["PLATFORM"] = "platform";
|
|
77
56
|
ConfigTypes["AXWAY_MANAGED"] = "axway-managed";
|
|
78
57
|
ConfigTypes["CLIENT_ID"] = "client-id";
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
let AuthUrls
|
|
82
|
-
exports.AuthUrls = AuthUrls;
|
|
83
|
-
|
|
84
|
-
(function (AuthUrls) {
|
|
58
|
+
return ConfigTypes;
|
|
59
|
+
}({});
|
|
60
|
+
let AuthUrls = exports.AuthUrls = /*#__PURE__*/function (AuthUrls) {
|
|
85
61
|
AuthUrls["Staging"] = "https://login.axwaytest.net";
|
|
86
62
|
AuthUrls["Prod"] = "https://login.axway.com";
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const SingleEntryPointUrls = {
|
|
63
|
+
return AuthUrls;
|
|
64
|
+
}({});
|
|
65
|
+
const SingleEntryPointUrls = exports.SingleEntryPointUrls = {
|
|
90
66
|
US: 'https://ingestion.platform.axway.com',
|
|
91
67
|
EU: 'https://ingestion-eu.platform.axway.com',
|
|
92
68
|
AP: 'https://ingestion-ap-sg.platform.axway.com'
|
|
93
69
|
};
|
|
94
|
-
exports.
|
|
95
|
-
let Regions;
|
|
96
|
-
exports.Regions = Regions;
|
|
97
|
-
|
|
98
|
-
(function (Regions) {
|
|
70
|
+
let Regions = exports.Regions = /*#__PURE__*/function (Regions) {
|
|
99
71
|
Regions["US"] = "US";
|
|
100
72
|
Regions["EU"] = "EU";
|
|
101
73
|
Regions["AP"] = "AP";
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
let Platforms
|
|
105
|
-
exports.Platforms = Platforms;
|
|
106
|
-
|
|
107
|
-
(function (Platforms) {
|
|
74
|
+
return Regions;
|
|
75
|
+
}({});
|
|
76
|
+
let Platforms = exports.Platforms = /*#__PURE__*/function (Platforms) {
|
|
108
77
|
Platforms["prod"] = "prod";
|
|
109
78
|
Platforms["staging"] = "staging";
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
const ProdBaseUrls = {
|
|
79
|
+
return Platforms;
|
|
80
|
+
}({});
|
|
81
|
+
const ProdBaseUrls = exports.ProdBaseUrls = {
|
|
113
82
|
US: 'https://apicentral.axway.com',
|
|
114
83
|
EU: 'https://central.eu-fr.axway.com',
|
|
115
84
|
AP: 'https://central.ap-sg.axway.com'
|
|
116
85
|
};
|
|
117
|
-
exports.
|
|
118
|
-
let IngestionProtocol;
|
|
119
|
-
exports.IngestionProtocol = IngestionProtocol;
|
|
120
|
-
|
|
121
|
-
(function (IngestionProtocol) {
|
|
86
|
+
let IngestionProtocol = exports.IngestionProtocol = /*#__PURE__*/function (IngestionProtocol) {
|
|
122
87
|
IngestionProtocol["Lumberjack"] = "tcp";
|
|
123
88
|
IngestionProtocol["HTTPS"] = "https";
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const IngestionHosts = {
|
|
89
|
+
return IngestionProtocol;
|
|
90
|
+
}({});
|
|
91
|
+
const IngestionHosts = exports.IngestionHosts = {
|
|
127
92
|
EU: 'ingestion.visibility.eu-fr.axway.com:5044',
|
|
128
93
|
EUStaging: 'ingestion.visibility.eu-fr.axwaypreprod.net:5044',
|
|
129
94
|
QA: 'ingestion.condor.staging.axwaytest.net:5044',
|
|
@@ -132,8 +97,7 @@ const IngestionHosts = {
|
|
|
132
97
|
AP: 'ingestion.visibility.ap-sg.axway.com:5044',
|
|
133
98
|
APStaging: 'ingestion.visibility.ap-sg.axwaypreprod.net:5044'
|
|
134
99
|
};
|
|
135
|
-
exports.
|
|
136
|
-
const IngestionHTTPHosts = {
|
|
100
|
+
const IngestionHTTPHosts = exports.IngestionHTTPHosts = {
|
|
137
101
|
US: 'ingestion.datasearch.axway.com:443',
|
|
138
102
|
USStaging: 'ingestion.search.axwaytest.net:443',
|
|
139
103
|
EU: 'ingestion.visibility.eu-fr.axway.com:443',
|
|
@@ -141,19 +105,16 @@ const IngestionHTTPHosts = {
|
|
|
141
105
|
AP: 'ingestion.visibility.ap-sg.axway.com:443',
|
|
142
106
|
APStaging: 'ingestion.visibility.ap-sg.axwaypreprod.net:443'
|
|
143
107
|
};
|
|
144
|
-
exports.
|
|
145
|
-
const IngestionHostsHTTP = {
|
|
108
|
+
const IngestionHostsHTTP = exports.IngestionHostsHTTP = {
|
|
146
109
|
US: 'ingestion.datasearch.axway.com:443',
|
|
147
110
|
EU: 'ingestion.visibility.eu-fr.axway.com:443',
|
|
148
111
|
AP: 'ingestion.visibility.ap-sg.axway.com:443'
|
|
149
112
|
};
|
|
150
|
-
exports.
|
|
151
|
-
const IngestionProtocolToHosts = {
|
|
113
|
+
const IngestionProtocolToHosts = exports.IngestionProtocolToHosts = {
|
|
152
114
|
tcp: IngestionHosts,
|
|
153
115
|
https: IngestionHostsHTTP
|
|
154
116
|
};
|
|
155
|
-
exports.
|
|
156
|
-
const APICDeployments = {
|
|
117
|
+
const APICDeployments = exports.APICDeployments = {
|
|
157
118
|
EU: 'prod-eu',
|
|
158
119
|
EUStaging: 'staging-eu',
|
|
159
120
|
QA: 'qa',
|
|
@@ -163,8 +124,7 @@ const APICDeployments = {
|
|
|
163
124
|
AP: 'prod-ap',
|
|
164
125
|
APStaging: 'preprod'
|
|
165
126
|
};
|
|
166
|
-
exports.
|
|
167
|
-
const commonCmdArgsDescription = {
|
|
127
|
+
const commonCmdArgsDescription = exports.commonCmdArgsDescription = {
|
|
168
128
|
'--account [value]': 'Override your default account config',
|
|
169
129
|
'--region [value]': 'Override your region config',
|
|
170
130
|
'--no-cache': 'Do not use cache when communicating with the server',
|
|
@@ -178,48 +138,36 @@ const commonCmdArgsDescription = {
|
|
|
178
138
|
hidden: true
|
|
179
139
|
}
|
|
180
140
|
};
|
|
181
|
-
exports.
|
|
182
|
-
let OutputTypes;
|
|
183
|
-
exports.OutputTypes = OutputTypes;
|
|
184
|
-
|
|
185
|
-
(function (OutputTypes) {
|
|
141
|
+
let OutputTypes = exports.OutputTypes = /*#__PURE__*/function (OutputTypes) {
|
|
186
142
|
OutputTypes["yaml"] = "yaml";
|
|
187
143
|
OutputTypes["json"] = "json";
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
let TrueFalse
|
|
191
|
-
exports.TrueFalse = TrueFalse;
|
|
192
|
-
|
|
193
|
-
(function (TrueFalse) {
|
|
144
|
+
return OutputTypes;
|
|
145
|
+
}({});
|
|
146
|
+
let TrueFalse = exports.TrueFalse = /*#__PURE__*/function (TrueFalse) {
|
|
194
147
|
TrueFalse["True"] = "True";
|
|
195
148
|
TrueFalse["False"] = "False";
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
const TrueFalseChoices = [{
|
|
149
|
+
return TrueFalse;
|
|
150
|
+
}({});
|
|
151
|
+
const TrueFalseChoices = exports.TrueFalseChoices = [{
|
|
199
152
|
name: TrueFalse.True,
|
|
200
153
|
value: TrueFalse.True
|
|
201
154
|
}, {
|
|
202
155
|
name: TrueFalse.False,
|
|
203
156
|
value: TrueFalse.False
|
|
204
157
|
}];
|
|
205
|
-
exports.
|
|
206
|
-
let YesNo;
|
|
207
|
-
exports.YesNo = YesNo;
|
|
208
|
-
|
|
209
|
-
(function (YesNo) {
|
|
158
|
+
let YesNo = exports.YesNo = /*#__PURE__*/function (YesNo) {
|
|
210
159
|
YesNo["Yes"] = "Yes";
|
|
211
160
|
YesNo["No"] = "No";
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
const YesNoChoices = [{
|
|
161
|
+
return YesNo;
|
|
162
|
+
}({});
|
|
163
|
+
const YesNoChoices = exports.YesNoChoices = [{
|
|
215
164
|
name: YesNo.Yes,
|
|
216
165
|
value: YesNo.Yes
|
|
217
166
|
}, {
|
|
218
167
|
name: YesNo.No,
|
|
219
168
|
value: YesNo.No
|
|
220
169
|
}];
|
|
221
|
-
exports.
|
|
222
|
-
const IstioProfileChoices = [{
|
|
170
|
+
const IstioProfileChoices = exports.IstioProfileChoices = [{
|
|
223
171
|
name: 'default',
|
|
224
172
|
value: 'default'
|
|
225
173
|
}, {
|
|
@@ -238,122 +186,91 @@ const IstioProfileChoices = [{
|
|
|
238
186
|
name: 'preview',
|
|
239
187
|
value: 'preview'
|
|
240
188
|
}];
|
|
241
|
-
exports.IstioProfileChoices = IstioProfileChoices;
|
|
242
189
|
// exporting for tests
|
|
243
|
-
let AgentConfigTypes
|
|
244
|
-
exports.AgentConfigTypes = AgentConfigTypes;
|
|
245
|
-
|
|
246
|
-
(function (AgentConfigTypes) {
|
|
190
|
+
let AgentConfigTypes = exports.AgentConfigTypes = /*#__PURE__*/function (AgentConfigTypes) {
|
|
247
191
|
AgentConfigTypes["HOSTED"] = "Hosted";
|
|
248
192
|
AgentConfigTypes["BINARIES"] = "Binaries";
|
|
249
193
|
AgentConfigTypes["DOCKERIZED"] = "Dockerized";
|
|
250
194
|
AgentConfigTypes["HELM"] = "Helm";
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
let GatewayMode
|
|
254
|
-
exports.GatewayMode = GatewayMode;
|
|
255
|
-
|
|
256
|
-
(function (GatewayMode) {
|
|
195
|
+
return AgentConfigTypes;
|
|
196
|
+
}({});
|
|
197
|
+
let GatewayMode = exports.GatewayMode = /*#__PURE__*/function (GatewayMode) {
|
|
257
198
|
GatewayMode["GatewayManagerMode"] = "With API Manager";
|
|
258
199
|
GatewayMode["GatewayOnlyMode"] = "Gateway only";
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
let LoggingSource
|
|
262
|
-
exports.LoggingSource = LoggingSource;
|
|
263
|
-
|
|
264
|
-
(function (LoggingSource) {
|
|
200
|
+
return GatewayMode;
|
|
201
|
+
}({});
|
|
202
|
+
let LoggingSource = exports.LoggingSource = /*#__PURE__*/function (LoggingSource) {
|
|
265
203
|
LoggingSource["Event"] = "event";
|
|
266
204
|
LoggingSource["OpenTraffic"] = "open traffic";
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
let BundleType
|
|
270
|
-
exports.BundleType = BundleType;
|
|
271
|
-
|
|
272
|
-
(function (BundleType) {
|
|
205
|
+
return LoggingSource;
|
|
206
|
+
}({});
|
|
207
|
+
let BundleType = exports.BundleType = /*#__PURE__*/function (BundleType) {
|
|
273
208
|
BundleType["ALL_AGENTS"] = "All Agents";
|
|
274
209
|
BundleType["DISCOVERY"] = "Discovery";
|
|
275
210
|
BundleType["TRACEABILITY"] = "Traceability";
|
|
276
211
|
BundleType["TRACEABILITY_OFFLINE"] = "Traceability offline mode";
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
let AgentNames
|
|
280
|
-
exports.AgentNames = AgentNames;
|
|
281
|
-
|
|
282
|
-
(function (AgentNames) {
|
|
212
|
+
return BundleType;
|
|
213
|
+
}({});
|
|
214
|
+
let AgentNames = exports.AgentNames = /*#__PURE__*/function (AgentNames) {
|
|
283
215
|
AgentNames["AWS_DA"] = "aws-apigw-discovery-agent";
|
|
284
216
|
AgentNames["AWS_TA"] = "aws-apigw-traceability-agent";
|
|
285
217
|
AgentNames["APIGEEX_DA"] = "apigee-discovery-agent";
|
|
286
218
|
AgentNames["APIGEEX_TA"] = "apigee-traceability-agent";
|
|
219
|
+
AgentNames["GITHUB_DA"] = "github-discovery-agent";
|
|
287
220
|
AgentNames["AZURE_DA"] = "azure-discovery-agent";
|
|
288
221
|
AgentNames["AZURE_TA"] = "azure-traceability-agent";
|
|
289
222
|
AgentNames["EDGE_DA"] = "v7-discovery-agent";
|
|
290
223
|
AgentNames["EDGE_TA"] = "v7-traceability-agent";
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
let GatewayTypes
|
|
294
|
-
exports.GatewayTypes = GatewayTypes;
|
|
295
|
-
|
|
296
|
-
(function (GatewayTypes) {
|
|
224
|
+
return AgentNames;
|
|
225
|
+
}({});
|
|
226
|
+
let GatewayTypes = exports.GatewayTypes = /*#__PURE__*/function (GatewayTypes) {
|
|
297
227
|
GatewayTypes["EDGE_GATEWAY"] = "Amplify API Gateway";
|
|
298
228
|
GatewayTypes["AWS_GATEWAY"] = "Amazon API Gateway";
|
|
299
229
|
GatewayTypes["APIGEEX_GATEWAY"] = "Apigee X Gateway";
|
|
300
230
|
GatewayTypes["AZURE_GATEWAY"] = "Azure API Gateway";
|
|
231
|
+
GatewayTypes["GITHUB"] = "GitHub";
|
|
301
232
|
GatewayTypes["ISTIO"] = "Istio";
|
|
302
233
|
GatewayTypes["EDGE_GATEWAY_ONLY"] = "Amplify API Gateway only";
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
let SaaSGatewayTypes
|
|
306
|
-
exports.SaaSGatewayTypes = SaaSGatewayTypes;
|
|
307
|
-
|
|
308
|
-
(function (SaaSGatewayTypes) {
|
|
234
|
+
return GatewayTypes;
|
|
235
|
+
}({});
|
|
236
|
+
let SaaSGatewayTypes = exports.SaaSGatewayTypes = /*#__PURE__*/function (SaaSGatewayTypes) {
|
|
309
237
|
SaaSGatewayTypes[SaaSGatewayTypes["AWS_GATEWAY"] = 0] = "AWS_GATEWAY";
|
|
310
238
|
SaaSGatewayTypes[SaaSGatewayTypes["APIGEEX_GATEWAY"] = 1] = "APIGEEX_GATEWAY";
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
exports.DataPlaneNames = DataPlaneNames
|
|
315
|
-
|
|
316
|
-
(function (DataPlaneNames) {
|
|
239
|
+
SaaSGatewayTypes[SaaSGatewayTypes["GITHUB_GATEWAY"] = 2] = "GITHUB_GATEWAY";
|
|
240
|
+
return SaaSGatewayTypes;
|
|
241
|
+
}({});
|
|
242
|
+
let DataPlaneNames = exports.DataPlaneNames = /*#__PURE__*/function (DataPlaneNames) {
|
|
317
243
|
DataPlaneNames["APIGEE"] = "Apigee";
|
|
318
244
|
DataPlaneNames["AWS"] = "AWS";
|
|
245
|
+
DataPlaneNames["GITHUB"] = "GitHub";
|
|
319
246
|
DataPlaneNames["AZURE"] = "Azure";
|
|
320
247
|
DataPlaneNames["EDGE"] = "Edge";
|
|
321
248
|
DataPlaneNames["KONG"] = "Kong";
|
|
322
249
|
DataPlaneNames["MULESOFT"] = "Mulesoft";
|
|
323
250
|
DataPlaneNames["WSO2"] = "WSO2";
|
|
324
251
|
DataPlaneNames["OTHER"] = "Other";
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
const GatewayTypeToDataPlane = {
|
|
252
|
+
return DataPlaneNames;
|
|
253
|
+
}({});
|
|
254
|
+
const GatewayTypeToDataPlane = exports.GatewayTypeToDataPlane = {
|
|
328
255
|
[GatewayTypes.EDGE_GATEWAY]: DataPlaneNames.EDGE,
|
|
329
256
|
[GatewayTypes.EDGE_GATEWAY_ONLY]: DataPlaneNames.EDGE,
|
|
330
257
|
[GatewayTypes.AWS_GATEWAY]: DataPlaneNames.AWS,
|
|
258
|
+
[GatewayTypes.GITHUB]: DataPlaneNames.GITHUB,
|
|
331
259
|
[GatewayTypes.AZURE_GATEWAY]: DataPlaneNames.AZURE,
|
|
332
260
|
[GatewayTypes.ISTIO]: 'Istio',
|
|
333
261
|
[GatewayTypes.APIGEEX_GATEWAY]: DataPlaneNames.APIGEE
|
|
334
262
|
};
|
|
335
|
-
exports.
|
|
336
|
-
let AgentResourceKind;
|
|
337
|
-
exports.AgentResourceKind = AgentResourceKind;
|
|
338
|
-
|
|
339
|
-
(function (AgentResourceKind) {
|
|
263
|
+
let AgentResourceKind = exports.AgentResourceKind = /*#__PURE__*/function (AgentResourceKind) {
|
|
340
264
|
AgentResourceKind["da"] = "DiscoveryAgent";
|
|
341
265
|
AgentResourceKind["ta"] = "TraceabilityAgent";
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
let AgentTypes
|
|
345
|
-
|
|
346
|
-
exports.AgentTypes = AgentTypes;
|
|
347
|
-
|
|
348
|
-
(function (AgentTypes) {
|
|
266
|
+
return AgentResourceKind;
|
|
267
|
+
}({});
|
|
268
|
+
let AgentTypes = exports.AgentTypes = /*#__PURE__*/function (AgentTypes) {
|
|
349
269
|
AgentTypes["da"] = "da";
|
|
350
270
|
AgentTypes["ta"] = "ta";
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
let AWSRegions
|
|
354
|
-
exports.AWSRegions = AWSRegions;
|
|
355
|
-
|
|
356
|
-
(function (AWSRegions) {
|
|
271
|
+
return AgentTypes;
|
|
272
|
+
}({}); // AWSRegions - base set of regions, may use option outside this list
|
|
273
|
+
let AWSRegions = exports.AWSRegions = /*#__PURE__*/function (AWSRegions) {
|
|
357
274
|
AWSRegions["US_EAST_1"] = "us-east-1";
|
|
358
275
|
AWSRegions["US_EAST_2"] = "us-east-2";
|
|
359
276
|
AWSRegions["US_WEST_1"] = "us-west-1";
|
|
@@ -361,92 +278,58 @@ exports.AWSRegions = AWSRegions;
|
|
|
361
278
|
AWSRegions["EU_WEST_1"] = "eu-west-1";
|
|
362
279
|
AWSRegions["EU_WEST_2"] = "eu-west-2";
|
|
363
280
|
AWSRegions["EU_WEST_3"] = "eu-west-3";
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
let APIGEEXDISCOVERYMODES
|
|
367
|
-
exports.APIGEEXDISCOVERYMODES = APIGEEXDISCOVERYMODES;
|
|
368
|
-
|
|
369
|
-
(function (APIGEEXDISCOVERYMODES) {
|
|
281
|
+
return AWSRegions;
|
|
282
|
+
}({});
|
|
283
|
+
let APIGEEXDISCOVERYMODES = exports.APIGEEXDISCOVERYMODES = /*#__PURE__*/function (APIGEEXDISCOVERYMODES) {
|
|
370
284
|
APIGEEXDISCOVERYMODES["PROXY"] = "proxy";
|
|
371
285
|
APIGEEXDISCOVERYMODES["PRODUCT"] = "product";
|
|
372
|
-
|
|
373
|
-
|
|
286
|
+
return APIGEEXDISCOVERYMODES;
|
|
287
|
+
}({});
|
|
374
288
|
class EnvironmentConfigInfo {
|
|
375
289
|
constructor() {
|
|
376
290
|
_defineProperty(this, "name", void 0);
|
|
377
|
-
|
|
378
291
|
_defineProperty(this, "isNew", void 0);
|
|
379
|
-
|
|
380
292
|
this.name = '';
|
|
381
293
|
this.isNew = false;
|
|
382
294
|
}
|
|
383
|
-
|
|
384
295
|
}
|
|
385
|
-
|
|
386
296
|
exports.EnvironmentConfigInfo = EnvironmentConfigInfo;
|
|
387
|
-
|
|
388
297
|
class DOSAConfigInfo {
|
|
389
298
|
constructor() {
|
|
390
299
|
_defineProperty(this, "clientId", void 0);
|
|
391
|
-
|
|
392
300
|
_defineProperty(this, "name", void 0);
|
|
393
|
-
|
|
394
301
|
_defineProperty(this, "isNew", void 0);
|
|
395
|
-
|
|
396
302
|
this.clientId = null;
|
|
397
303
|
this.name = '';
|
|
398
304
|
this.isNew = false;
|
|
399
305
|
}
|
|
400
|
-
|
|
401
306
|
}
|
|
402
|
-
|
|
403
307
|
exports.DOSAConfigInfo = DOSAConfigInfo;
|
|
404
|
-
|
|
405
308
|
class CentralAgentConfig {
|
|
406
309
|
constructor() {
|
|
407
310
|
_defineProperty(this, "orgId", void 0);
|
|
408
|
-
|
|
409
311
|
_defineProperty(this, "ampcEnvInfo", void 0);
|
|
410
|
-
|
|
411
312
|
_defineProperty(this, "ampcDosaInfo", void 0);
|
|
412
|
-
|
|
413
313
|
_defineProperty(this, "ampcTeamName", void 0);
|
|
414
|
-
|
|
415
314
|
_defineProperty(this, "ingestionProtocol", void 0);
|
|
416
|
-
|
|
417
315
|
_defineProperty(this, "daAgentName", void 0);
|
|
418
|
-
|
|
419
316
|
_defineProperty(this, "taAgentName", void 0);
|
|
420
|
-
|
|
421
317
|
_defineProperty(this, "dosaAccount", void 0);
|
|
422
|
-
|
|
423
318
|
_defineProperty(this, "environment", void 0);
|
|
424
|
-
|
|
425
319
|
_defineProperty(this, "environmentId", void 0);
|
|
426
|
-
|
|
427
320
|
_defineProperty(this, "url", void 0);
|
|
428
|
-
|
|
429
321
|
_defineProperty(this, "authUrl", void 0);
|
|
430
|
-
|
|
431
322
|
_defineProperty(this, "region", void 0);
|
|
432
|
-
|
|
433
323
|
_defineProperty(this, "deployment", void 0);
|
|
434
|
-
|
|
435
324
|
_defineProperty(this, "host", void 0);
|
|
436
|
-
|
|
437
325
|
_defineProperty(this, "singleEntryPointUrl", void 0);
|
|
438
|
-
|
|
439
326
|
_defineProperty(this, "scheme", void 0);
|
|
440
|
-
|
|
441
327
|
_defineProperty(this, "production", void 0);
|
|
442
|
-
|
|
443
328
|
_defineProperty(this, "axwayManaged", void 0);
|
|
444
|
-
|
|
445
329
|
_defineProperty(this, "setBaseHost", async () => {
|
|
446
330
|
this.url = await (0, _dataService.getBaseUrl)(undefined, undefined, this.region);
|
|
447
331
|
[this.scheme, this.host] = this.url.split('://');
|
|
448
332
|
});
|
|
449
|
-
|
|
450
333
|
this.orgId = '';
|
|
451
334
|
this.ampcTeamName = '';
|
|
452
335
|
this.region = Regions.US;
|
|
@@ -466,29 +349,18 @@ class CentralAgentConfig {
|
|
|
466
349
|
this.axwayManaged = false;
|
|
467
350
|
this.singleEntryPointUrl = SingleEntryPointUrls[this.region];
|
|
468
351
|
}
|
|
469
|
-
|
|
470
352
|
}
|
|
471
|
-
|
|
472
353
|
exports.CentralAgentConfig = CentralAgentConfig;
|
|
473
|
-
|
|
474
354
|
class AgentInstallSwitches {
|
|
475
355
|
constructor() {
|
|
476
356
|
_defineProperty(this, "isDaEnabled", void 0);
|
|
477
|
-
|
|
478
357
|
_defineProperty(this, "isTaEnabled", void 0);
|
|
479
|
-
|
|
480
358
|
_defineProperty(this, "isHostedInstall", void 0);
|
|
481
|
-
|
|
482
359
|
_defineProperty(this, "isHelmInstall", void 0);
|
|
483
|
-
|
|
484
360
|
_defineProperty(this, "isGatewayOnly", void 0);
|
|
485
|
-
|
|
486
361
|
_defineProperty(this, "isDockerInstall", void 0);
|
|
487
|
-
|
|
488
362
|
_defineProperty(this, "isBinaryInstall", void 0);
|
|
489
|
-
|
|
490
363
|
_defineProperty(this, "isOrgRep", void 0);
|
|
491
|
-
|
|
492
364
|
this.isDaEnabled = false;
|
|
493
365
|
this.isTaEnabled = false;
|
|
494
366
|
this.isHostedInstall = false;
|
|
@@ -498,31 +370,19 @@ class AgentInstallSwitches {
|
|
|
498
370
|
this.isBinaryInstall = false;
|
|
499
371
|
this.isOrgRep = false;
|
|
500
372
|
}
|
|
501
|
-
|
|
502
373
|
}
|
|
503
|
-
|
|
504
374
|
exports.AgentInstallSwitches = AgentInstallSwitches;
|
|
505
|
-
|
|
506
375
|
class AgentInstallConfig {
|
|
507
376
|
constructor() {
|
|
508
377
|
_defineProperty(this, "centralConfig", void 0);
|
|
509
|
-
|
|
510
378
|
_defineProperty(this, "bundleType", void 0);
|
|
511
|
-
|
|
512
379
|
_defineProperty(this, "gatewayType", void 0);
|
|
513
|
-
|
|
514
380
|
_defineProperty(this, "deploymentType", void 0);
|
|
515
|
-
|
|
516
381
|
_defineProperty(this, "daVersion", void 0);
|
|
517
|
-
|
|
518
382
|
_defineProperty(this, "taVersion", void 0);
|
|
519
|
-
|
|
520
383
|
_defineProperty(this, "gatewayConfig", void 0);
|
|
521
|
-
|
|
522
384
|
_defineProperty(this, "traceabilityConfig", void 0);
|
|
523
|
-
|
|
524
385
|
_defineProperty(this, "switches", void 0);
|
|
525
|
-
|
|
526
386
|
this.centralConfig = new CentralAgentConfig();
|
|
527
387
|
this.bundleType = BundleType.ALL_AGENTS;
|
|
528
388
|
this.gatewayType = GatewayTypes.EDGE_GATEWAY;
|
|
@@ -533,23 +393,15 @@ class AgentInstallConfig {
|
|
|
533
393
|
this.switches = new AgentInstallSwitches();
|
|
534
394
|
this.traceabilityConfig = new TraceabilityConfig();
|
|
535
395
|
}
|
|
536
|
-
|
|
537
396
|
}
|
|
538
|
-
|
|
539
397
|
exports.AgentInstallConfig = AgentInstallConfig;
|
|
540
|
-
|
|
541
398
|
class DosaAccount {
|
|
542
399
|
constructor(clientId, publicKey, privateKey) {
|
|
543
400
|
_defineProperty(this, "clientId", void 0);
|
|
544
|
-
|
|
545
401
|
_defineProperty(this, "privateKey", void 0);
|
|
546
|
-
|
|
547
402
|
_defineProperty(this, "publicKey", void 0);
|
|
548
|
-
|
|
549
403
|
_defineProperty(this, "templatePrivateKey", void 0);
|
|
550
|
-
|
|
551
404
|
_defineProperty(this, "templatePublicKey", void 0);
|
|
552
|
-
|
|
553
405
|
_defineProperty(this, "updateKeyTemplateValues", configType => {
|
|
554
406
|
switch (configType) {
|
|
555
407
|
case AgentConfigTypes.BINARIES:
|
|
@@ -558,14 +410,12 @@ class DosaAccount {
|
|
|
558
410
|
this.templatePublicKey = 'public_key.pem';
|
|
559
411
|
break;
|
|
560
412
|
}
|
|
561
|
-
|
|
562
413
|
case AgentConfigTypes.DOCKERIZED:
|
|
563
414
|
{
|
|
564
415
|
this.templatePrivateKey = '/keys/private_key.pem';
|
|
565
416
|
this.templatePublicKey = '/keys/public_key.pem';
|
|
566
417
|
break;
|
|
567
418
|
}
|
|
568
|
-
|
|
569
419
|
default:
|
|
570
420
|
{
|
|
571
421
|
this.templatePrivateKey = this.privateKey;
|
|
@@ -574,30 +424,20 @@ class DosaAccount {
|
|
|
574
424
|
}
|
|
575
425
|
}
|
|
576
426
|
});
|
|
577
|
-
|
|
578
427
|
this.clientId = clientId || '';
|
|
579
428
|
this.privateKey = privateKey || 'private_key.pem';
|
|
580
429
|
this.publicKey = publicKey || 'public_key.pem';
|
|
581
430
|
}
|
|
582
|
-
|
|
583
431
|
}
|
|
584
|
-
|
|
585
432
|
exports.DosaAccount = DosaAccount;
|
|
586
|
-
|
|
587
433
|
class TraceabilityConfig {
|
|
588
434
|
constructor() {
|
|
589
435
|
_defineProperty(this, "host", void 0);
|
|
590
|
-
|
|
591
436
|
_defineProperty(this, "protocol", void 0);
|
|
592
|
-
|
|
593
437
|
_defineProperty(this, "enabled", void 0);
|
|
594
|
-
|
|
595
438
|
_defineProperty(this, "samplingPercentage", void 0);
|
|
596
|
-
|
|
597
439
|
_defineProperty(this, "samplingReportAllErrors", void 0);
|
|
598
|
-
|
|
599
440
|
_defineProperty(this, "usageReportingOffline", void 0);
|
|
600
|
-
|
|
601
441
|
this.host = IngestionHosts.US;
|
|
602
442
|
this.protocol = IngestionProtocol.Lumberjack;
|
|
603
443
|
this.samplingPercentage = 100;
|
|
@@ -605,90 +445,51 @@ class TraceabilityConfig {
|
|
|
605
445
|
this.samplingReportAllErrors = true;
|
|
606
446
|
this.usageReportingOffline = false;
|
|
607
447
|
}
|
|
608
|
-
|
|
609
448
|
}
|
|
610
|
-
|
|
611
449
|
exports.TraceabilityConfig = TraceabilityConfig;
|
|
612
|
-
let Protocol
|
|
613
|
-
exports.Protocol = Protocol;
|
|
614
|
-
|
|
615
|
-
(function (Protocol) {
|
|
450
|
+
let Protocol = exports.Protocol = /*#__PURE__*/function (Protocol) {
|
|
616
451
|
Protocol["HTTP"] = "http";
|
|
617
452
|
Protocol["HTTPS"] = "https";
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
let Certificate
|
|
621
|
-
exports.Certificate = Certificate;
|
|
622
|
-
|
|
623
|
-
(function (Certificate) {
|
|
453
|
+
return Protocol;
|
|
454
|
+
}({});
|
|
455
|
+
let Certificate = exports.Certificate = /*#__PURE__*/function (Certificate) {
|
|
624
456
|
Certificate["PROVIDE"] = "PROVIDE";
|
|
625
457
|
Certificate["GENERATE"] = "GENERATE";
|
|
626
|
-
|
|
627
|
-
|
|
458
|
+
return Certificate;
|
|
459
|
+
}({});
|
|
628
460
|
class CloudFormationConfig {
|
|
629
461
|
constructor() {
|
|
630
462
|
_defineProperty(this, "AgentResourcesBucket", void 0);
|
|
631
|
-
|
|
632
463
|
_defineProperty(this, "APIGWCWRoleSetup", void 0);
|
|
633
|
-
|
|
634
464
|
_defineProperty(this, "APIGWTrafficLogGroupName", void 0);
|
|
635
|
-
|
|
636
465
|
_defineProperty(this, "ConfigServiceSetup", void 0);
|
|
637
|
-
|
|
638
466
|
_defineProperty(this, "ConfigBucketName", void 0);
|
|
639
|
-
|
|
640
467
|
_defineProperty(this, "ConfigBucketExists", void 0);
|
|
641
|
-
|
|
642
468
|
_defineProperty(this, "DiscoveryQueueName", void 0);
|
|
643
|
-
|
|
644
469
|
_defineProperty(this, "TraceabilityQueueName", void 0);
|
|
645
|
-
|
|
646
470
|
_defineProperty(this, "DeploymentType", void 0);
|
|
647
|
-
|
|
648
471
|
_defineProperty(this, "EC2VPCID", void 0);
|
|
649
|
-
|
|
650
472
|
_defineProperty(this, "EC2KeyName", void 0);
|
|
651
|
-
|
|
652
473
|
_defineProperty(this, "EC2InstanceType", void 0);
|
|
653
|
-
|
|
654
474
|
_defineProperty(this, "EC2SSHLocation", void 0);
|
|
655
|
-
|
|
656
475
|
_defineProperty(this, "EC2PublicIPAddress", void 0);
|
|
657
|
-
|
|
658
476
|
_defineProperty(this, "ECSClusterName", void 0);
|
|
659
|
-
|
|
660
477
|
_defineProperty(this, "ECSCentralOrganizationID", void 0);
|
|
661
|
-
|
|
662
478
|
_defineProperty(this, "ECSCentralEnvironmentName", void 0);
|
|
663
|
-
|
|
664
479
|
_defineProperty(this, "ECSCentralDiscoveryAgentName", void 0);
|
|
665
|
-
|
|
666
480
|
_defineProperty(this, "ECSCentralTraceabilityAgentName", void 0);
|
|
667
|
-
|
|
668
481
|
_defineProperty(this, "ECSCentralClientID", void 0);
|
|
669
|
-
|
|
670
482
|
_defineProperty(this, "ECSCentralURL", void 0);
|
|
671
|
-
|
|
672
483
|
_defineProperty(this, "ECSCentralDeployment", void 0);
|
|
673
|
-
|
|
674
484
|
_defineProperty(this, "ECSCentralTraceabilityHost", void 0);
|
|
675
|
-
|
|
676
485
|
_defineProperty(this, "DiscoveryAgentLogGroupName", void 0);
|
|
677
|
-
|
|
678
486
|
_defineProperty(this, "DiscoveryAgentVersion", void 0);
|
|
679
|
-
|
|
680
487
|
_defineProperty(this, "TraceabilityAgentLogGroupName", void 0);
|
|
681
|
-
|
|
682
488
|
_defineProperty(this, "TraceabilityAgentVersion", void 0);
|
|
683
|
-
|
|
684
489
|
_defineProperty(this, "SSMPrivateKeyParameter", void 0);
|
|
685
|
-
|
|
686
490
|
_defineProperty(this, "SSMPublicKeyParameter", void 0);
|
|
687
|
-
|
|
688
491
|
_defineProperty(this, "SecurityGroup", void 0);
|
|
689
|
-
|
|
690
492
|
_defineProperty(this, "Subnet", void 0);
|
|
691
|
-
|
|
692
493
|
this.AgentResourcesBucket = '';
|
|
693
494
|
this.APIGWCWRoleSetup = 'true';
|
|
694
495
|
this.APIGWTrafficLogGroupName = 'aws-apigw-traffic-logs';
|
|
@@ -721,36 +522,22 @@ class CloudFormationConfig {
|
|
|
721
522
|
this.SecurityGroup = '';
|
|
722
523
|
this.Subnet = '';
|
|
723
524
|
}
|
|
724
|
-
|
|
725
525
|
}
|
|
726
|
-
|
|
727
526
|
exports.CloudFormationConfig = CloudFormationConfig;
|
|
728
|
-
|
|
729
527
|
class IstioAgentValues {
|
|
730
|
-
// The extra Overrides listed below are not used in the actual hybridTemplate
|
|
731
528
|
constructor() {
|
|
732
529
|
_defineProperty(this, "alsEnabled", void 0);
|
|
733
|
-
|
|
734
530
|
_defineProperty(this, "alsMode", void 0);
|
|
735
|
-
|
|
736
531
|
_defineProperty(this, "apicDeployment", void 0);
|
|
737
|
-
|
|
738
532
|
_defineProperty(this, "envoyFilterNamespace", void 0);
|
|
739
|
-
|
|
740
533
|
_defineProperty(this, "clientId", void 0);
|
|
741
|
-
|
|
742
534
|
_defineProperty(this, "clusterName", void 0);
|
|
743
|
-
|
|
744
535
|
_defineProperty(this, "keysSecretName", void 0);
|
|
745
|
-
|
|
746
536
|
_defineProperty(this, "discoveryEnabled", void 0);
|
|
747
|
-
|
|
748
537
|
_defineProperty(this, "namespace", void 0);
|
|
749
|
-
|
|
750
538
|
_defineProperty(this, "discoveryNamespaces", void 0);
|
|
751
|
-
|
|
539
|
+
// The extra Overrides listed below are not used in the actual hybridTemplate
|
|
752
540
|
_defineProperty(this, "demoSvcEnabled", void 0);
|
|
753
|
-
|
|
754
541
|
this.alsEnabled = false;
|
|
755
542
|
this.alsMode = 'default';
|
|
756
543
|
this.apicDeployment = '';
|
|
@@ -766,38 +553,23 @@ class IstioAgentValues {
|
|
|
766
553
|
this.demoSvcEnabled = false;
|
|
767
554
|
this.discoveryNamespaces = [];
|
|
768
555
|
}
|
|
769
|
-
|
|
770
556
|
}
|
|
771
|
-
|
|
772
557
|
exports.IstioAgentValues = IstioAgentValues;
|
|
773
|
-
|
|
774
558
|
class IstioInstallValues {
|
|
775
|
-
// The extra IstioOverrides listed below are not used in the actual istioOverrideTemplate
|
|
776
559
|
constructor() {
|
|
777
560
|
_defineProperty(this, "alsNamespace", void 0);
|
|
778
|
-
|
|
779
561
|
_defineProperty(this, "certSecretName", void 0);
|
|
780
|
-
|
|
781
562
|
_defineProperty(this, "enableAls", void 0);
|
|
782
|
-
|
|
783
563
|
_defineProperty(this, "enableTracing", void 0);
|
|
784
|
-
|
|
785
564
|
_defineProperty(this, "envoyFilterNamespace", void 0);
|
|
786
|
-
|
|
787
565
|
_defineProperty(this, "host", void 0);
|
|
788
|
-
|
|
789
566
|
_defineProperty(this, "isNewInstall", void 0);
|
|
790
|
-
|
|
791
567
|
_defineProperty(this, "port", void 0);
|
|
792
|
-
|
|
793
568
|
_defineProperty(this, "protocol", void 0);
|
|
794
|
-
|
|
795
569
|
_defineProperty(this, "profile", void 0);
|
|
796
|
-
|
|
797
570
|
_defineProperty(this, "targetPort", void 0);
|
|
798
|
-
|
|
571
|
+
// The extra IstioOverrides listed below are not used in the actual istioOverrideTemplate
|
|
799
572
|
_defineProperty(this, "certificateOption", void 0);
|
|
800
|
-
|
|
801
573
|
this.alsNamespace = 'amplify-agents';
|
|
802
574
|
this.certificateOption = '';
|
|
803
575
|
this.enableAls = false;
|
|
@@ -810,9 +582,12 @@ class IstioInstallValues {
|
|
|
810
582
|
this.protocol = Protocol.HTTP;
|
|
811
583
|
this.targetPort = 0;
|
|
812
584
|
}
|
|
813
|
-
|
|
814
585
|
}
|
|
815
|
-
/** Provides information for a platform team. */
|
|
816
586
|
|
|
587
|
+
/** Provides information for a platform team. */
|
|
817
588
|
|
|
589
|
+
/**
|
|
590
|
+
* Invoked multiple times to indicate progress on something, such as download progress.
|
|
591
|
+
* @param progress Value ranging from 0 to 100.
|
|
592
|
+
*/
|
|
818
593
|
exports.IstioInstallValues = IstioInstallValues;
|