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