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 +1 -1
- package/cli.md +3 -1
- package/docker-compose.yml +1 -1
- package/manifests/deployment/dd-template-development/deployment.yaml +2 -2
- package/package.json +1 -1
- package/src/cli/cluster.js +1 -1
- package/src/cli/index.js +1 -0
- package/src/cli/lxd.js +1 -4
- package/src/index.js +1 -1
package/README.md
CHANGED
package/cli.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## underpost ci/cd cli v2.8.
|
|
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
|
package/docker-compose.yml
CHANGED
|
@@ -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.
|
|
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.
|
|
103
|
+
image: localhost/debian-underpost:v2.8.799
|
|
104
104
|
# resources:
|
|
105
105
|
# requests:
|
|
106
106
|
# memory: "124Ki"
|
package/package.json
CHANGED
package/src/cli/cluster.js
CHANGED
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,
|
|
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}`);
|