2
0
Эх сурвалжийг харах

Add nutanix provider support

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Mihaela Balutoiu 1 сар өмнө
parent
commit
f9ebc865fb

+ 2 - 0
config.ts

@@ -170,6 +170,7 @@ const conf: Config = {
     metal: 4,
     lxd: 4,
     libvirt: 4,
+    nutanix: 4,
   },
 
   providerNames: {
@@ -193,6 +194,7 @@ const conf: Config = {
     lxd: "LXD",
     proxmox: "Proxmox VE",
     libvirt: "Libvirt",
+    nutanix: "Nutanix",
   },
 
   // The list of providers for which to disable setting the 'Execute Now Options' field

+ 2 - 1
src/@types/Providers.ts

@@ -32,7 +32,8 @@ export type ProviderTypes =
   | "metal"
   | "rhev"
   | "lxd"
-  | "libvirt";
+  | "libvirt"
+  | "nutanix";
 
 export type Providers = {
   [provider in ProviderTypes]: {

+ 2 - 0
src/plugins/index.ts

@@ -23,6 +23,7 @@ import O3cConnectionSchemaPlugin from "./o3c/ConnectionSchemaPlugin";
 import KubevirtConnectionSchemaPlugin from "./kubevirt/ConnectionSchemaPlugin";
 import HarvesterConnectionSchemaPlugin from "./harvester/ConnectionSchemaPlugin";
 import LibvirtConnectionSchemaPlugin from "./libvirt/ConnectionSchemaPlugin";
+import NutanixConnectionSchemaPlugin from "./nutanix/ConnectionSchemaPlugin";
 
 import DefaultContentPlugin from "./default/ContentPlugin";
 import AzureContentPlugin from "./azure/ContentPlugin";
@@ -63,6 +64,7 @@ export const ConnectionSchemaPlugin = {
       kubevirt: new KubevirtConnectionSchemaPlugin(),
       harvester: new HarvesterConnectionSchemaPlugin(),
       libvirt: new LibvirtConnectionSchemaPlugin(),
+      nutanix: new NutanixConnectionSchemaPlugin(),
     };
     if (hasKey(map, provider)) {
       return map[provider];

+ 17 - 0
src/plugins/nutanix/ConnectionSchemaPlugin.ts

@@ -0,0 +1,17 @@
+/*
+Copyright (C) 2026  Cloudbase Solutions SRL
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import ConnectionSchemaParserBase from "@src/plugins/default/ConnectionSchemaPlugin";
+
+export default class NutanixConnectionSchemaPlugin extends ConnectionSchemaParserBase {}

+ 3 - 0
tests/mocks/ProvidersMock.ts

@@ -59,6 +59,9 @@ export const PROVIDERS_MOCK: Providers = {
   libvirt: {
     types: [],
   },
+  nutanix: {
+    types: [],
+  },
   vhi: {
     types: [],
   },