Skip to content

Commit ce77bb5

Browse files
tupyyopenshift-merge-bot[bot]
authored andcommitted
ECOPROJECT-3514 | feat: Inventory V2 models
Update Inventory model to include: - vcenter_id: vCenter identifier - vcenter: aggregated InventoryData for entire vCenter - clusters: map of cluster names to InventoryData Replace VCenter type with InventoryData containing Infra and VMs. Remark: InventoryData model is v1 Inventory without VCenterID. Signed-off-by: Cosmin Tupangiu <cosmin@redhat.com>
1 parent 1377189 commit ce77bb5

27 files changed

+332
-488
lines changed

api/v1alpha1/agent/spec.gen.go

Lines changed: 36 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha1/openapi.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,11 +821,30 @@ components:
821821
Inventory:
822822
type: object
823823
required:
824-
- vcenter
824+
- vcenter_id
825+
- clusters
826+
properties:
827+
vcenter_id:
828+
type: string
829+
description: ID of the vCenter
830+
clusters:
831+
type: object
832+
additionalProperties:
833+
$ref: '#/components/schemas/InventoryData'
834+
description: Map of cluster names to their inventory data
835+
vcenter:
836+
$ref: '#/components/schemas/InventoryData'
837+
description: vCenter-level inventory data
838+
839+
InventoryData:
840+
type: object
841+
required:
825842
- vms
826843
- infra
827844
properties:
828845
vcenter:
846+
deprecated: true
847+
nullable: true
829848
$ref: '#/components/schemas/VCenter'
830849
vms:
831850
$ref: '#/components/schemas/VMs'

api/v1alpha1/spec.gen.go

Lines changed: 58 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha1/types.gen.go

Lines changed: 13 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)