@axway/axway-central-cli 2.10.0 → 2.11.0-rc.1

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.
@@ -112,7 +112,7 @@ const askDosaClientId = async (client, showWarning = true) => {
112
112
  } else {
113
113
  // We're using an existing service account. Notify user to make its keys available to the agents.
114
114
  if (showWarning) {
115
- console.log(_chalk.default.yellow('Please make sure your "private_key.pem" and "public_key.pem" files for the selected service account are copied to the folder location of the agents.'));
115
+ console.log(_chalk.default.yellow('Please make sure your "private_key.pem" and "public_key.pem" files for the selected service account are in this installation folder.'));
116
116
  } // Fetch selected service account's client ID and return info about it.
117
117
 
118
118
 
@@ -191,9 +191,9 @@ env:
191
191
  CENTRAL_AUTH_URL: {{centralConfig.authUrl}}
192
192
  CENTRAL_DEPLOYMENT: {{centralConfig.deployment}}
193
193
  CENTRAL_ENVIRONMENT: {{centralConfig.environment}}
194
- CENTRAL_ORGANIZATIONID: "{{centralConfig.ampcTeamName}}"
194
+ CENTRAL_ORGANIZATIONID: "{{centralConfig.orgId}}"
195
195
  {{#compare . centralConfig.ampcTeamName "" operator="!=" }}
196
- CENTRAL_TEAM={{centralConfig.ampcTeamName}}
196
+ CENTRAL_TEAM: {{centralConfig.ampcTeamName}}
197
197
  {{/compare}}
198
198
  CENTRAL_URL: {{centralConfig.url}}
199
199
  EVENT_LOG_FILE_PATHS: /events/*.log
@@ -317,7 +317,7 @@ env:
317
317
  CENTRAL_ENVIRONMENT: {{centralConfig.environment}}
318
318
  CENTRAL_ORGANIZATIONID: "{{centralConfig.orgId}}"
319
319
  {{#compare . centralConfig.ampcTeamName "" operator="!=" }}
320
- CENTRAL_TEAM={{centralConfig.ampcTeamName}}
320
+ CENTRAL_TEAM: {{centralConfig.ampcTeamName}}
321
321
  {{/compare}}
322
322
  CENTRAL_URL: {{centralConfig.url}}
323
323
  LOG_LEVEL: info
@@ -71,6 +71,7 @@ const istioPrompts = {
71
71
  enterCertificatePath: 'Enter the file path to the certificate',
72
72
  existingIstioPrompt: 'Use existing Istio installation?',
73
73
  askGatewayNamespace: 'Select the namespace where the Istio ingress gateway is running',
74
+ profilePrompt: 'Select the Istio profile to use',
74
75
  // kubernetes
75
76
  enterMeshAgentNamespace: 'Enter the namespace to use for the Amplify Istio Agents',
76
77
  alsModePrompt: 'Select Traceability Agent HTTP header publishing mode',
@@ -164,6 +165,11 @@ const askCertificateOption = async () => (0, _basicPrompts.askList)({
164
165
  name: 'Provide certificate',
165
166
  value: _types.Certificate.PROVIDE
166
167
  }]
168
+ });
169
+
170
+ const askIstioProfile = async () => (0, _basicPrompts.askList)({
171
+ msg: istioPrompts.profilePrompt,
172
+ choices: _types.IstioProfileChoices
167
173
  }); //Setup Overrides
168
174
 
169
175
 
@@ -181,6 +187,7 @@ const setupIstio = async istioValues => {
181
187
  return istioInstallValues;
182
188
  }
183
189
 
190
+ istioInstallValues.profile = await askIstioProfile();
184
191
  console.log(_chalk.default.gray('\nFor a Kubernetes cluster exposing HTTPS endpoints, you must own or be able to configure a certificate for the correspoinding fully qualified domain name\n'));
185
192
  istioInstallValues.host = (await askHost()).toLowerCase();
186
193
 
@@ -325,7 +332,7 @@ const createIstioOverride = overrides => {
325
332
  console.log(`\nIstio override file has been placed at ${process.cwd()}/${overrideFileName}`);
326
333
 
327
334
  if (overrides.istioInstallValues.isNewInstall) {
328
- console.log('To complete the istio installation run the following command:', _chalk.default.cyan(`\n istioctl install --set profile=demo -f ${overrideFileName}\n`));
335
+ console.log('To complete the istio installation run the following command:', _chalk.default.cyan(`\n istioctl install --set profile=${overrides.istioInstallValues.profile} -f ${overrideFileName}\n`));
329
336
  } else {
330
337
  console.log(_chalk.default.cyan(` Please merge the generated ${overrideFileName} file with your Istio configuration to allow the Traceability Agent to function.\n`));
331
338
  }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.docsUrl = exports.commonCmdArgsDescription = exports.cliVersionHeader = exports.YesNoChoices = exports.YesNo = exports.WAIT_TIMEOUT = exports.TrueFalseChoices = exports.TrueFalse = exports.TraceabilityConfig = exports.Regions = exports.PublicRepoUrl = exports.PublicDockerRepoBaseUrl = exports.Protocol = exports.ProdBaseUrls = exports.Platforms = exports.OutputTypes = exports.MAX_FILE_SIZE = exports.MAX_CACHE_FILE_SIZE = exports.LoggingSource = exports.KindTypes = exports.Kind = 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.APICDeployments = exports.ABORT_TIMEOUT = void 0;
6
+ exports.docsUrl = exports.commonCmdArgsDescription = exports.cliVersionHeader = exports.YesNoChoices = exports.YesNo = exports.WAIT_TIMEOUT = exports.TrueFalseChoices = exports.TrueFalse = exports.TraceabilityConfig = exports.Regions = exports.PublicRepoUrl = exports.PublicDockerRepoBaseUrl = exports.Protocol = exports.ProdBaseUrls = exports.Platforms = exports.OutputTypes = 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.APICDeployments = exports.ABORT_TIMEOUT = void 0;
7
7
 
8
8
  var _dataService = require("./dataService");
9
9
 
@@ -203,6 +203,29 @@ const YesNoChoices = [{
203
203
  value: YesNo.No
204
204
  }];
205
205
  exports.YesNoChoices = YesNoChoices;
206
+ const IstioProfileChoices = [{
207
+ name: 'default',
208
+ value: 'default'
209
+ }, {
210
+ name: 'demo',
211
+ value: 'demo'
212
+ }, {
213
+ name: 'empty',
214
+ value: 'empty'
215
+ }, {
216
+ name: 'minimal',
217
+ value: 'minimal'
218
+ }, {
219
+ name: 'openshift',
220
+ value: 'openshift'
221
+ }, {
222
+ name: 'preview',
223
+ value: 'preview'
224
+ }, {
225
+ name: 'remote',
226
+ value: 'remote'
227
+ }];
228
+ exports.IstioProfileChoices = IstioProfileChoices;
206
229
  // exporting for tests
207
230
  let AgentConfigTypes;
208
231
  exports.AgentConfigTypes = AgentConfigTypes;
@@ -712,20 +735,23 @@ class IstioInstallValues {
712
735
 
713
736
  _defineProperty(this, "protocol", void 0);
714
737
 
738
+ _defineProperty(this, "profile", void 0);
739
+
715
740
  _defineProperty(this, "targetPort", void 0);
716
741
 
717
742
  _defineProperty(this, "certificateOption", void 0);
718
743
 
719
744
  this.alsNamespace = 'amplify-agents';
745
+ this.certificateOption = '';
720
746
  this.enableAls = false;
721
747
  this.enableTracing = false;
722
748
  this.gatewayNamespace = 'istio-system';
723
749
  this.host = '';
724
750
  this.isNewInstall = true;
725
751
  this.port = 8080;
752
+ this.profile = 'demo';
726
753
  this.protocol = Protocol.HTTP;
727
754
  this.targetPort = 0;
728
- this.certificateOption = '';
729
755
  }
730
756
 
731
757
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axway/axway-central-cli",
3
- "version": "2.10.0",
3
+ "version": "2.11.0-rc.1",
4
4
  "description": "Manage APIs, services and publish to the Unified Catalog",
5
5
  "homepage": "https://platform.axway.com",
6
6
  "author": {