@leverege/build-tools 2.21.4 → 2.21.6

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.
Binary file
@@ -64,17 +64,24 @@ const targets = Object.entries(firebasercContent.targets).reduce((prev, [project
64
64
  }, defaultTargets);
65
65
 
66
66
  if (!TARGET) {
67
- const {
68
- targetEnv
69
- } = await prompt({
70
- type: 'autocomplete',
71
- name: 'targetEnv',
72
- message: 'Which environment would you like to serve?',
73
- choices: Object.keys(targets).map(t => ({
74
- name: t,
75
- value: t
76
- }))
77
- });
67
+ const choices = Object.keys(targets).map(t => ({
68
+ name: t,
69
+ value: t
70
+ }));
71
+ let targetEnv;
72
+
73
+ if (choices.length > 1) {
74
+ const res = await prompt({
75
+ type: 'autocomplete',
76
+ name: 'targetEnv',
77
+ message: 'Which environment would you like to serve?',
78
+ choices
79
+ });
80
+ targetEnv = res.targetEnv;
81
+ } else {
82
+ targetEnv = choices[0].value;
83
+ }
84
+
78
85
  TARGET = targets[targetEnv];
79
86
  } else {
80
87
  TARGET = targets[TARGET];
@@ -64,17 +64,24 @@ const targets = Object.entries(firebasercContent.targets).reduce((prev, [project
64
64
  }, defaultTargets);
65
65
 
66
66
  if (!TARGET) {
67
- const {
68
- targetEnv
69
- } = await prompt({
70
- type: 'autocomplete',
71
- name: 'targetEnv',
72
- message: 'Which environment would you like to serve?',
73
- choices: Object.keys(targets).map(t => ({
74
- name: t,
75
- value: t
76
- }))
77
- });
67
+ const choices = Object.keys(targets).map(t => ({
68
+ name: t,
69
+ value: t
70
+ }));
71
+ let targetEnv;
72
+
73
+ if (choices.length > 1) {
74
+ const res = await prompt({
75
+ type: 'autocomplete',
76
+ name: 'targetEnv',
77
+ message: 'Which environment would you like to serve?',
78
+ choices
79
+ });
80
+ targetEnv = res.targetEnv;
81
+ } else {
82
+ targetEnv = choices[0].value;
83
+ }
84
+
78
85
  TARGET = targets[targetEnv];
79
86
  } else {
80
87
  TARGET = targets[TARGET];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.21.4",
3
+ "version": "2.21.6",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -62,7 +62,7 @@
62
62
  "parse-gitignore": "^2.0.0",
63
63
  "readline-sync": "^1.4.10",
64
64
  "semver": "^7.3.7",
65
- "simple-git": "^3.14.0",
65
+ "simple-git": "^3.14.1",
66
66
  "zx": "^7.0.8"
67
67
  },
68
68
  "devDependencies": {
@@ -72,12 +72,22 @@ const targets = Object
72
72
  }, defaultTargets )
73
73
 
74
74
  if ( !TARGET ) {
75
- const { targetEnv } = await prompt( {
76
- type : 'autocomplete',
77
- name : 'targetEnv',
78
- message : 'Which environment would you like to serve?',
79
- choices : Object.keys( targets ).map( t => ( { name : t, value : t } ) )
80
- } )
75
+ const choices = Object.keys( targets ).map( t => ( { name : t, value : t } ) )
76
+
77
+ let targetEnv
78
+
79
+ if ( choices.length > 1 ) {
80
+ const res = await prompt( {
81
+ type : 'autocomplete',
82
+ name : 'targetEnv',
83
+ message : 'Which environment would you like to serve?',
84
+ choices
85
+ } )
86
+
87
+ targetEnv = res.targetEnv
88
+ } else {
89
+ targetEnv = choices[0].value
90
+ }
81
91
 
82
92
  TARGET = targets[targetEnv]
83
93
  } else {
package/src/helmup CHANGED
@@ -188,6 +188,26 @@ master:
188
188
  persistence:
189
189
  size: 8Gi # 8Gi is default
190
190
 
191
+ replica:
192
+ affinity:
193
+ nodeAffinity:
194
+ requiredDuringSchedulingIgnoredDuringExecution:
195
+ nodeSelectorTerms:
196
+ - matchExpressions:
197
+ - key: target-env
198
+ operator: In
199
+ values:
200
+ - database
201
+
202
+ tolerations:
203
+ - key: "database"
204
+ operator: "Equal"
205
+ value: "true"
206
+ effect: "NoSchedule"
207
+
208
+ persistence:
209
+ size: 8Gi # 8Gi is default
210
+
191
211
  architecture: replication
192
212
 
193
213
  sentinel:
@@ -471,7 +491,7 @@ metadata:
471
491
  name: cron-zombie-killer
472
492
  spec:
473
493
  schedule: "*/4 * * * *"
474
- successfulJobsHistoryLimit: 1
494
+ successfulJobsHistoryLimit: 0
475
495
  jobTemplate:
476
496
  spec:
477
497
  template: