namirasoft-infra 1.4.18 → 1.4.20
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/NamirasoftInfraServer.js +1 -1
- package/dist/NamirasoftInfraServerKubernetes.d.ts +3 -0
- package/dist/NamirasoftInfraServerKubernetes.js +15 -0
- package/dist/NamirasoftInfraServerKubernetes.js.map +1 -1
- package/dist/command/KubernetesCommand.js +4 -0
- package/dist/command/KubernetesCommand.js.map +1 -1
- package/dist/command/KubernetesDownloadAgentYamlCommand.d.ts +5 -0
- package/dist/command/KubernetesDownloadAgentYamlCommand.js +38 -0
- package/dist/command/KubernetesDownloadAgentYamlCommand.js.map +1 -0
- package/dist/command/KubernetesSetProfileCommand.d.ts +5 -0
- package/dist/command/KubernetesSetProfileCommand.js +472 -0
- package/dist/command/KubernetesSetProfileCommand.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/meta/CacheMetaTable.js +1 -1
- package/dist/meta/DockerMetaTable.js +1 -1
- package/dist/meta/KubernetesMetaTable.js +48 -48
- package/dist/meta/KubernetesMetaTable.js.map +1 -1
- package/dist/meta/MessagingMetaTable.js +1 -1
- package/dist/row/KubernetesInputMetaProfileRow.d.ts +50 -0
- package/dist/row/KubernetesInputMetaProfileRow.js +3 -0
- package/dist/row/KubernetesInputMetaProfileRow.js.map +1 -0
- package/dist/row/KubernetesRow.d.ts +48 -48
- package/package.json +3 -3
- package/src/NamirasoftInfraServer.ts +1 -1
- package/src/NamirasoftInfraServerKubernetes.ts +14 -0
- package/src/command/KubernetesCommand.ts +4 -0
- package/src/command/KubernetesDownloadAgentYamlCommand.ts +45 -0
- package/src/command/KubernetesSetProfileCommand.ts +479 -0
- package/src/index.ts +3 -0
- package/src/meta/CacheMetaTable.ts +1 -1
- package/src/meta/DockerMetaTable.ts +1 -1
- package/src/meta/KubernetesMetaTable.ts +48 -48
- package/src/meta/MessagingMetaTable.ts +1 -1
- package/src/row/KubernetesInputMetaProfileRow.ts +71 -0
- package/src/row/KubernetesRow.ts +48 -48
|
@@ -61,7 +61,7 @@ const NamirasoftInfraServerStreamingTag_1 = require("./NamirasoftInfraServerStre
|
|
|
61
61
|
const NamirasoftInfraServerValue_1 = require("./NamirasoftInfraServerValue");
|
|
62
62
|
class NamirasoftInfraServer extends namirasoft_account_1.NSABaseServer {
|
|
63
63
|
constructor(base_url, token_manager, onError) {
|
|
64
|
-
super(base_url, `1.4.
|
|
64
|
+
super(base_url, `1.4.20`, token_manager, onError);
|
|
65
65
|
this.healthz = new NamirasoftInfraServerHealthz_1.NamirasoftInfraServerHealthz(this);
|
|
66
66
|
this.health = new NamirasoftInfraServerHealth_1.NamirasoftInfraServerHealth(this);
|
|
67
67
|
this.metrics = new NamirasoftInfraServerMetrics_1.NamirasoftInfraServerMetrics(this);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseServerConfig } from "namirasoft-core";
|
|
2
2
|
import { FilterItem } from "namirasoft-core";
|
|
3
|
+
import { KubernetesInputMetaProfileRow } from "./row/KubernetesInputMetaProfileRow";
|
|
3
4
|
import { KubernetesInputRow } from "./row/KubernetesInputRow";
|
|
4
5
|
import { KubernetesRow } from "./row/KubernetesRow";
|
|
5
6
|
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
@@ -23,4 +24,6 @@ export declare class NamirasoftInfraServerKubernetes extends NamirasoftInfraServ
|
|
|
23
24
|
meta_collective_daemonsets: (string | null)[];
|
|
24
25
|
meta_collective_cronjobs: (string | null)[];
|
|
25
26
|
}, config?: BaseServerConfig<any>): Promise<KubernetesRow>;
|
|
27
|
+
SetProfile(id: (string | null), body: KubernetesInputMetaProfileRow, config?: BaseServerConfig<any>): Promise<KubernetesRow>;
|
|
28
|
+
DownloadAgentYaml(id: (string | null), file_path: (string | null), config?: BaseServerConfig<any>): Promise<void>;
|
|
26
29
|
}
|
|
@@ -24,6 +24,8 @@ class NamirasoftInfraServerKubernetes extends NamirasoftInfraServerBase_1.Namira
|
|
|
24
24
|
this.Update = this.Update.bind(this);
|
|
25
25
|
this.Delete = this.Delete.bind(this);
|
|
26
26
|
this.SetCollective = this.SetCollective.bind(this);
|
|
27
|
+
this.SetProfile = this.SetProfile.bind(this);
|
|
28
|
+
this.DownloadAgentYaml = this.DownloadAgentYaml.bind(this);
|
|
27
29
|
}
|
|
28
30
|
ListOnline(filters, page, size, sorts, config) {
|
|
29
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -84,6 +86,19 @@ class NamirasoftInfraServerKubernetes extends NamirasoftInfraServerBase_1.Namira
|
|
|
84
86
|
return data;
|
|
85
87
|
});
|
|
86
88
|
}
|
|
89
|
+
SetProfile(id, body, config) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
let path = `/kubernetes/${id}/profile`;
|
|
92
|
+
let { data } = yield this.server._put(path, {}, body, config);
|
|
93
|
+
return data;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
DownloadAgentYaml(id, file_path, config) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
let path = `/kubernetes/${id}/download/agent/path/${file_path}`;
|
|
99
|
+
yield this.server._get(path, {}, config);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
87
102
|
}
|
|
88
103
|
exports.NamirasoftInfraServerKubernetes = NamirasoftInfraServerKubernetes;
|
|
89
104
|
;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftInfraServerKubernetes.js","sourceRoot":"","sources":["../src/NamirasoftInfraServerKubernetes.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,qDAA6C;
|
|
1
|
+
{"version":3,"file":"NamirasoftInfraServerKubernetes.js","sourceRoot":"","sources":["../src/NamirasoftInfraServerKubernetes.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,qDAA6C;AAK7C,2EAAwE;AACxE,qDAA2C;AAE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,CAAC;YAC7E,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,iBAAiB,CAAC,EAAmB,EAAE,SAA0B,EAAE,MAA8B;;YAEnG,IAAI,IAAI,GAAG,eAAe,EAAE,wBAAwB,SAAS,EAAE,CAAC;YAChE,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;QACnD,CAAC;KAAA;CACJ;AA9ED,0EA8EC;AAAA,CAAC"}
|
|
@@ -4,11 +4,13 @@ exports.KubernetesCommand = void 0;
|
|
|
4
4
|
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
5
5
|
const KubernetesCreateCommand_1 = require("./KubernetesCreateCommand");
|
|
6
6
|
const KubernetesDeleteCommand_1 = require("./KubernetesDeleteCommand");
|
|
7
|
+
const KubernetesDownloadAgentYamlCommand_1 = require("./KubernetesDownloadAgentYamlCommand");
|
|
7
8
|
const KubernetesGetCommand_1 = require("./KubernetesGetCommand");
|
|
8
9
|
const KubernetesGetTokenCommand_1 = require("./KubernetesGetTokenCommand");
|
|
9
10
|
const KubernetesListCommand_1 = require("./KubernetesListCommand");
|
|
10
11
|
const KubernetesListOnlineCommand_1 = require("./KubernetesListOnlineCommand");
|
|
11
12
|
const KubernetesSetCollectiveCommand_1 = require("./KubernetesSetCollectiveCommand");
|
|
13
|
+
const KubernetesSetProfileCommand_1 = require("./KubernetesSetProfileCommand");
|
|
12
14
|
const KubernetesUpdateCommand_1 = require("./KubernetesUpdateCommand");
|
|
13
15
|
class KubernetesCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
|
14
16
|
constructor(argv) {
|
|
@@ -21,6 +23,8 @@ class KubernetesCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
|
|
21
23
|
"update": KubernetesUpdateCommand_1.KubernetesUpdateCommand,
|
|
22
24
|
"delete": KubernetesDeleteCommand_1.KubernetesDeleteCommand,
|
|
23
25
|
"setcollective": KubernetesSetCollectiveCommand_1.KubernetesSetCollectiveCommand,
|
|
26
|
+
"setprofile": KubernetesSetProfileCommand_1.KubernetesSetProfileCommand,
|
|
27
|
+
"downloadagentyaml": KubernetesDownloadAgentYamlCommand_1.KubernetesDownloadAgentYamlCommand,
|
|
24
28
|
});
|
|
25
29
|
}
|
|
26
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KubernetesCommand.js","sourceRoot":"","sources":["../../src/command/KubernetesCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,uEAAoE;AACpE,uEAAoE;AACpE,iEAA8D;AAC9D,2EAAwE;AACxE,mEAAgE;AAChE,+EAA4E;AAC5E,qFAAkF;AAClF,uEAAoE;AAEpE,MAAa,iBAAkB,SAAQ,0CAAoB;IAEvD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,YAAY,EAAE,yDAA2B;YACzC,MAAM,EAAE,6CAAqB;YAC7B,UAAU,EAAE,qDAAyB;YACrC,KAAK,EAAE,2CAAoB;YAC3B,QAAQ,EAAE,iDAAuB;YACjC,QAAQ,EAAE,iDAAuB;YACjC,QAAQ,EAAE,iDAAuB;YACjC,eAAe,EAAE,+DAA8B;
|
|
1
|
+
{"version":3,"file":"KubernetesCommand.js","sourceRoot":"","sources":["../../src/command/KubernetesCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,uEAAoE;AACpE,uEAAoE;AACpE,6FAA0F;AAC1F,iEAA8D;AAC9D,2EAAwE;AACxE,mEAAgE;AAChE,+EAA4E;AAC5E,qFAAkF;AAClF,+EAA4E;AAC5E,uEAAoE;AAEpE,MAAa,iBAAkB,SAAQ,0CAAoB;IAEvD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,YAAY,EAAE,yDAA2B;YACzC,MAAM,EAAE,6CAAqB;YAC7B,UAAU,EAAE,qDAAyB;YACrC,KAAK,EAAE,2CAAoB;YAC3B,QAAQ,EAAE,iDAAuB;YACjC,QAAQ,EAAE,iDAAuB;YACjC,QAAQ,EAAE,iDAAuB;YACjC,eAAe,EAAE,+DAA8B;YAC/C,YAAY,EAAE,yDAA2B;YACzC,mBAAmB,EAAE,uEAAkC;SAC1D,CAAC,CAAC;IACP,CAAC;CACJ;AAjBD,8CAiBC;AAAA,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.KubernetesDownloadAgentYamlCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftInfraServer_1 = require("../NamirasoftInfraServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class KubernetesDownloadAgentYamlCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["id", "file_path"], []);
|
|
20
|
+
}
|
|
21
|
+
exec() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let token = this.app.storage.getNSAToken();
|
|
24
|
+
if (token == null)
|
|
25
|
+
throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
|
|
26
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
27
|
+
let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
+
token_manager.setValue(token, false);
|
|
29
|
+
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
30
|
+
let server = new NamirasoftInfraServer_1.NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
31
|
+
let ans = yield server.kubernetes.DownloadAgentYaml(this.arg_values[0], this.arg_values[1]);
|
|
32
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.KubernetesDownloadAgentYamlCommand = KubernetesDownloadAgentYamlCommand;
|
|
37
|
+
;
|
|
38
|
+
//# sourceMappingURL=KubernetesDownloadAgentYamlCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KubernetesDownloadAgentYamlCommand.js","sourceRoot":"","sources":["../../src/command/KubernetesDownloadAgentYamlCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,oEAAiE;AACjE,2DAAkD;AAElD,MAAa,kCAAmC,SAAQ,sCAAgB;IAEpE,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;IACzC,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,2GAA2G,CAAC,CAAC;YACjI,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,aAAa,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACzD,aAAa,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACrC,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;YAC1D,IAAI,MAAM,GAAG,IAAI,6CAAqB,CAAC,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAClG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YAC5F,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,gFAmBC;AAAA,CAAC"}
|
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.KubernetesSetProfileCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftInfraServer_1 = require("../NamirasoftInfraServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class KubernetesSetProfileCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["id"], [
|
|
20
|
+
{
|
|
21
|
+
name: "meta_profile_cluster_id",
|
|
22
|
+
short: "",
|
|
23
|
+
description: "Provides the value of 'meta_profile_cluster_id' in body",
|
|
24
|
+
optional: true,
|
|
25
|
+
args: ["meta_profile_cluster_id"],
|
|
26
|
+
defaults: [""]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "meta_profile_cluster_name",
|
|
30
|
+
short: "",
|
|
31
|
+
description: "Provides the value of 'meta_profile_cluster_name' in body",
|
|
32
|
+
optional: true,
|
|
33
|
+
args: ["meta_profile_cluster_name"],
|
|
34
|
+
defaults: [""]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "meta_profile_cluster_version",
|
|
38
|
+
short: "",
|
|
39
|
+
description: "Provides the value of 'meta_profile_cluster_version' in body",
|
|
40
|
+
optional: true,
|
|
41
|
+
args: ["meta_profile_cluster_version"],
|
|
42
|
+
defaults: [""]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "meta_profile_node_count",
|
|
46
|
+
short: "",
|
|
47
|
+
description: "Provides the value of 'meta_profile_node_count' in body",
|
|
48
|
+
optional: true,
|
|
49
|
+
args: ["meta_profile_node_count"],
|
|
50
|
+
defaults: [""]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "meta_profile_node_count_ready",
|
|
54
|
+
short: "",
|
|
55
|
+
description: "Provides the value of 'meta_profile_node_count_ready' in body",
|
|
56
|
+
optional: true,
|
|
57
|
+
args: ["meta_profile_node_count_ready"],
|
|
58
|
+
defaults: [""]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "meta_profile_node_count_not_ready",
|
|
62
|
+
short: "",
|
|
63
|
+
description: "Provides the value of 'meta_profile_node_count_not_ready' in body",
|
|
64
|
+
optional: true,
|
|
65
|
+
args: ["meta_profile_node_count_not_ready"],
|
|
66
|
+
defaults: [""]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "meta_profile_node_count_master",
|
|
70
|
+
short: "",
|
|
71
|
+
description: "Provides the value of 'meta_profile_node_count_master' in body",
|
|
72
|
+
optional: true,
|
|
73
|
+
args: ["meta_profile_node_count_master"],
|
|
74
|
+
defaults: [""]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "meta_profile_node_count_worker",
|
|
78
|
+
short: "",
|
|
79
|
+
description: "Provides the value of 'meta_profile_node_count_worker' in body",
|
|
80
|
+
optional: true,
|
|
81
|
+
args: ["meta_profile_node_count_worker"],
|
|
82
|
+
defaults: [""]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "meta_profile_total_cpu",
|
|
86
|
+
short: "",
|
|
87
|
+
description: "Provides the value of 'meta_profile_total_cpu' in body",
|
|
88
|
+
optional: true,
|
|
89
|
+
args: ["meta_profile_total_cpu"],
|
|
90
|
+
defaults: [""]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "meta_profile_total_gpu",
|
|
94
|
+
short: "",
|
|
95
|
+
description: "Provides the value of 'meta_profile_total_gpu' in body",
|
|
96
|
+
optional: true,
|
|
97
|
+
args: ["meta_profile_total_gpu"],
|
|
98
|
+
defaults: [""]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "meta_profile_total_memory",
|
|
102
|
+
short: "",
|
|
103
|
+
description: "Provides the value of 'meta_profile_total_memory' in body",
|
|
104
|
+
optional: true,
|
|
105
|
+
args: ["meta_profile_total_memory"],
|
|
106
|
+
defaults: [""]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "meta_profile_total_disk",
|
|
110
|
+
short: "",
|
|
111
|
+
description: "Provides the value of 'meta_profile_total_disk' in body",
|
|
112
|
+
optional: true,
|
|
113
|
+
args: ["meta_profile_total_disk"],
|
|
114
|
+
defaults: [""]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "meta_profile_total_pod_capacity",
|
|
118
|
+
short: "",
|
|
119
|
+
description: "Provides the value of 'meta_profile_total_pod_capacity' in body",
|
|
120
|
+
optional: true,
|
|
121
|
+
args: ["meta_profile_total_pod_capacity"],
|
|
122
|
+
defaults: [""]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: "meta_profile_usage_cpu",
|
|
126
|
+
short: "",
|
|
127
|
+
description: "Provides the value of 'meta_profile_usage_cpu' in body",
|
|
128
|
+
optional: true,
|
|
129
|
+
args: ["meta_profile_usage_cpu"],
|
|
130
|
+
defaults: [""]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: "meta_profile_usage_gpu",
|
|
134
|
+
short: "",
|
|
135
|
+
description: "Provides the value of 'meta_profile_usage_gpu' in body",
|
|
136
|
+
optional: true,
|
|
137
|
+
args: ["meta_profile_usage_gpu"],
|
|
138
|
+
defaults: [""]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: "meta_profile_usage_memory",
|
|
142
|
+
short: "",
|
|
143
|
+
description: "Provides the value of 'meta_profile_usage_memory' in body",
|
|
144
|
+
optional: true,
|
|
145
|
+
args: ["meta_profile_usage_memory"],
|
|
146
|
+
defaults: [""]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: "meta_profile_usage_disk",
|
|
150
|
+
short: "",
|
|
151
|
+
description: "Provides the value of 'meta_profile_usage_disk' in body",
|
|
152
|
+
optional: true,
|
|
153
|
+
args: ["meta_profile_usage_disk"],
|
|
154
|
+
defaults: [""]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: "meta_profile_requested_cpu",
|
|
158
|
+
short: "",
|
|
159
|
+
description: "Provides the value of 'meta_profile_requested_cpu' in body",
|
|
160
|
+
optional: true,
|
|
161
|
+
args: ["meta_profile_requested_cpu"],
|
|
162
|
+
defaults: [""]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "meta_profile_requested_gpu",
|
|
166
|
+
short: "",
|
|
167
|
+
description: "Provides the value of 'meta_profile_requested_gpu' in body",
|
|
168
|
+
optional: true,
|
|
169
|
+
args: ["meta_profile_requested_gpu"],
|
|
170
|
+
defaults: [""]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: "meta_profile_requested_memory",
|
|
174
|
+
short: "",
|
|
175
|
+
description: "Provides the value of 'meta_profile_requested_memory' in body",
|
|
176
|
+
optional: true,
|
|
177
|
+
args: ["meta_profile_requested_memory"],
|
|
178
|
+
defaults: [""]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: "meta_profile_requested_disk",
|
|
182
|
+
short: "",
|
|
183
|
+
description: "Provides the value of 'meta_profile_requested_disk' in body",
|
|
184
|
+
optional: true,
|
|
185
|
+
args: ["meta_profile_requested_disk"],
|
|
186
|
+
defaults: [""]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: "meta_profile_limit_cpu",
|
|
190
|
+
short: "",
|
|
191
|
+
description: "Provides the value of 'meta_profile_limit_cpu' in body",
|
|
192
|
+
optional: true,
|
|
193
|
+
args: ["meta_profile_limit_cpu"],
|
|
194
|
+
defaults: [""]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "meta_profile_limit_memory",
|
|
198
|
+
short: "",
|
|
199
|
+
description: "Provides the value of 'meta_profile_limit_memory' in body",
|
|
200
|
+
optional: true,
|
|
201
|
+
args: ["meta_profile_limit_memory"],
|
|
202
|
+
defaults: [""]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "meta_profile_limit_gpu",
|
|
206
|
+
short: "",
|
|
207
|
+
description: "Provides the value of 'meta_profile_limit_gpu' in body",
|
|
208
|
+
optional: true,
|
|
209
|
+
args: ["meta_profile_limit_gpu"],
|
|
210
|
+
defaults: [""]
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: "meta_profile_request_ratio_cpu",
|
|
214
|
+
short: "",
|
|
215
|
+
description: "Provides the value of 'meta_profile_request_ratio_cpu' in body",
|
|
216
|
+
optional: true,
|
|
217
|
+
args: ["meta_profile_request_ratio_cpu"],
|
|
218
|
+
defaults: [""]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: "meta_profile_request_ratio_gpu",
|
|
222
|
+
short: "",
|
|
223
|
+
description: "Provides the value of 'meta_profile_request_ratio_gpu' in body",
|
|
224
|
+
optional: true,
|
|
225
|
+
args: ["meta_profile_request_ratio_gpu"],
|
|
226
|
+
defaults: [""]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: "meta_profile_request_ratio_memory",
|
|
230
|
+
short: "",
|
|
231
|
+
description: "Provides the value of 'meta_profile_request_ratio_memory' in body",
|
|
232
|
+
optional: true,
|
|
233
|
+
args: ["meta_profile_request_ratio_memory"],
|
|
234
|
+
defaults: [""]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: "meta_profile_request_ratio_disk",
|
|
238
|
+
short: "",
|
|
239
|
+
description: "Provides the value of 'meta_profile_request_ratio_disk' in body",
|
|
240
|
+
optional: true,
|
|
241
|
+
args: ["meta_profile_request_ratio_disk"],
|
|
242
|
+
defaults: [""]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: "meta_profile_usage_ratio_cpu",
|
|
246
|
+
short: "",
|
|
247
|
+
description: "Provides the value of 'meta_profile_usage_ratio_cpu' in body",
|
|
248
|
+
optional: true,
|
|
249
|
+
args: ["meta_profile_usage_ratio_cpu"],
|
|
250
|
+
defaults: [""]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: "meta_profile_usage_ratio_gpu",
|
|
254
|
+
short: "",
|
|
255
|
+
description: "Provides the value of 'meta_profile_usage_ratio_gpu' in body",
|
|
256
|
+
optional: true,
|
|
257
|
+
args: ["meta_profile_usage_ratio_gpu"],
|
|
258
|
+
defaults: [""]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: "meta_profile_usage_ratio_memory",
|
|
262
|
+
short: "",
|
|
263
|
+
description: "Provides the value of 'meta_profile_usage_ratio_memory' in body",
|
|
264
|
+
optional: true,
|
|
265
|
+
args: ["meta_profile_usage_ratio_memory"],
|
|
266
|
+
defaults: [""]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
name: "meta_profile_count_namespace",
|
|
270
|
+
short: "",
|
|
271
|
+
description: "Provides the value of 'meta_profile_count_namespace' in body",
|
|
272
|
+
optional: true,
|
|
273
|
+
args: ["meta_profile_count_namespace"],
|
|
274
|
+
defaults: [""]
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: "meta_profile_count_storage_classes",
|
|
278
|
+
short: "",
|
|
279
|
+
description: "Provides the value of 'meta_profile_count_storage_classes' in body",
|
|
280
|
+
optional: true,
|
|
281
|
+
args: ["meta_profile_count_storage_classes"],
|
|
282
|
+
defaults: [""]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: "meta_profile_count_pv",
|
|
286
|
+
short: "",
|
|
287
|
+
description: "Provides the value of 'meta_profile_count_pv' in body",
|
|
288
|
+
optional: true,
|
|
289
|
+
args: ["meta_profile_count_pv"],
|
|
290
|
+
defaults: [""]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: "meta_profile_count_pvc",
|
|
294
|
+
short: "",
|
|
295
|
+
description: "Provides the value of 'meta_profile_count_pvc' in body",
|
|
296
|
+
optional: true,
|
|
297
|
+
args: ["meta_profile_count_pvc"],
|
|
298
|
+
defaults: [""]
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: "meta_profile_count_pod",
|
|
302
|
+
short: "",
|
|
303
|
+
description: "Provides the value of 'meta_profile_count_pod' in body",
|
|
304
|
+
optional: true,
|
|
305
|
+
args: ["meta_profile_count_pod"],
|
|
306
|
+
defaults: [""]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
name: "meta_profile_count_pod_running",
|
|
310
|
+
short: "",
|
|
311
|
+
description: "Provides the value of 'meta_profile_count_pod_running' in body",
|
|
312
|
+
optional: true,
|
|
313
|
+
args: ["meta_profile_count_pod_running"],
|
|
314
|
+
defaults: [""]
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
name: "meta_profile_count_deployment",
|
|
318
|
+
short: "",
|
|
319
|
+
description: "Provides the value of 'meta_profile_count_deployment' in body",
|
|
320
|
+
optional: true,
|
|
321
|
+
args: ["meta_profile_count_deployment"],
|
|
322
|
+
defaults: [""]
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
name: "meta_profile_count_statefulset",
|
|
326
|
+
short: "",
|
|
327
|
+
description: "Provides the value of 'meta_profile_count_statefulset' in body",
|
|
328
|
+
optional: true,
|
|
329
|
+
args: ["meta_profile_count_statefulset"],
|
|
330
|
+
defaults: [""]
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
name: "meta_profile_count_daemonset",
|
|
334
|
+
short: "",
|
|
335
|
+
description: "Provides the value of 'meta_profile_count_daemonset' in body",
|
|
336
|
+
optional: true,
|
|
337
|
+
args: ["meta_profile_count_daemonset"],
|
|
338
|
+
defaults: [""]
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
name: "meta_profile_count_job",
|
|
342
|
+
short: "",
|
|
343
|
+
description: "Provides the value of 'meta_profile_count_job' in body",
|
|
344
|
+
optional: true,
|
|
345
|
+
args: ["meta_profile_count_job"],
|
|
346
|
+
defaults: [""]
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
name: "meta_profile_count_cronjob",
|
|
350
|
+
short: "",
|
|
351
|
+
description: "Provides the value of 'meta_profile_count_cronjob' in body",
|
|
352
|
+
optional: true,
|
|
353
|
+
args: ["meta_profile_count_cronjob"],
|
|
354
|
+
defaults: [""]
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
name: "meta_profile_count_service",
|
|
358
|
+
short: "",
|
|
359
|
+
description: "Provides the value of 'meta_profile_count_service' in body",
|
|
360
|
+
optional: true,
|
|
361
|
+
args: ["meta_profile_count_service"],
|
|
362
|
+
defaults: [""]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
name: "meta_profile_count_ingress",
|
|
366
|
+
short: "",
|
|
367
|
+
description: "Provides the value of 'meta_profile_count_ingress' in body",
|
|
368
|
+
optional: true,
|
|
369
|
+
args: ["meta_profile_count_ingress"],
|
|
370
|
+
defaults: [""]
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
name: "meta_profile_count_loadbalancer",
|
|
374
|
+
short: "",
|
|
375
|
+
description: "Provides the value of 'meta_profile_count_loadbalancer' in body",
|
|
376
|
+
optional: true,
|
|
377
|
+
args: ["meta_profile_count_loadbalancer"],
|
|
378
|
+
defaults: [""]
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
name: "meta_profile_count_network_policy",
|
|
382
|
+
short: "",
|
|
383
|
+
description: "Provides the value of 'meta_profile_count_network_policy' in body",
|
|
384
|
+
optional: true,
|
|
385
|
+
args: ["meta_profile_count_network_policy"],
|
|
386
|
+
defaults: [""]
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
name: "meta_profile_count_secret",
|
|
390
|
+
short: "",
|
|
391
|
+
description: "Provides the value of 'meta_profile_count_secret' in body",
|
|
392
|
+
optional: true,
|
|
393
|
+
args: ["meta_profile_count_secret"],
|
|
394
|
+
defaults: [""]
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
name: "meta_profile_count_config",
|
|
398
|
+
short: "",
|
|
399
|
+
description: "Provides the value of 'meta_profile_count_config' in body",
|
|
400
|
+
optional: true,
|
|
401
|
+
args: ["meta_profile_count_config"],
|
|
402
|
+
defaults: [""]
|
|
403
|
+
}
|
|
404
|
+
]);
|
|
405
|
+
}
|
|
406
|
+
exec() {
|
|
407
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
+
let token = this.app.storage.getNSAToken();
|
|
409
|
+
if (token == null)
|
|
410
|
+
throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
|
|
411
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
412
|
+
let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
413
|
+
token_manager.setValue(token, false);
|
|
414
|
+
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
415
|
+
let server = new NamirasoftInfraServer_1.NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
416
|
+
let ans = yield server.kubernetes.SetProfile(this.arg_values[0], {
|
|
417
|
+
meta_profile_cluster_id: this.option_values.meta_profile_cluster_id,
|
|
418
|
+
meta_profile_cluster_name: this.option_values.meta_profile_cluster_name,
|
|
419
|
+
meta_profile_cluster_version: this.option_values.meta_profile_cluster_version,
|
|
420
|
+
meta_profile_node_count: this.option_values.meta_profile_node_count,
|
|
421
|
+
meta_profile_node_count_ready: this.option_values.meta_profile_node_count_ready,
|
|
422
|
+
meta_profile_node_count_not_ready: this.option_values.meta_profile_node_count_not_ready,
|
|
423
|
+
meta_profile_node_count_master: this.option_values.meta_profile_node_count_master,
|
|
424
|
+
meta_profile_node_count_worker: this.option_values.meta_profile_node_count_worker,
|
|
425
|
+
meta_profile_total_cpu: this.option_values.meta_profile_total_cpu,
|
|
426
|
+
meta_profile_total_gpu: this.option_values.meta_profile_total_gpu,
|
|
427
|
+
meta_profile_total_memory: this.option_values.meta_profile_total_memory,
|
|
428
|
+
meta_profile_total_disk: this.option_values.meta_profile_total_disk,
|
|
429
|
+
meta_profile_total_pod_capacity: this.option_values.meta_profile_total_pod_capacity,
|
|
430
|
+
meta_profile_usage_cpu: this.option_values.meta_profile_usage_cpu,
|
|
431
|
+
meta_profile_usage_gpu: this.option_values.meta_profile_usage_gpu,
|
|
432
|
+
meta_profile_usage_memory: this.option_values.meta_profile_usage_memory,
|
|
433
|
+
meta_profile_usage_disk: this.option_values.meta_profile_usage_disk,
|
|
434
|
+
meta_profile_requested_cpu: this.option_values.meta_profile_requested_cpu,
|
|
435
|
+
meta_profile_requested_gpu: this.option_values.meta_profile_requested_gpu,
|
|
436
|
+
meta_profile_requested_memory: this.option_values.meta_profile_requested_memory,
|
|
437
|
+
meta_profile_requested_disk: this.option_values.meta_profile_requested_disk,
|
|
438
|
+
meta_profile_limit_cpu: this.option_values.meta_profile_limit_cpu,
|
|
439
|
+
meta_profile_limit_memory: this.option_values.meta_profile_limit_memory,
|
|
440
|
+
meta_profile_limit_gpu: this.option_values.meta_profile_limit_gpu,
|
|
441
|
+
meta_profile_request_ratio_cpu: this.option_values.meta_profile_request_ratio_cpu,
|
|
442
|
+
meta_profile_request_ratio_gpu: this.option_values.meta_profile_request_ratio_gpu,
|
|
443
|
+
meta_profile_request_ratio_memory: this.option_values.meta_profile_request_ratio_memory,
|
|
444
|
+
meta_profile_request_ratio_disk: this.option_values.meta_profile_request_ratio_disk,
|
|
445
|
+
meta_profile_usage_ratio_cpu: this.option_values.meta_profile_usage_ratio_cpu,
|
|
446
|
+
meta_profile_usage_ratio_gpu: this.option_values.meta_profile_usage_ratio_gpu,
|
|
447
|
+
meta_profile_usage_ratio_memory: this.option_values.meta_profile_usage_ratio_memory,
|
|
448
|
+
meta_profile_count_namespace: this.option_values.meta_profile_count_namespace,
|
|
449
|
+
meta_profile_count_storage_classes: this.option_values.meta_profile_count_storage_classes,
|
|
450
|
+
meta_profile_count_pv: this.option_values.meta_profile_count_pv,
|
|
451
|
+
meta_profile_count_pvc: this.option_values.meta_profile_count_pvc,
|
|
452
|
+
meta_profile_count_pod: this.option_values.meta_profile_count_pod,
|
|
453
|
+
meta_profile_count_pod_running: this.option_values.meta_profile_count_pod_running,
|
|
454
|
+
meta_profile_count_deployment: this.option_values.meta_profile_count_deployment,
|
|
455
|
+
meta_profile_count_statefulset: this.option_values.meta_profile_count_statefulset,
|
|
456
|
+
meta_profile_count_daemonset: this.option_values.meta_profile_count_daemonset,
|
|
457
|
+
meta_profile_count_job: this.option_values.meta_profile_count_job,
|
|
458
|
+
meta_profile_count_cronjob: this.option_values.meta_profile_count_cronjob,
|
|
459
|
+
meta_profile_count_service: this.option_values.meta_profile_count_service,
|
|
460
|
+
meta_profile_count_ingress: this.option_values.meta_profile_count_ingress,
|
|
461
|
+
meta_profile_count_loadbalancer: this.option_values.meta_profile_count_loadbalancer,
|
|
462
|
+
meta_profile_count_network_policy: this.option_values.meta_profile_count_network_policy,
|
|
463
|
+
meta_profile_count_secret: this.option_values.meta_profile_count_secret,
|
|
464
|
+
meta_profile_count_config: this.option_values.meta_profile_count_config
|
|
465
|
+
});
|
|
466
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
exports.KubernetesSetProfileCommand = KubernetesSetProfileCommand;
|
|
471
|
+
;
|
|
472
|
+
//# sourceMappingURL=KubernetesSetProfileCommand.js.map
|