Bläddra i källkod

Add SAP libvirt provider support

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Mihaela Balutoiu 1 vecka sedan
förälder
incheckning
bcbd1d8e94
4 ändrade filer med 7 tillägg och 0 borttagningar
  1. 2 0
      config.ts
  2. 1 0
      src/@types/Providers.ts
  3. 1 0
      src/plugins/index.ts
  4. 3 0
      tests/mocks/ProvidersMock.ts

+ 2 - 0
config.ts

@@ -176,6 +176,7 @@ const conf: Config = {
     metal: 4,
     lxd: 4,
     libvirt: 4,
+    sap_libvirt: 4,
     cloudstack: 4,
     nutanix: 4,
   },
@@ -201,6 +202,7 @@ const conf: Config = {
     lxd: "LXD",
     proxmox: "Proxmox VE",
     libvirt: "Libvirt",
+    sap_libvirt: "Libvirt SAP",
     cloudstack: "Cloudstack",
     nutanix: "Nutanix",
   },

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

@@ -33,6 +33,7 @@ export type ProviderTypes =
   | "rhev"
   | "lxd"
   | "libvirt"
+  | "sap_libvirt"
   | "cloudstack"
   | "nutanix";
 

+ 1 - 0
src/plugins/index.ts

@@ -64,6 +64,7 @@ export const ConnectionSchemaPlugin = {
       kubevirt: new KubevirtConnectionSchemaPlugin(),
       harvester: new HarvesterConnectionSchemaPlugin(),
       libvirt: new LibvirtConnectionSchemaPlugin(),
+      sap_libvirt: new LibvirtConnectionSchemaPlugin(),
       nutanix: new NutanixConnectionSchemaPlugin(),
     };
     if (hasKey(map, provider)) {

+ 3 - 0
tests/mocks/ProvidersMock.ts

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