@axway/axway-central-cli 2.17.0 → 2.18.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 +41 -70
- package/dist/commands/install/apigeexSaasAgents.js +33 -96
- package/dist/commands/install/awsAgents.js +87 -137
- package/dist/commands/install/awsSaasAgents.js +48 -140
- package/dist/commands/install/azureAgents.js +37 -77
- package/dist/commands/install/edgeAgents.js +15 -108
- 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 +38 -115
- package/dist/commands/install/platform.js +18 -50
- 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 +117 -342
- package/dist/common/utils.js +37 -99
- package/dist/main.js +0 -2
- package/package.json +2 -2
|
@@ -3,37 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.resourceRegex = exports.percentageRegex = exports.namespaceRegex = exports.maskingRegex = exports.invalidResourceMsg = exports.invalidPercentage = exports.invalidNamespace = exports.invalidDosaName = exports.invalidDomainName = exports.frequencyRegex = exports.dosaRegex = exports.domainNameRegex = exports.AzureRegexPatterns = exports.AWSRegexPatterns = exports.APIGEEXRegexPatterns = void 0;
|
|
7
|
-
const resourceRegex = '^(?:[a-z0-9]*(?:\\.(?=[a-z0-9])|-+(?=[a-z0-9]))?)+[a-z0-9]$';
|
|
8
|
-
exports.
|
|
9
|
-
const
|
|
10
|
-
exports.
|
|
11
|
-
const
|
|
12
|
-
exports.
|
|
13
|
-
const
|
|
14
|
-
exports.
|
|
15
|
-
const
|
|
16
|
-
exports.
|
|
17
|
-
const
|
|
18
|
-
exports.frequencyRegex = frequencyRegex;
|
|
19
|
-
const maskingRegex = '^[a-zA-Z0-9-*#^~.{}]{0,5}$';
|
|
20
|
-
exports.maskingRegex = maskingRegex;
|
|
21
|
-
const invalidPercentage = 'Percentage must be an integer between 1-100';
|
|
22
|
-
exports.invalidPercentage = invalidPercentage;
|
|
23
|
-
const invalidDosaName = 'Account name can contain A-z 0-9 _ - ( ) [ ] and can include 1-100 characters.';
|
|
24
|
-
exports.invalidDosaName = invalidDosaName;
|
|
25
|
-
const invalidNamespace = `Namespace must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character, and be fewer than 100 characters long.`;
|
|
26
|
-
exports.invalidNamespace = invalidNamespace;
|
|
27
|
-
const invalidDomainName = 'The host must be valid according to RFC 1123 specification';
|
|
28
|
-
exports.invalidDomainName = invalidDomainName;
|
|
29
|
-
|
|
6
|
+
exports.resourceRegex = exports.percentageRegex = exports.namespaceRegex = exports.maskingRegex = exports.invalidResourceMsg = exports.invalidPercentage = exports.invalidNamespace = exports.invalidDosaName = exports.invalidDomainName = exports.frequencyRegex = exports.dosaRegex = exports.domainNameRegex = exports.GitHubRegexPatterns = exports.AzureRegexPatterns = exports.AWSRegexPatterns = exports.APIGEEXRegexPatterns = void 0;
|
|
7
|
+
const resourceRegex = exports.resourceRegex = '^(?:[a-z0-9]*(?:\\.(?=[a-z0-9])|-+(?=[a-z0-9]))?)+[a-z0-9]$';
|
|
8
|
+
const namespaceRegex = exports.namespaceRegex = '^[a-z0-9]?(?:[-a-z0-9]*[a-z0-9]){1,100}?$';
|
|
9
|
+
const domainNameRegex = exports.domainNameRegex = '^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\\.)+([A-Za-z]){2,}$';
|
|
10
|
+
const dosaRegex = exports.dosaRegex = '^[\\w\\s-()[\\]]{1,100}$';
|
|
11
|
+
const percentageRegex = exports.percentageRegex = '^[1-9][0-9]?$|^100$';
|
|
12
|
+
const frequencyRegex = exports.frequencyRegex = '^(\\d*[d])?(\\d*[h])?(\\d*[m])?$|^$';
|
|
13
|
+
const maskingRegex = exports.maskingRegex = '^[a-zA-Z0-9-*#^~.{}]{0,5}$';
|
|
14
|
+
const invalidPercentage = exports.invalidPercentage = 'Percentage must be an integer between 1-100';
|
|
15
|
+
const invalidDosaName = exports.invalidDosaName = 'Account name can contain A-z 0-9 _ - ( ) [ ] and can include 1-100 characters.';
|
|
16
|
+
const invalidNamespace = exports.invalidNamespace = `Namespace must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character, and be fewer than 100 characters long.`;
|
|
17
|
+
const invalidDomainName = exports.invalidDomainName = 'The host must be valid according to RFC 1123 specification';
|
|
30
18
|
const invalidResourceMsg = resource => {
|
|
31
19
|
return `${resource} must consist of lower case alphanumeric characters, ' - ' or '.', and be fewer than 100 characters long`;
|
|
32
|
-
};
|
|
33
|
-
|
|
20
|
+
};
|
|
34
21
|
|
|
22
|
+
// AWSRegexPatterns - regex patters to validate user inputs
|
|
35
23
|
exports.invalidResourceMsg = invalidResourceMsg;
|
|
36
|
-
const AWSRegexPatterns = {
|
|
24
|
+
const AWSRegexPatterns = exports.AWSRegexPatterns = {
|
|
37
25
|
AWS_REGEXP: '^[0-9A-Za-z\\.\\-_]*(?<!/\\.)$',
|
|
38
26
|
AWS_REGEXP_LOG_GROUP_NAME: '^[0-9A-Za-z\\.\\-_]*(?<!/\\.)$|^$',
|
|
39
27
|
AWS_REGEXP_VPC_ID: '^vpc-[0-9a-z]*$|^$',
|
|
@@ -44,16 +32,23 @@ const AWSRegexPatterns = {
|
|
|
44
32
|
AWS_REGEXP_SECRET_ACCESS_KEY: '[a-zA-Z0-9+/]{40}',
|
|
45
33
|
AWS_REGEXP_ROLE_ARN: '^arn:aws[a-zA-Z-]*:iam::\\d{12}:role\\/?[a-zA-Z0-9+=,.@\\-_\\/]{1,128}$',
|
|
46
34
|
AWS_ACCESS_LOG_ARN: '^arn:aws[a-zA-Z-]*:logs:[a-zA-Z0-9\-]*:\\d{12}:log-group:[a-zA-Z0-9_\\-\\/\\.#]{1,512}$'
|
|
47
|
-
};
|
|
35
|
+
};
|
|
48
36
|
|
|
49
|
-
|
|
50
|
-
const APIGEEXRegexPatterns = {
|
|
37
|
+
// APIGEEXRegexPatterns - regex patters to validate user inputs
|
|
38
|
+
const APIGEEXRegexPatterns = exports.APIGEEXRegexPatterns = {
|
|
51
39
|
APIGEEX_REGEXP_PROJECT_ID: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
|
|
52
40
|
AWS_REGEXP_EMAIL_ADDRESS: '^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$'
|
|
53
|
-
};
|
|
41
|
+
};
|
|
54
42
|
|
|
55
|
-
|
|
56
|
-
const AzureRegexPatterns = {
|
|
43
|
+
// AzureRegexPatterns - regex patters to validate user inputs
|
|
44
|
+
const AzureRegexPatterns = exports.AzureRegexPatterns = {
|
|
57
45
|
azureApiManagementServiceNameRegex: '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'
|
|
58
46
|
};
|
|
59
|
-
|
|
47
|
+
|
|
48
|
+
// GitHubRegexPatterns - regex patters to validate user inputs
|
|
49
|
+
const GitHubRegexPatterns = exports.GitHubRegexPatterns = {
|
|
50
|
+
gitHubAccessTokenRegex: '^ghp_[a-zA-Z0-9]{36}$',
|
|
51
|
+
gitHubRepositoryOwnerRegex: '^(?!-)(?!.*--)[a-zA-Z0-9-]{1,37}(?<!-)$',
|
|
52
|
+
gitHubRepositoryNameRegex: '^[\w-\.]+$',
|
|
53
|
+
gitHubFilePathRegex: '^\/.*$'
|
|
54
|
+
};
|
|
@@ -4,36 +4,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.awsTAEnvVarTemplate = exports.awsDAEnvVarTemplate = exports.AWSAgentValues = void 0;
|
|
7
|
-
|
|
8
7
|
var _types = require("../../../../common/types");
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
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); }
|
|
12
11
|
/**
|
|
13
12
|
* @description Values to provide to the aws handlebars templates.
|
|
14
13
|
*/
|
|
14
|
+
|
|
15
15
|
class AWSAgentValues {
|
|
16
16
|
constructor(awsDeployment) {
|
|
17
17
|
_defineProperty(this, "accessKey", void 0);
|
|
18
|
-
|
|
19
18
|
_defineProperty(this, "secretKey", void 0);
|
|
20
|
-
|
|
21
19
|
_defineProperty(this, "logGroup", void 0);
|
|
22
|
-
|
|
23
20
|
_defineProperty(this, "region", void 0);
|
|
24
|
-
|
|
25
21
|
_defineProperty(this, "daQueueName", void 0);
|
|
26
|
-
|
|
27
22
|
_defineProperty(this, "taQueueName", void 0);
|
|
28
|
-
|
|
29
23
|
_defineProperty(this, "apigwAgentConfigZipFile", void 0);
|
|
30
|
-
|
|
31
24
|
_defineProperty(this, "centralConfig", void 0);
|
|
32
|
-
|
|
33
25
|
_defineProperty(this, "traceabilityConfig", void 0);
|
|
34
|
-
|
|
35
26
|
_defineProperty(this, "cloudFormationConfig", void 0);
|
|
36
|
-
|
|
37
27
|
_defineProperty(this, "updateCloudFormationConfig", () => {
|
|
38
28
|
if (this.cloudFormationConfig.DeploymentType === 'ECS Fargate') {
|
|
39
29
|
this.cloudFormationConfig.ECSCentralOrganizationID = this.centralConfig.orgId;
|
|
@@ -46,7 +36,6 @@ class AWSAgentValues {
|
|
|
46
36
|
this.cloudFormationConfig.ECSCentralTraceabilityHost = _types.IngestionHosts[this.centralConfig.region];
|
|
47
37
|
}
|
|
48
38
|
});
|
|
49
|
-
|
|
50
39
|
this.accessKey = awsDeployment === 'Other' ? '**Insert Access Key**' : '';
|
|
51
40
|
this.secretKey = awsDeployment === 'Other' ? '**Insert Secret Key**' : '';
|
|
52
41
|
this.logGroup = '';
|
|
@@ -58,15 +47,12 @@ class AWSAgentValues {
|
|
|
58
47
|
this.traceabilityConfig = new _types.TraceabilityConfig();
|
|
59
48
|
this.cloudFormationConfig = new _types.CloudFormationConfig();
|
|
60
49
|
}
|
|
61
|
-
|
|
62
50
|
}
|
|
51
|
+
|
|
63
52
|
/**
|
|
64
53
|
* @description Generates the AWS TA env vars file.
|
|
65
54
|
*/
|
|
66
|
-
|
|
67
|
-
|
|
68
55
|
exports.AWSAgentValues = AWSAgentValues;
|
|
69
|
-
|
|
70
56
|
const awsTAEnvVarTemplate = () => {
|
|
71
57
|
return `# AWS configs
|
|
72
58
|
AWS_REGION={{region}}
|
|
@@ -117,13 +103,11 @@ LOG_OUTPUT=stdout
|
|
|
117
103
|
LOG_FILE_PATH=logs
|
|
118
104
|
`;
|
|
119
105
|
};
|
|
106
|
+
|
|
120
107
|
/**
|
|
121
108
|
* @description Generates the AWS DA env vars file.
|
|
122
109
|
*/
|
|
123
|
-
|
|
124
|
-
|
|
125
110
|
exports.awsTAEnvVarTemplate = awsTAEnvVarTemplate;
|
|
126
|
-
|
|
127
111
|
const awsDAEnvVarTemplate = () => {
|
|
128
112
|
return `# AWS configs
|
|
129
113
|
AWS_REGION={{region}}
|
|
@@ -158,5 +142,4 @@ LOG_OUTPUT=stdout
|
|
|
158
142
|
LOG_FILE_PATH=logs
|
|
159
143
|
`;
|
|
160
144
|
};
|
|
161
|
-
|
|
162
145
|
exports.awsDAEnvVarTemplate = awsDAEnvVarTemplate;
|
|
@@ -4,40 +4,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.azureTAEnvVarTemplate = exports.azureDAEnvVarTemplate = exports.AzureAgentValues = void 0;
|
|
7
|
-
|
|
8
7
|
var _types = require("../../../../common/types");
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
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); }
|
|
12
11
|
/**
|
|
13
12
|
* @description Parameters to provide to the Azure handlebars templates.
|
|
14
13
|
*/
|
|
15
14
|
class AzureAgentValues {
|
|
16
15
|
constructor() {
|
|
17
16
|
_defineProperty(this, "apiManagementServiceName", void 0);
|
|
18
|
-
|
|
19
17
|
_defineProperty(this, "eventHubName", void 0);
|
|
20
|
-
|
|
21
18
|
_defineProperty(this, "eventHubNamespace", void 0);
|
|
22
|
-
|
|
23
19
|
_defineProperty(this, "policyKey", void 0);
|
|
24
|
-
|
|
25
20
|
_defineProperty(this, "policyName", void 0);
|
|
26
|
-
|
|
27
21
|
_defineProperty(this, "resourceGroupName", void 0);
|
|
28
|
-
|
|
29
22
|
_defineProperty(this, "servicePrincipalClientId", void 0);
|
|
30
|
-
|
|
31
23
|
_defineProperty(this, "servicePrincipalClientSecret", void 0);
|
|
32
|
-
|
|
33
24
|
_defineProperty(this, "subscriptionId", void 0);
|
|
34
|
-
|
|
35
25
|
_defineProperty(this, "tenantId", void 0);
|
|
36
|
-
|
|
37
26
|
_defineProperty(this, "centralConfig", void 0);
|
|
38
|
-
|
|
39
27
|
_defineProperty(this, "traceabilityConfig", void 0);
|
|
40
|
-
|
|
41
28
|
this.apiManagementServiceName = '';
|
|
42
29
|
this.eventHubName = '';
|
|
43
30
|
this.eventHubNamespace = '';
|
|
@@ -51,15 +38,12 @@ class AzureAgentValues {
|
|
|
51
38
|
this.centralConfig = new _types.CentralAgentConfig();
|
|
52
39
|
this.traceabilityConfig = new _types.TraceabilityConfig();
|
|
53
40
|
}
|
|
54
|
-
|
|
55
41
|
}
|
|
42
|
+
|
|
56
43
|
/**
|
|
57
44
|
* @description Generates the Azure TA env vars file.
|
|
58
45
|
*/
|
|
59
|
-
|
|
60
|
-
|
|
61
46
|
exports.AzureAgentValues = AzureAgentValues;
|
|
62
|
-
|
|
63
47
|
const azureTAEnvVarTemplate = () => {
|
|
64
48
|
return `# Azure configs
|
|
65
49
|
AZURE_EVENTHUBNAME={{eventHubName}}
|
|
@@ -112,13 +96,11 @@ LOG_OUTPUT=stdout
|
|
|
112
96
|
LOG_FILE_PATH=logs
|
|
113
97
|
`;
|
|
114
98
|
};
|
|
99
|
+
|
|
115
100
|
/**
|
|
116
101
|
* @description Generates the Azure DA env vars file.
|
|
117
102
|
*/
|
|
118
|
-
|
|
119
|
-
|
|
120
103
|
exports.azureTAEnvVarTemplate = azureTAEnvVarTemplate;
|
|
121
|
-
|
|
122
104
|
const azureDAEnvVarTemplate = () => {
|
|
123
105
|
return `# Azure configs
|
|
124
106
|
AZURE_TENANTID={{tenantId}}
|
|
@@ -150,5 +132,4 @@ LOG_OUTPUT=stdout
|
|
|
150
132
|
LOG_FILE_PATH=logs
|
|
151
133
|
`;
|
|
152
134
|
};
|
|
153
|
-
|
|
154
135
|
exports.azureDAEnvVarTemplate = azureDAEnvVarTemplate;
|
|
@@ -4,56 +4,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.v7TAHelmOverrideTemplate = exports.v7TAEnvVarTemplate = exports.v7DAHelmOverrideTemplate = exports.v7DAEnvVarTemplate = exports.V7AgentValues = void 0;
|
|
7
|
-
|
|
8
7
|
var _ = require("..");
|
|
9
|
-
|
|
10
8
|
var _types = require("../../../../common/types");
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
|
|
9
|
+
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; }
|
|
10
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
11
|
+
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); }
|
|
14
12
|
/**
|
|
15
13
|
* @description Values to provide to the v7 handlebars templates.
|
|
16
14
|
*/
|
|
17
15
|
class V7AgentValues {
|
|
18
16
|
constructor() {
|
|
19
17
|
_defineProperty(this, "amplifyAgentCreds", void 0);
|
|
20
|
-
|
|
21
18
|
_defineProperty(this, "amplifyAgentKeys", void 0);
|
|
22
|
-
|
|
23
19
|
_defineProperty(this, "apiGatewayAuthPass", void 0);
|
|
24
|
-
|
|
25
20
|
_defineProperty(this, "apiGatewayAuthUser", void 0);
|
|
26
|
-
|
|
27
21
|
_defineProperty(this, "apiGatewayHost", void 0);
|
|
28
|
-
|
|
29
22
|
_defineProperty(this, "apiGatewayPort", void 0);
|
|
30
|
-
|
|
31
23
|
_defineProperty(this, "apiManagerAuthPass", void 0);
|
|
32
|
-
|
|
33
24
|
_defineProperty(this, "apiManagerAuthUser", void 0);
|
|
34
|
-
|
|
35
25
|
_defineProperty(this, "apiManagerHost", void 0);
|
|
36
|
-
|
|
37
26
|
_defineProperty(this, "apiManagerPort", void 0);
|
|
38
|
-
|
|
39
27
|
_defineProperty(this, "eventLogPath", void 0);
|
|
40
|
-
|
|
41
28
|
_defineProperty(this, "eventLogPathTemplate", void 0);
|
|
42
|
-
|
|
43
29
|
_defineProperty(this, "isGatewayOnly", void 0);
|
|
44
|
-
|
|
45
30
|
_defineProperty(this, "isOpenTraffic", void 0);
|
|
46
|
-
|
|
47
31
|
_defineProperty(this, "namespace", void 0);
|
|
48
|
-
|
|
49
32
|
_defineProperty(this, "centralConfig", void 0);
|
|
50
|
-
|
|
51
33
|
_defineProperty(this, "traceabilityConfig", void 0);
|
|
52
|
-
|
|
53
34
|
_defineProperty(this, "daVersion", void 0);
|
|
54
|
-
|
|
55
35
|
_defineProperty(this, "taVersion", void 0);
|
|
56
|
-
|
|
57
36
|
this.amplifyAgentCreds = _.amplifyAgentsCredsSecret;
|
|
58
37
|
this.amplifyAgentKeys = _.amplifyAgentsKeysSecret;
|
|
59
38
|
this.apiGatewayAuthPass = '';
|
|
@@ -77,15 +56,12 @@ class V7AgentValues {
|
|
|
77
56
|
this.daVersion = '';
|
|
78
57
|
this.taVersion = '';
|
|
79
58
|
}
|
|
80
|
-
|
|
81
59
|
}
|
|
60
|
+
|
|
82
61
|
/**
|
|
83
62
|
* @description Generates the V7 TA env vars file.
|
|
84
63
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
64
|
exports.V7AgentValues = V7AgentValues;
|
|
88
|
-
|
|
89
65
|
const v7TAEnvVarTemplate = () => {
|
|
90
66
|
return `{{#unless isGatewayOnly}}
|
|
91
67
|
# API Manager configs
|
|
@@ -159,13 +135,11 @@ LOG_OUTPUT=stdout
|
|
|
159
135
|
LOG_FILE_PATH=logs
|
|
160
136
|
`;
|
|
161
137
|
};
|
|
138
|
+
|
|
162
139
|
/**
|
|
163
140
|
* @description Generates the V7 TA helm overrides.
|
|
164
141
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
167
142
|
exports.v7TAEnvVarTemplate = v7TAEnvVarTemplate;
|
|
168
|
-
|
|
169
143
|
const v7TAHelmOverrideTemplate = () => {
|
|
170
144
|
return `---
|
|
171
145
|
replicaCount: 1
|
|
@@ -280,13 +254,11 @@ persistentVolumeClaimConfig:
|
|
|
280
254
|
name: events-claim
|
|
281
255
|
`;
|
|
282
256
|
};
|
|
257
|
+
|
|
283
258
|
/**
|
|
284
259
|
* @description Generates the V7 DA env vars file.
|
|
285
260
|
*/
|
|
286
|
-
|
|
287
|
-
|
|
288
261
|
exports.v7TAHelmOverrideTemplate = v7TAHelmOverrideTemplate;
|
|
289
|
-
|
|
290
262
|
const v7DAEnvVarTemplate = () => {
|
|
291
263
|
return `# API Manager configs
|
|
292
264
|
APIMANAGER_AUTH_USERNAME={{apiManagerAuthUser}}
|
|
@@ -318,13 +290,11 @@ LOG_OUTPUT=stdout
|
|
|
318
290
|
LOG_FILE_PATH=logs
|
|
319
291
|
`;
|
|
320
292
|
};
|
|
293
|
+
|
|
321
294
|
/**
|
|
322
295
|
* @description Generates the V7 DA helm overrides.
|
|
323
296
|
*/
|
|
324
|
-
|
|
325
|
-
|
|
326
297
|
exports.v7DAEnvVarTemplate = v7DAEnvVarTemplate;
|
|
327
|
-
|
|
328
298
|
const v7DAHelmOverrideTemplate = () => {
|
|
329
299
|
return `---
|
|
330
300
|
replicaCount: 1
|
|
@@ -402,5 +372,4 @@ resources: {}
|
|
|
402
372
|
# memory: 128Mi
|
|
403
373
|
`;
|
|
404
374
|
};
|
|
405
|
-
|
|
406
375
|
exports.v7DAHelmOverrideTemplate = v7DAHelmOverrideTemplate;
|
|
@@ -4,38 +4,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.istioInstallTemplate = exports.istioAgentsTemplate = exports.IstioValues = void 0;
|
|
7
|
-
|
|
8
7
|
var _types = require("../../../../common/types");
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
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); }
|
|
12
11
|
/**
|
|
13
12
|
* @description Values for installing the Istio Agents
|
|
14
13
|
*/
|
|
15
14
|
class IstioValues {
|
|
16
15
|
constructor() {
|
|
17
16
|
_defineProperty(this, "istioAgentValues", void 0);
|
|
18
|
-
|
|
19
17
|
_defineProperty(this, "istioInstallValues", void 0);
|
|
20
|
-
|
|
21
18
|
_defineProperty(this, "centralConfig", void 0);
|
|
22
|
-
|
|
23
19
|
_defineProperty(this, "traceabilityConfig", void 0);
|
|
24
|
-
|
|
25
20
|
this.istioAgentValues = new _types.IstioAgentValues();
|
|
26
21
|
this.istioInstallValues = new _types.IstioInstallValues();
|
|
27
22
|
this.centralConfig = new _types.CentralAgentConfig();
|
|
28
23
|
this.traceabilityConfig = new _types.TraceabilityConfig();
|
|
29
24
|
}
|
|
30
|
-
|
|
31
25
|
}
|
|
26
|
+
|
|
32
27
|
/**
|
|
33
28
|
* @description Generates the override file for the Amplify Istio Agents.
|
|
34
29
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
30
|
exports.IstioValues = IstioValues;
|
|
38
|
-
|
|
39
31
|
const istioAgentsTemplate = () => {
|
|
40
32
|
return `---
|
|
41
33
|
global:
|
|
@@ -133,13 +125,11 @@ const istioAgentsTemplate = () => {
|
|
|
133
125
|
list:
|
|
134
126
|
enabled: {{istioAgentValues.demoSvcEnabled}}`;
|
|
135
127
|
};
|
|
128
|
+
|
|
136
129
|
/**
|
|
137
130
|
* @description Generates the override file to install Istio with settings to connect to the Istio Traceability Agent.
|
|
138
131
|
*/
|
|
139
|
-
|
|
140
|
-
|
|
141
132
|
exports.istioAgentsTemplate = istioAgentsTemplate;
|
|
142
|
-
|
|
143
133
|
const istioInstallTemplate = () => {
|
|
144
134
|
return `---
|
|
145
135
|
apiVersion: install.istio.io/v1alpha1
|
|
@@ -211,5 +201,4 @@ spec:
|
|
|
211
201
|
{{/if}}
|
|
212
202
|
`;
|
|
213
203
|
};
|
|
214
|
-
|
|
215
204
|
exports.istioInstallTemplate = istioInstallTemplate;
|
|
@@ -4,16 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.install = void 0;
|
|
7
|
-
|
|
8
7
|
var _Renderer = _interopRequireDefault(require("../../common/Renderer"));
|
|
9
|
-
|
|
10
8
|
var _types = require("../../common/types");
|
|
11
|
-
|
|
12
9
|
var _agents = require("./agents");
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
const install = {
|
|
11
|
+
const install = exports.install = {
|
|
17
12
|
action({
|
|
18
13
|
console
|
|
19
14
|
}) {
|
|
@@ -24,7 +19,6 @@ To install agents in interactive mode:\t"axway central install agents"
|
|
|
24
19
|
`);
|
|
25
20
|
process.exit(1);
|
|
26
21
|
},
|
|
27
|
-
|
|
28
22
|
commands: {
|
|
29
23
|
agents: _agents.agents
|
|
30
24
|
},
|
|
@@ -36,7 +30,7 @@ To install agents in interactive mode:\t"axway central install agents"
|
|
|
36
30
|
required: false,
|
|
37
31
|
type: 'string'
|
|
38
32
|
}],
|
|
39
|
-
options: {
|
|
33
|
+
options: {
|
|
34
|
+
..._types.commonCmdArgsDescription
|
|
40
35
|
}
|
|
41
|
-
};
|
|
42
|
-
exports.install = install;
|
|
36
|
+
};
|