@axway/axway-central-cli 4.5.0 → 4.6.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.
Files changed (83) hide show
  1. package/.security-profile-branches.json +18 -0
  2. package/package.json +1 -1
  3. package/dist/cli.js +0 -71
  4. package/dist/commands/apply/index.js +0 -112
  5. package/dist/commands/completion/index.js +0 -100
  6. package/dist/commands/config/common/index.js +0 -28
  7. package/dist/commands/config/index.js +0 -20
  8. package/dist/commands/config/list.js +0 -24
  9. package/dist/commands/config/set.js +0 -102
  10. package/dist/commands/config/unset.js +0 -48
  11. package/dist/commands/create/agentResource.js +0 -108
  12. package/dist/commands/create/environment.js +0 -62
  13. package/dist/commands/create/index.js +0 -109
  14. package/dist/commands/create/serviceAccount.js +0 -15
  15. package/dist/commands/delete/index.js +0 -196
  16. package/dist/commands/edit/environment.js +0 -101
  17. package/dist/commands/edit/index.js +0 -28
  18. package/dist/commands/get/index.js +0 -272
  19. package/dist/commands/install/agents.js +0 -290
  20. package/dist/commands/install/apigeexAgents.js +0 -223
  21. package/dist/commands/install/apigeexSaasAgents.js +0 -300
  22. package/dist/commands/install/awsAgents.js +0 -525
  23. package/dist/commands/install/awsSaasAgents.js +0 -508
  24. package/dist/commands/install/azureAgents.js +0 -242
  25. package/dist/commands/install/azureSaasAgents.js +0 -519
  26. package/dist/commands/install/backstageAgents.js +0 -167
  27. package/dist/commands/install/edgeAgents.js +0 -409
  28. package/dist/commands/install/gitHubSaasAgents.js +0 -294
  29. package/dist/commands/install/gitLabAgents.js +0 -178
  30. package/dist/commands/install/graylogAgent.js +0 -147
  31. package/dist/commands/install/helpers/creators.js +0 -359
  32. package/dist/commands/install/helpers/deleters.js +0 -36
  33. package/dist/commands/install/helpers/getters.js +0 -95
  34. package/dist/commands/install/helpers/index.js +0 -267
  35. package/dist/commands/install/helpers/inputs.js +0 -593
  36. package/dist/commands/install/helpers/regex.js +0 -67
  37. package/dist/commands/install/helpers/templates/apigeexTemplates.js +0 -109
  38. package/dist/commands/install/helpers/templates/awsTemplates.js +0 -129
  39. package/dist/commands/install/helpers/templates/azureTemplates.js +0 -125
  40. package/dist/commands/install/helpers/templates/backstageTemplates.js +0 -95
  41. package/dist/commands/install/helpers/templates/edgeTemplates.js +0 -360
  42. package/dist/commands/install/helpers/templates/gitLabTemplates.js +0 -66
  43. package/dist/commands/install/helpers/templates/graylogTemplates.js +0 -75
  44. package/dist/commands/install/helpers/templates/ibmAPIConnectTemplates.js +0 -116
  45. package/dist/commands/install/helpers/templates/istioTemplates.js +0 -214
  46. package/dist/commands/install/helpers/templates/kafkaTemplates.js +0 -194
  47. package/dist/commands/install/helpers/templates/sapApiPortalTemplates.js +0 -114
  48. package/dist/commands/install/helpers/templates/softwareAGWebMethodsTemplates.js +0 -93
  49. package/dist/commands/install/helpers/templates/traceableTemplates.js +0 -135
  50. package/dist/commands/install/helpers/templates/wso2Templates.js +0 -85
  51. package/dist/commands/install/helpers/util.js +0 -26
  52. package/dist/commands/install/ibmAPIConnectAgents.js +0 -213
  53. package/dist/commands/install/index.js +0 -36
  54. package/dist/commands/install/istioAgents.js +0 -346
  55. package/dist/commands/install/kafkaAgents.js +0 -303
  56. package/dist/commands/install/platform.js +0 -175
  57. package/dist/commands/install/sapApiPortalAgents.js +0 -198
  58. package/dist/commands/install/softwareAGWebMethodsAgents.js +0 -161
  59. package/dist/commands/install/swaggerHubSaasAgents.js +0 -272
  60. package/dist/commands/install/traceableAgents.js +0 -257
  61. package/dist/commands/install/traceableSaasAgents.js +0 -275
  62. package/dist/commands/install/wso2Agents.js +0 -163
  63. package/dist/commands/productize/helpers/productizationHelper.js +0 -408
  64. package/dist/commands/productize/index.js +0 -99
  65. package/dist/common/ApiServerClient.js +0 -1109
  66. package/dist/common/CacheController.js +0 -146
  67. package/dist/common/CliConfigManager.js +0 -76
  68. package/dist/common/CompositeError.js +0 -95
  69. package/dist/common/CoreConfigController.js +0 -174
  70. package/dist/common/DefinitionsManager.js +0 -298
  71. package/dist/common/Kubectl.js +0 -68
  72. package/dist/common/PlatformClient.js +0 -128
  73. package/dist/common/Renderer.js +0 -409
  74. package/dist/common/TmpFile.js +0 -96
  75. package/dist/common/bashCommands.js +0 -97
  76. package/dist/common/basicPrompts.js +0 -160
  77. package/dist/common/dataService.js +0 -312
  78. package/dist/common/errorHandler.js +0 -46
  79. package/dist/common/modules.d.js +0 -1
  80. package/dist/common/resultsRenderers.js +0 -164
  81. package/dist/common/types.js +0 -746
  82. package/dist/common/utils.js +0 -476
  83. package/dist/main.js +0 -8
@@ -1,360 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.v7TAHelmOverrideTemplate = exports.v7TAEnvVarTemplate = exports.v7DAHelmOverrideTemplate = exports.v7DAEnvVarTemplate = exports.V7AgentValues = void 0;
7
- var _ = require("..");
8
- var _types = require("../../../../common/types");
9
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
10
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
11
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
12
- /**
13
- * @description Values to provide to the v7 handlebars templates.
14
- */
15
- class V7AgentValues {
16
- constructor() {
17
- _defineProperty(this, "amplifyAgentCreds", void 0);
18
- _defineProperty(this, "amplifyAgentKeys", void 0);
19
- _defineProperty(this, "apiGatewayAuthPass", void 0);
20
- _defineProperty(this, "apiGatewayAuthUser", void 0);
21
- _defineProperty(this, "apiGatewayHost", void 0);
22
- _defineProperty(this, "apiGatewayPort", void 0);
23
- _defineProperty(this, "apiManagerAuthPass", void 0);
24
- _defineProperty(this, "apiManagerAuthUser", void 0);
25
- _defineProperty(this, "apiManagerHost", void 0);
26
- _defineProperty(this, "apiManagerPort", void 0);
27
- _defineProperty(this, "eventLogPath", void 0);
28
- _defineProperty(this, "eventLogPathTemplate", void 0);
29
- _defineProperty(this, "isGatewayOnly", void 0);
30
- _defineProperty(this, "isOpenTraffic", void 0);
31
- _defineProperty(this, "namespace", void 0);
32
- _defineProperty(this, "centralConfig", void 0);
33
- _defineProperty(this, "traceabilityConfig", void 0);
34
- _defineProperty(this, "daVersion", void 0);
35
- _defineProperty(this, "taVersion", void 0);
36
- this.amplifyAgentCreds = _.amplifyAgentsCredsSecret;
37
- this.amplifyAgentKeys = _.amplifyAgentsKeysSecret;
38
- this.apiGatewayAuthPass = '';
39
- this.apiGatewayAuthUser = '';
40
- this.apiGatewayHost = '';
41
- this.apiGatewayPort = '';
42
- this.apiManagerAuthPass = '';
43
- this.apiManagerAuthUser = '';
44
- this.apiManagerHost = '';
45
- this.apiManagerPort = '';
46
- this.eventLogPath = '';
47
- this.eventLogPathTemplate = '';
48
- this.isGatewayOnly = false;
49
- this.isOpenTraffic = false;
50
- this.namespace = {
51
- name: '',
52
- isNew: false
53
- };
54
- this.centralConfig = new _types.CentralAgentConfig();
55
- this.traceabilityConfig = new _types.TraceabilityConfig();
56
- this.daVersion = '';
57
- this.taVersion = '';
58
- }
59
- }
60
-
61
- /**
62
- * @description Generates the V7 TA env vars file.
63
- */
64
- exports.V7AgentValues = V7AgentValues;
65
- const v7TAEnvVarTemplate = () => {
66
- return `{{#unless isGatewayOnly}}
67
- # API Manager configs
68
- APIMANAGER_AUTH_PASSWORD={{apiManagerAuthPass}}
69
- APIMANAGER_AUTH_USERNAME={{apiManagerAuthUser}}
70
- APIMANAGER_HOST={{apiManagerHost}}
71
- APIMANAGER_PORT={{apiManagerPort}}
72
- {{/unless}}
73
- {{#if isGatewayOnly}}
74
- APIGATEWAY_ONLY={{isGatewayOnly}}
75
- {{/if}}
76
- {{#if traceabilityConfig.usageReportingOffline}}
77
- APIGATEWAY_GETHEADERS=false
78
- {{else}}
79
- {{#unless isOpenTraffic}}
80
- # API Gateway configs
81
- APIGATEWAY_AUTH_PASSWORD={{apiGatewayAuthPass}}
82
- APIGATEWAY_AUTH_USERNAME={{apiGatewayAuthUser}}
83
- APIGATEWAY_HOST={{apiGatewayHost}}
84
- APIGATEWAY_PORT={{apiGatewayPort}}
85
- {{/unless}}
86
- {{/if}}
87
- {{#if eventLogPathTemplate}}
88
- {{#if isOpenTraffic}}
89
- # API Gateway open traffic logs
90
- EVENT_LOG_INPUT=false
91
- OPENTRAFFIC_LOG_INPUT=true
92
- OPENTRAFFIC_LOG_PATHS={{eventLogPathTemplate}}
93
- {{else}}
94
-
95
- # API Gateway event logs
96
- EVENT_LOG_PATHS={{eventLogPathTemplate}}
97
- {{/if}}
98
- {{/if}}
99
-
100
- # Amplify Central configs
101
- {{#if traceabilityConfig.usageReportingOffline}}
102
- CENTRAL_USAGEREPORTING_OFFLINE={{traceabilityConfig.usageReportingOffline}}
103
- CENTRAL_ENVIRONMENTID={{centralConfig.environmentId}}
104
- CENTRAL_AGENTNAME={{centralConfig.taAgentName}}
105
- {{else}}
106
- CENTRAL_AGENTNAME={{centralConfig.taAgentName}}
107
- CENTRAL_AUTH_CLIENTID={{centralConfig.dosaAccount.clientId}}
108
- CENTRAL_AUTH_PRIVATEKEY={{centralConfig.dosaAccount.templatePrivateKey}}
109
- CENTRAL_AUTH_PUBLICKEY={{centralConfig.dosaAccount.templatePublicKey}}
110
- CENTRAL_ENVIRONMENT={{centralConfig.environment}}
111
- CENTRAL_ORGANIZATIONID={{centralConfig.orgId}}
112
- {{#compare . centralConfig.ampcTeamName "" operator="!=" }}
113
- CENTRAL_TEAM={{centralConfig.ampcTeamName}}
114
- {{/compare}}
115
- CENTRAL_REGION={{centralConfig.region}}
116
- {{/if}}
117
-
118
- # Logging configs
119
- # Define the logging level: info, debug, error
120
- LOG_LEVEL=info
121
- # Specify where to send the log: stdout, file, both
122
- LOG_OUTPUT=stdout
123
- # Define where the log files are written
124
- LOG_FILE_PATH=logs
125
- `;
126
- };
127
-
128
- /**
129
- * @description Generates the V7 TA helm overrides.
130
- */
131
- exports.v7TAEnvVarTemplate = v7TAEnvVarTemplate;
132
- const v7TAHelmOverrideTemplate = () => {
133
- return `---
134
- replicaCount: 1
135
-
136
- # Traceability Agent image overrides
137
- # image:
138
- # fullPath:
139
- # registry: docker.repository.axway.com
140
- # repository: ampc-beano-docker-prod/1.2
141
- # name: v7-traceability-agent
142
- # tag: "{{taVersion}}"
143
- # pullPolicy: IfNotPresent
144
- # pullSecret:
145
-
146
- imagePullSecrets: []
147
- nameOverride: ""
148
- fullnameOverride: ""
149
-
150
- # Health Check port
151
- statusPort: 8990
152
-
153
- # The following links document the environment variables for traceability.
154
- # https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/connect_api_manager/agent-variables/index.html#common-variables-to-both-agents
155
- # https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/connect_api_manager/agent-variables/index.html#specific-variables-for-traceability-agent
156
- env:
157
- LOG_LEVEL: info
158
- CENTRAL_AGENTNAME: {{centralConfig.taAgentName}}
159
- CENTRAL_REGION: {{centralConfig.region}}
160
- CENTRAL_AUTH_CLIENTID: {{centralConfig.dosaAccount.clientId}}
161
- CENTRAL_ORGANIZATIONID: "{{centralConfig.orgId}}"
162
- CENTRAL_ENVIRONMENT: {{centralConfig.environment}}
163
- CENTRAL_TEAM: "{{centralConfig.ampcTeamName}}"
164
- {{#if isOpenTraffic}}
165
- # API Gateway open traffic logs
166
- EVENT_LOG_INPUT: false
167
- OPENTRAFFIC_LOG_INPUT: true
168
- OPENTRAFFIC_LOG_PATHS: /events/*.log
169
- {{else}}
170
- # API Gateway event logs
171
- EVENT_LOG_PATHS: /events/*.log
172
- {{/if}}
173
-
174
- {{#if isGatewayOnly}}
175
- APIGATEWAY_ONLY: {{isGatewayOnly}}
176
- {{else}}
177
- APIMANAGER_HOST: {{apiManagerHost}}
178
- APIMANAGER_PORT: {{apiManagerPort}}
179
- # flip to true if API manager is using a self signed certificate
180
- APIMANAGER_SSL_INSECURESKIPVERIFY: false
181
- {{/if}}
182
- {{#if isOpenTraffic}}
183
- {{else}}
184
- APIGATEWAY_HOST: {{apiGatewayHost}}
185
- APIGATEWAY_PORT: {{apiGatewayPort}}
186
- # flip to true if API manager is using a self signed certificate
187
- APIGATEWAY_SSL_INSECURESKIPVERIFY: false
188
- APIGATEWAY_HEALTHCHECKPORT: 8090
189
- APIGATEWAY_HEALTHCHECKPROTOCOL: "https"
190
- APIGATEWAY_HEALTHCHECKURI: login
191
- {{/if}}
192
-
193
- # The below secret are a pre-requisite. Please refer to the readme file for more info on it.
194
- secrets:
195
- credentials: {{amplifyAgentCreds}}
196
- keys: {{amplifyAgentKeys}}
197
-
198
- podAnnotations:
199
-
200
- podSecurityContext:
201
- supplementalGroups: [ 2500 ]
202
- fsGroupChangePolicy: "OnRootMismatch"
203
-
204
- securityContext:
205
-
206
- tolerations:
207
-
208
- affinity:
209
-
210
- nodeSelector: {}
211
-
212
- # Add additional labels to the agent deployment which may be required based on your configuration
213
- additionalLabels:
214
-
215
- serviceAccount:
216
- # Specifies whether a service account should be created
217
- create: true
218
- # The name of the service account to use.
219
- # If not set and create is true, a name is generated using the fullname template
220
- name:
221
-
222
- resources: {}
223
- # We usually recommend not to specify default resources and to leave this as a conscious
224
- # choice for the user. This also increases chances charts run on environments with little
225
- # resources, such as Minikube. If you do want to specify resources, uncomment the following
226
- # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
227
- # limits:
228
- # cpu: 100m
229
- # memory: 128Mi
230
- # requests:
231
- # cpu: 100m
232
- # memory: 128Mi
233
-
234
- persistentVolumeClaimConfig:
235
- data:
236
- # storage class to persist contents of data directory in the agent - should be available in the cluster i.e gp2, gp2-csi, default
237
- storageClass: gp2-csi
238
- name: data-claim
239
- events:
240
- # update this value to match the name of the volume claim that is used for the event logs
241
- name: events-claim
242
- `;
243
- };
244
-
245
- /**
246
- * @description Generates the V7 DA env vars file.
247
- */
248
- exports.v7TAHelmOverrideTemplate = v7TAHelmOverrideTemplate;
249
- const v7DAEnvVarTemplate = () => {
250
- return `# API Manager configs
251
- APIMANAGER_AUTH_USERNAME={{apiManagerAuthUser}}
252
- APIMANAGER_AUTH_PASSWORD={{apiManagerAuthPass}}
253
- APIMANAGER_HOST={{apiManagerHost}}
254
- APIMANAGER_PORT={{apiManagerPort}}
255
-
256
- # Amplify Central configs
257
- CENTRAL_AGENTNAME={{centralConfig.daAgentName}}
258
- CENTRAL_AUTH_CLIENTID={{centralConfig.dosaAccount.clientId}}
259
- CENTRAL_AUTH_PRIVATEKEY={{centralConfig.dosaAccount.templatePrivateKey}}
260
- CENTRAL_AUTH_PUBLICKEY={{centralConfig.dosaAccount.templatePublicKey}}
261
- CENTRAL_ENVIRONMENT={{centralConfig.environment}}
262
- CENTRAL_ORGANIZATIONID={{centralConfig.orgId}}
263
- {{#compare . centralConfig.ampcTeamName "" operator="!=" }}
264
- CENTRAL_TEAM={{centralConfig.ampcTeamName}}
265
- {{/compare}}
266
- CENTRAL_REGION={{centralConfig.region}}
267
-
268
- # Logging configs
269
- # Define the logging level: info, debug, error
270
- LOG_LEVEL=info
271
- # Specify where to send the log: stdout, file, both
272
- LOG_OUTPUT=stdout
273
- # Define where the log files are written
274
- LOG_FILE_PATH=logs
275
- `;
276
- };
277
-
278
- /**
279
- * @description Generates the V7 DA helm overrides.
280
- */
281
- exports.v7DAEnvVarTemplate = v7DAEnvVarTemplate;
282
- const v7DAHelmOverrideTemplate = () => {
283
- return `---
284
- replicaCount: 1
285
-
286
- # Discovery Agent image overrides
287
- # image:
288
- # fullPath:
289
- # registry: docker.repository.axway.com
290
- # repository: ampc-beano-docker-prod/1.2
291
- # name: v7-discovery-agent
292
- # tag: "{{daVersion}}"
293
- # pullPolicy: IfNotPresent
294
- # pullSecret:
295
-
296
- nameOverride: ""
297
- fullnameOverride: ""
298
-
299
- # Health Check port
300
- statusPort: 8989
301
-
302
- # The following links document the environment variables for discovery.
303
- # https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/connect_api_manager/agent-variables/index.html#common-variables-to-both-agents
304
- # https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/connect_api_manager/agent-variables/index.html#specific-variables-for-discovery-agent
305
- env:
306
- LOG_LEVEL: info
307
- CENTRAL_AGENTNAME: {{centralConfig.daAgentName}}
308
- CENTRAL_REGION: {{centralConfig.region}}
309
- CENTRAL_AUTH_CLIENTID: {{centralConfig.dosaAccount.clientId}}
310
- CENTRAL_ORGANIZATIONID: "{{centralConfig.orgId}}"
311
- CENTRAL_ENVIRONMENT: {{centralConfig.environment}}
312
- CENTRAL_TEAM: "{{centralConfig.ampcTeamName}}"
313
- APIMANAGER_HOST: {{apiManagerHost}}
314
- APIMANAGER_PORT: {{apiManagerPort}}
315
- # flip to true if API manager is using a self signed certificate
316
- APIMANAGER_SSL_INSECURESKIPVERIFY: false
317
-
318
- # The below secret are a pre-requisite. Please refer to the readme file for more info on it.
319
- secrets:
320
- credentials: {{amplifyAgentCreds}}
321
- keys: {{amplifyAgentKeys}}
322
-
323
- podAnnotations:
324
-
325
- podSecurityContext:
326
- supplementalGroups: [ 2500 ]
327
- fsGroupChangePolicy: "OnRootMismatch"
328
-
329
- securityContext:
330
-
331
- tolerations:
332
-
333
- affinity:
334
-
335
- nodeSelector: {}
336
-
337
- # Add additional labels to the agent deployment which may be required based on your configuration
338
- additionalLabels:
339
-
340
- serviceAccount:
341
- # Specifies whether a service account should be created
342
- create: true
343
- # The name of the service account to use.
344
- # If not set and create is true, a name is generated using the fullname template
345
- name:
346
-
347
- resources: {}
348
- # We usually recommend not to specify default resources and to leave this as a conscious
349
- # choice for the user. This also increases chances charts run on environments with little
350
- # resources, such as Minikube. If you do want to specify resources, uncomment the following
351
- # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
352
- # limits:
353
- # cpu: 100m
354
- # memory: 128Mi
355
- # requests:
356
- # cpu: 100m
357
- # memory: 128Mi
358
- `;
359
- };
360
- exports.v7DAHelmOverrideTemplate = v7DAHelmOverrideTemplate;
@@ -1,66 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.gitLabDAEnvVarTemplate = exports.GitLabAgentValues = void 0;
7
- var _types = require("../../../../common/types");
8
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
9
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
10
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
11
- * @description Values to provide to the gitLab templates.
12
- */
13
- class GitLabAgentValues {
14
- constructor() {
15
- _defineProperty(this, "token", void 0);
16
- _defineProperty(this, "baseURL", void 0);
17
- _defineProperty(this, "repositoryID", void 0);
18
- _defineProperty(this, "repositoryBranch", void 0);
19
- _defineProperty(this, "paths", void 0);
20
- _defineProperty(this, "filters", void 0);
21
- _defineProperty(this, "daQueueName", void 0);
22
- _defineProperty(this, "daVersion", void 0);
23
- _defineProperty(this, "centralConfig", void 0);
24
- this.token = '';
25
- this.baseURL = '';
26
- this.repositoryID = '';
27
- this.repositoryBranch = '';
28
- this.daQueueName = '';
29
- this.daVersion = '';
30
- this.paths = [];
31
- this.filters = [];
32
- this.centralConfig = new _types.CentralAgentConfig();
33
- }
34
- }
35
- exports.GitLabAgentValues = GitLabAgentValues;
36
- const gitLabDAEnvVarTemplate = () => {
37
- return `# GitLab configs
38
- GITLAB_TOKEN={{token}}
39
- GITLAB_BASE_URL={{baseURL}}
40
- GITLAB_REPOSITORY_ID={{repositoryID}}
41
- GITLAB_REPOSITORY_BRANCH={{repositoryBranch}}
42
- GITLAB_REPOSITORY_SPEC_PATHS={{paths}}
43
- GITLAB_REPOSITORY_SPEC_FILTERS={{filters}}
44
-
45
- # Amplify Central configs
46
- CENTRAL_AGENTNAME={{centralConfig.daAgentName}}
47
- CENTRAL_AUTH_CLIENTID={{centralConfig.dosaAccount.clientId}}
48
- CENTRAL_AUTH_PRIVATEKEY={{centralConfig.dosaAccount.templatePrivateKey}}
49
- CENTRAL_AUTH_PUBLICKEY={{centralConfig.dosaAccount.templatePublicKey}}
50
- CENTRAL_ENVIRONMENT={{centralConfig.environment}}
51
- CENTRAL_ORGANIZATIONID={{centralConfig.orgId}}
52
- {{#compare . centralConfig.ampcTeamName "" operator="!=" }}
53
- CENTRAL_TEAM={{centralConfig.ampcTeamName}}
54
- {{/compare}}
55
- CENTRAL_REGION={{centralConfig.region}}
56
-
57
- # Logging configs
58
- # Define the logging level: info, debug, error
59
- LOG_LEVEL=info
60
- # Specify where to send the log: stdout, file, both
61
- LOG_OUTPUT=stdout
62
- # Define where the log files are written
63
- LOG_FILE_PATH=logs
64
- `;
65
- };
66
- exports.gitLabDAEnvVarTemplate = gitLabDAEnvVarTemplate;
@@ -1,75 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.graylogHelmOverrideTemplate = exports.GraylogAgentValues = void 0;
7
- var _types = require("../../../../common/types");
8
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
9
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
10
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
- /**
12
- * @description Parameters to provide to the Graylog handlebars templates.
13
- */
14
- class GraylogAgentValues {
15
- constructor() {
16
- _defineProperty(this, "namespace", void 0);
17
- _defineProperty(this, "url", void 0);
18
- _defineProperty(this, "graylogSecret", void 0);
19
- _defineProperty(this, "agentKeysSecret", void 0);
20
- _defineProperty(this, "userName", void 0);
21
- _defineProperty(this, "password", void 0);
22
- _defineProperty(this, "basePathSegmentLen", void 0);
23
- _defineProperty(this, "centralConfig", void 0);
24
- _defineProperty(this, "traceabilityConfig", void 0);
25
- this.namespace = {
26
- name: '',
27
- isNew: false
28
- };
29
- this.url = '';
30
- this.graylogSecret = '';
31
- this.agentKeysSecret = '';
32
- this.userName = '';
33
- this.password = '';
34
- this.basePathSegmentLen = 2;
35
- this.centralConfig = new _types.CentralAgentConfig();
36
- this.traceabilityConfig = new _types.TraceabilityConfig();
37
- }
38
- }
39
-
40
- /**
41
- * @description Generates the helm override file for the Amplify Graylog Agent.
42
- */
43
- exports.GraylogAgentValues = GraylogAgentValues;
44
- const graylogHelmOverrideTemplate = () => {
45
- return `---
46
- # Graylog Agent image overrides
47
- # image:
48
- # fullPath:
49
- # registry: docker.repository.axway.com
50
- # repository: ampc-beano-docker-prod/1.1
51
- # name: graylog-agent
52
- # tag:
53
- # pullPolicy: IfNotPresent
54
- # pullSecret:
55
-
56
- graylog:
57
- url: {{url}}
58
- basePathSegmentLen: {{basePathSegmentLen}}
59
-
60
- secrets:
61
- graylog:
62
- name: {{graylogSecret}}
63
- agent:
64
- name: {{agentKeysSecret}}
65
-
66
- env:
67
- CENTRAL_REGION: {{centralConfig.region}}
68
- CENTRAL_ORGANIZATIONID: "{{centralConfig.orgId}}"
69
- CENTRAL_TEAM: {{centralConfig.ampcTeamName}}
70
- CENTRAL_ENVIRONMENT: {{centralConfig.environment}}
71
- CENTRAL_AGENTNAME: {{centralConfig.caAgentName}}
72
- CENTRAL_AUTH_CLIENTID: {{centralConfig.dosaAccount.clientId}}
73
- `;
74
- };
75
- exports.graylogHelmOverrideTemplate = graylogHelmOverrideTemplate;
@@ -1,116 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ibmAPIConnectTAEnvVarTemplate = exports.ibmAPIConnectDAEnvVarTemplate = exports.IBMAPIConnectAgentValues = void 0;
7
- var _types = require("../../../../common/types");
8
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
9
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
10
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
- /**
12
- * @description Parameters to provide to the IBM API Connect handlebars templates.
13
- */
14
- class IBMAPIConnectAgentValues {
15
- constructor() {
16
- _defineProperty(this, "apiConnectURL", void 0);
17
- _defineProperty(this, "apiConnectOrgName", void 0);
18
- _defineProperty(this, "apiConnectCatalogName", void 0);
19
- _defineProperty(this, "apiConnectAuthAPIKey", void 0);
20
- _defineProperty(this, "apiConnectAuthClientID", void 0);
21
- _defineProperty(this, "apiConnectAuthClientSecret", void 0);
22
- _defineProperty(this, "apiConnectConsumerOrgOwnerUser", void 0);
23
- _defineProperty(this, "apiConnectConsumerOrgOwnerRegistry", void 0);
24
- _defineProperty(this, "apiConnectAnalyticsServerName", void 0);
25
- _defineProperty(this, "centralConfig", void 0);
26
- _defineProperty(this, "traceabilityConfig", void 0);
27
- this.apiConnectURL = '';
28
- this.apiConnectOrgName = '';
29
- this.apiConnectCatalogName = '';
30
- this.apiConnectAuthAPIKey = '';
31
- this.apiConnectAuthClientID = '';
32
- this.apiConnectAuthClientSecret = '';
33
- this.apiConnectConsumerOrgOwnerUser = '';
34
- this.apiConnectConsumerOrgOwnerRegistry = '';
35
- this.apiConnectAnalyticsServerName = '';
36
- this.centralConfig = new _types.CentralAgentConfig();
37
- this.traceabilityConfig = new _types.TraceabilityConfig();
38
- }
39
- }
40
-
41
- /**
42
- * @description Generates the IBM API Connect DA env vars file.
43
- */
44
- exports.IBMAPIConnectAgentValues = IBMAPIConnectAgentValues;
45
- const ibmAPIConnectDAEnvVarTemplate = () => {
46
- return `# IBM API Connect configs
47
- APICONNECT_URL={{apiConnectURL}}
48
- APICONNECT_ORGANIZATIONNAME={{apiConnectOrgName}}
49
- APICONNECT_CATALOGNAME={{apiConnectCatalogName}}
50
- APICONNECT_AUTH_APIKEY={{apiConnectAuthAPIKey}}
51
- APICONNECT_AUTH_CLIENTID={{apiConnectAuthClientID}}
52
- APICONNECT_AUTH_CLIENTSECRET={{apiConnectAuthClientSecret}}
53
- APICONNECT_CONSUMERORGOWNER_USER={{apiConnectConsumerOrgOwnerUser}}
54
- APICONNECT_CONSUMERORGOWNER_REGISTRY={{apiConnectConsumerOrgOwnerRegistry}}
55
-
56
- # Amplify Central configs
57
- CENTRAL_AGENTNAME={{centralConfig.daAgentName}}
58
- CENTRAL_AUTH_CLIENTID={{centralConfig.dosaAccount.clientId}}
59
- CENTRAL_AUTH_PRIVATEKEY={{centralConfig.dosaAccount.templatePrivateKey}}
60
- CENTRAL_AUTH_PUBLICKEY={{centralConfig.dosaAccount.templatePublicKey}}
61
- CENTRAL_ENVIRONMENT={{centralConfig.environment}}
62
- CENTRAL_ORGANIZATIONID={{centralConfig.orgId}}
63
- CENTRAL_TEAM={{centralConfig.ampcTeamName}}
64
- CENTRAL_REGION={{centralConfig.region}}
65
-
66
- # Logging configs
67
- # Define the logging level: info, debug, error
68
- LOG_LEVEL=info
69
- # Specify where to send the log: stdout, file, both
70
- LOG_OUTPUT=stdout
71
- # Define where the log files are written
72
- LOG_FILE_PATH=logs
73
- `;
74
- };
75
-
76
- /**
77
- * @description Generates the IBM API Connect TA env vars file.
78
- */
79
- exports.ibmAPIConnectDAEnvVarTemplate = ibmAPIConnectDAEnvVarTemplate;
80
- const ibmAPIConnectTAEnvVarTemplate = () => {
81
- return `# IBM API Connect configs
82
- APICONNECT_URL={{apiConnectURL}}
83
- APICONNECT_ORGANIZATIONNAME={{apiConnectOrgName}}
84
- APICONNECT_CATALOGNAME={{apiConnectCatalogName}}
85
- APICONNECT_AUTH_APIKEY={{apiConnectAuthAPIKey}}
86
- APICONNECT_AUTH_CLIENTID={{apiConnectAuthClientID}}
87
- APICONNECT_AUTH_CLIENTSECRET={{apiConnectAuthClientSecret}}
88
- APICONNECT_ANALYTICSSERVERNAME={{apiConnectAnalyticsServerName}}
89
-
90
- # Amplify Central configs
91
- {{#if traceabilityConfig.usageReportingOffline}}
92
- CENTRAL_USAGEREPORTING_OFFLINE={{traceabilityConfig.usageReportingOffline}}
93
- CENTRAL_ENVIRONMENTID={{centralConfig.environmentId}}
94
- CENTRAL_AGENTNAME={{centralConfig.taAgentName}}
95
- {{else}}
96
- CENTRAL_AGENTNAME={{centralConfig.taAgentName}}
97
- CENTRAL_AUTH_CLIENTID={{centralConfig.dosaAccount.clientId}}
98
- CENTRAL_AUTH_PRIVATEKEY={{centralConfig.dosaAccount.templatePrivateKey}}
99
- CENTRAL_AUTH_PUBLICKEY={{centralConfig.dosaAccount.templatePublicKey}}
100
- CENTRAL_ENVIRONMENT={{centralConfig.environment}}
101
- CENTRAL_ORGANIZATIONID={{centralConfig.orgId}}
102
- CENTRAL_TEAM={{centralConfig.ampcTeamName}}
103
- CENTRAL_REGION={{centralConfig.region}}
104
-
105
- {{/if}}
106
-
107
- # Logging configs
108
- # Define the logging level: info, debug, error
109
- LOG_LEVEL=info
110
- # Specify where to send the log: stdout, file, both
111
- LOG_OUTPUT=stdout
112
- # Define where the log files are written
113
- LOG_FILE_PATH=logs
114
- `;
115
- };
116
- exports.ibmAPIConnectTAEnvVarTemplate = ibmAPIConnectTAEnvVarTemplate;