underpost 2.8.798 → 2.8.799

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/README.md CHANGED
@@ -68,7 +68,7 @@ Run dev client server
68
68
  npm run dev
69
69
  ```
70
70
  <!-- -->
71
- ## underpost ci/cd cli v2.8.798
71
+ ## underpost ci/cd cli v2.8.799
72
72
 
73
73
  ### Usage: `underpost [options] [command]`
74
74
  ```
package/cli.md CHANGED
@@ -1,4 +1,4 @@
1
- ## underpost ci/cd cli v2.8.798
1
+ ## underpost ci/cd cli v2.8.799
2
2
 
3
3
  ### Usage: `underpost [options] [command]`
4
4
  ```
@@ -492,6 +492,8 @@ Options:
492
492
  --test <vm-id> Test health, status and network connectivity
493
493
  for a VM
494
494
  --root-size <gb-size> Set root size vm
495
+ --k3s Flag to indicate K3s cluster type for VM
496
+ initialization
495
497
  --join-node <nodes> Comma separated worker and control node e.
496
498
  g. k8s-worker-1,k8s-control
497
499
  --expose <vm-name-ports> Vm name and : separated with Comma separated
@@ -58,7 +58,7 @@ services:
58
58
  cpus: '0.25'
59
59
  memory: 20M
60
60
  labels: # labels in Compose file instead of Dockerfile
61
- engine.version: '2.8.798'
61
+ engine.version: '2.8.799'
62
62
  networks:
63
63
  - load-balancer
64
64
 
@@ -17,7 +17,7 @@ spec:
17
17
  spec:
18
18
  containers:
19
19
  - name: dd-template-development-blue
20
- image: localhost/debian-underpost:v2.8.798
20
+ image: localhost/debian-underpost:v2.8.799
21
21
  # resources:
22
22
  # requests:
23
23
  # memory: "124Ki"
@@ -100,7 +100,7 @@ spec:
100
100
  spec:
101
101
  containers:
102
102
  - name: dd-template-development-green
103
- image: localhost/debian-underpost:v2.8.798
103
+ image: localhost/debian-underpost:v2.8.799
104
104
  # resources:
105
105
  # requests:
106
106
  # memory: "124Ki"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "main": "src/index.js",
4
4
  "name": "underpost",
5
- "version": "2.8.798",
5
+ "version": "2.8.799",
6
6
  "description": "pwa api rest template",
7
7
  "scripts": {
8
8
  "start": "env-cmd -f .env.production node --max-old-space-size=8192 src/server",
@@ -63,7 +63,7 @@ class UnderpostCluster {
63
63
  pullImage: false,
64
64
  dedicatedGpu: false,
65
65
  kubeadm: false,
66
- k3s: false, // New K3s option
66
+ k3s: false,
67
67
  initHost: false,
68
68
  config: false,
69
69
  worker: false,
package/src/cli/index.js CHANGED
@@ -288,6 +288,7 @@ program
288
288
  .option('--info-vm <vm-id>', 'Get all info vm')
289
289
  .option('--test <vm-id>', 'Test health, status and network connectivity for a VM')
290
290
  .option('--root-size <gb-size>', 'Set root size vm')
291
+ .option('--k3s', 'Flag to indicate K3s cluster type for VM initialization')
291
292
  .option('--join-node <nodes>', 'Comma separated worker and control node e. g. k8s-worker-1,k8s-control')
292
293
  .option(
293
294
  '--expose <vm-name-ports>',
package/src/cli/lxd.js CHANGED
@@ -43,7 +43,7 @@ class UnderpostLxd {
43
43
  createAdminProfile: false,
44
44
  control: false,
45
45
  worker: false,
46
- k3s: false, // New k3s option
46
+ k3s: false,
47
47
  initVm: '',
48
48
  createVm: '',
49
49
  infoVm: '',
@@ -96,7 +96,6 @@ ipv6.address=none`);
96
96
  let flag = '';
97
97
  if (options.control === true) {
98
98
  if (options.k3s === true) {
99
- // New K3s flag for control plane
100
99
  flag = ' -s -- --k3s';
101
100
  } else {
102
101
  // Default to kubeadm if not K3s
@@ -107,7 +106,6 @@ ipv6.address=none`);
107
106
  shellExec(`lxc file push /home/dd/engine/manifests ${options.initVm}/home/dd/engine --recursive`);
108
107
  } else if (options.worker == true) {
109
108
  if (options.k3s === true) {
110
- // New K3s flag for worker
111
109
  flag = ' -s -- --worker --k3s';
112
110
  } else {
113
111
  // Default to kubeadm worker
@@ -263,7 +261,6 @@ ipv6.address=none`);
263
261
  }
264
262
  }
265
263
 
266
- // New 'test' option implementation
267
264
  if (options.test && typeof options.test === 'string') {
268
265
  const vmName = options.test;
269
266
  console.log(`Starting comprehensive test for VM: ${vmName}`);
package/src/index.js CHANGED
@@ -31,7 +31,7 @@ class Underpost {
31
31
  * @type {String}
32
32
  * @memberof Underpost
33
33
  */
34
- static version = 'v2.8.798';
34
+ static version = 'v2.8.799';
35
35
  /**
36
36
  * Repository cli API
37
37
  * @static