@hiiretail/gcp-infra-cli 0.65.1 → 0.65.2
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/generators/maintenance/manage-states/index.js +0 -3
- package/generators/resources/cloudsql/index.js +0 -2
- package/generators/resources/cloudsql-database/index.js +0 -2
- package/generators/resources/pubsub/append.js +0 -3
- package/generators/resources/pubsub/get-gcp-projects.js +0 -1
- package/generators/resources/scheduler/index.js +0 -2
- package/package.json +5 -5
- package/CHANGELOG.md +0 -95
|
@@ -8,7 +8,6 @@ const Separator = require('enquirer-separator');
|
|
|
8
8
|
const { Storage } = require('@google-cloud/storage');
|
|
9
9
|
const BaseGenerator = require('../../../src/BaseGenerator');
|
|
10
10
|
|
|
11
|
-
|
|
12
11
|
const getBucketName = (answers) => {
|
|
13
12
|
const dirName = path.basename(process.cwd());
|
|
14
13
|
let bucketName = '';
|
|
@@ -22,7 +21,6 @@ const getBucketName = (answers) => {
|
|
|
22
21
|
return bucketName;
|
|
23
22
|
};
|
|
24
23
|
|
|
25
|
-
|
|
26
24
|
const downloadStateFiles = (files, dest) => {
|
|
27
25
|
files.forEach((file) => {
|
|
28
26
|
const destFile = path.join(dest, file.name);
|
|
@@ -35,7 +33,6 @@ const downloadStateFiles = (files, dest) => {
|
|
|
35
33
|
});
|
|
36
34
|
};
|
|
37
35
|
|
|
38
|
-
|
|
39
36
|
module.exports = class extends BaseGenerator {
|
|
40
37
|
prompting() {
|
|
41
38
|
const prompts = [
|
|
@@ -26,7 +26,6 @@ module.exports = class extends SecretsGenerator {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
30
29
|
writing() {
|
|
31
30
|
const {
|
|
32
31
|
instanceType,
|
|
@@ -50,7 +49,6 @@ module.exports = class extends SecretsGenerator {
|
|
|
50
49
|
this.writeSecrets('cloud-sql', 'databases', instanceType, dbName);
|
|
51
50
|
}
|
|
52
51
|
|
|
53
|
-
|
|
54
52
|
end() {
|
|
55
53
|
const {
|
|
56
54
|
instanceType,
|
|
@@ -25,7 +25,6 @@ const appendIncludePull = async (fileContent, originalContentYaml, subscriptionF
|
|
|
25
25
|
|
|
26
26
|
const newPullArray = [];
|
|
27
27
|
|
|
28
|
-
|
|
29
28
|
newPullArray.push(
|
|
30
29
|
{
|
|
31
30
|
name: `${input.existingTopic}+${input.subscriberName}`,
|
|
@@ -61,7 +60,6 @@ const appendNotIncludePush = async (inputs, subscriptionFilePath) => {
|
|
|
61
60
|
fs.appendFileSync(subscriptionFilePath, `push_subscriptions:\n${yamlPushArray}`);
|
|
62
61
|
};
|
|
63
62
|
|
|
64
|
-
|
|
65
63
|
const appendIncludePush = async (fileContent, originalContentYaml, subscriptionFilePath, input) => {
|
|
66
64
|
if (fileContent.includes('push_subscriptions')) {
|
|
67
65
|
const pushArray = Object.values(originalContentYaml.push_subscriptions);
|
|
@@ -90,7 +88,6 @@ const appendIncludePush = async (fileContent, originalContentYaml, subscriptionF
|
|
|
90
88
|
}
|
|
91
89
|
};
|
|
92
90
|
|
|
93
|
-
|
|
94
91
|
module.exports = {
|
|
95
92
|
appendNotIncludePull,
|
|
96
93
|
appendIncludePull,
|
|
@@ -72,7 +72,6 @@ module.exports = class extends BaseGenerator {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
|
|
76
75
|
writing() {
|
|
77
76
|
['prod', 'staging'].forEach((env) => {
|
|
78
77
|
this.copyDir(
|
|
@@ -86,7 +85,6 @@ module.exports = class extends BaseGenerator {
|
|
|
86
85
|
});
|
|
87
86
|
}
|
|
88
87
|
|
|
89
|
-
|
|
90
88
|
end() {
|
|
91
89
|
this.log(`
|
|
92
90
|
${chalk.green('Your job resources have now been created. Please add any other specifications supported by the module if needed')}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiiretail/gcp-infra-cli",
|
|
3
|
-
"version": "0.65.
|
|
3
|
+
"version": "0.65.2",
|
|
4
4
|
"description": "Infrastructure as code generator for GCP.",
|
|
5
5
|
"main": "src/cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"commander": "^5.1.0",
|
|
36
36
|
"enquirer-separator": "^0.1.0",
|
|
37
37
|
"glob": "^7.1.6",
|
|
38
|
-
"inquirer": "^7.
|
|
38
|
+
"inquirer": "^7.3.3",
|
|
39
39
|
"js-yaml": "^4.1.0",
|
|
40
40
|
"npm-api": "^1.0.0",
|
|
41
41
|
"semver": "^7.3.2",
|
|
42
42
|
"sprintf-js": "^1.1.2",
|
|
43
|
-
"yeoman-environment": "^2.
|
|
44
|
-
"yeoman-generator": "^4.
|
|
43
|
+
"yeoman-environment": "^2.10.3",
|
|
44
|
+
"yeoman-generator": "^4.13.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"eslint": "^6.8.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"jest-sonar": "^0.2.5",
|
|
52
52
|
"mock-fs": "^4.12.0",
|
|
53
53
|
"yeoman-assert": "^3.1.1",
|
|
54
|
-
"yeoman-test": "^2.
|
|
54
|
+
"yeoman-test": "^2.7.0",
|
|
55
55
|
"sprintf-js": "^1.1.2"
|
|
56
56
|
}
|
|
57
57
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
### 2021-03-28
|
|
4
|
-
* Remove Pub/Sub cross-project resource according to Architecture Chapter decision.
|
|
5
|
-
|
|
6
|
-
### 2021-03-03
|
|
7
|
-
* Add the generator for creating subscriptions which will subscribe to a topic in a diffrent project
|
|
8
|
-
|
|
9
|
-
### 2021-03-01
|
|
10
|
-
* Add terraform state files maintenance utility generator
|
|
11
|
-
|
|
12
|
-
### 2021-03-01
|
|
13
|
-
* New generator for solution review board (SRB) documentation, including utilities to
|
|
14
|
-
create ADRs and C4 diagrams from Structurizr DSL
|
|
15
|
-
|
|
16
|
-
### 2021-02-02
|
|
17
|
-
* Add KMS support
|
|
18
|
-
|
|
19
|
-
### 2020-12-23
|
|
20
|
-
* Release notes schema and validator
|
|
21
|
-
|
|
22
|
-
### 2020-12-15
|
|
23
|
-
* Add more monitoring templates
|
|
24
|
-
|
|
25
|
-
### 2020-12-11
|
|
26
|
-
* Add cloudsql into monitoring generator
|
|
27
|
-
|
|
28
|
-
### 2020-12-11
|
|
29
|
-
* Add Generator for kafka connect pubsub source
|
|
30
|
-
|
|
31
|
-
### 2020-11-27
|
|
32
|
-
* Add Kafka-connect generator
|
|
33
|
-
|
|
34
|
-
### 2020-11-10
|
|
35
|
-
* Add elastic cloud generator
|
|
36
|
-
|
|
37
|
-
### 2020-10-20
|
|
38
|
-
* Add Confluent cluster generator
|
|
39
|
-
|
|
40
|
-
### 2020-10-20
|
|
41
|
-
* Add Kafka topics generator
|
|
42
|
-
|
|
43
|
-
### 2020-10-13
|
|
44
|
-
* Add Cloud Storage creation feature
|
|
45
|
-
|
|
46
|
-
### 2020-09-18
|
|
47
|
-
* Generator for update module versions
|
|
48
|
-
|
|
49
|
-
### 2020-09-14
|
|
50
|
-
* Add generator for Hii Retail IAM
|
|
51
|
-
|
|
52
|
-
### 2020-08-21
|
|
53
|
-
* Add Cloud Scheduler generator
|
|
54
|
-
|
|
55
|
-
### 2020-08-12
|
|
56
|
-
* Generator for monitoring
|
|
57
|
-
|
|
58
|
-
### 2020-06-24
|
|
59
|
-
* Add the firebase generator
|
|
60
|
-
|
|
61
|
-
### 2020-06-15
|
|
62
|
-
* Memorystore secrets
|
|
63
|
-
|
|
64
|
-
### 2020-06-09
|
|
65
|
-
* Tribe GKE Generator
|
|
66
|
-
|
|
67
|
-
### 2020-06-09
|
|
68
|
-
* Add secrets handler
|
|
69
|
-
|
|
70
|
-
### 2020-06-05
|
|
71
|
-
* Add organization generator
|
|
72
|
-
|
|
73
|
-
### 2020-06-04
|
|
74
|
-
* Create a template for MySQL database
|
|
75
|
-
|
|
76
|
-
### 2020-06-04
|
|
77
|
-
* CloudSQL MSSQL Template
|
|
78
|
-
|
|
79
|
-
### 2020-06-04
|
|
80
|
-
* Create CloudSQL MySQL templates
|
|
81
|
-
|
|
82
|
-
### 2020-06-03
|
|
83
|
-
* Pubsub generator
|
|
84
|
-
|
|
85
|
-
### 2020-06-03
|
|
86
|
-
* Add PostgreSQL Database template
|
|
87
|
-
|
|
88
|
-
### 2020-06-03
|
|
89
|
-
* Add CloudSQL Postgres Template
|
|
90
|
-
|
|
91
|
-
### 2020-06-02
|
|
92
|
-
* Add memorystore generator templates
|
|
93
|
-
|
|
94
|
-
### 2020-06-01
|
|
95
|
-
* Add init generator
|