Skip to content

Commit 8a28f5c

Browse files
authored
ACM-CCM changes for inventory (#798)
Merging Inventory changes
1 parent 15b31cd commit 8a28f5c

File tree

20 files changed

+2244
-1634
lines changed

20 files changed

+2244
-1634
lines changed

inventory/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.34.1
1+
2.34.2

inventory/api/compute/v1/compute.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ enum AmtSku {
6868
AMT_SKU_ISM = 2;
6969
}
7070

71+
enum AmtControlMode {
72+
AMT_CONTROL_MODE_UNSPECIFIED = 0;
73+
AMT_CONTROL_MODE_ACM = 1;
74+
AMT_CONTROL_MODE_CCM = 2;
75+
}
76+
7177
message HostResource {
7278
option (ent.schema) = {gen: true};
7379
option (infrainv.schemaExtension) = {
@@ -227,6 +233,12 @@ message HostResource {
227233
status.v1.StatusIndication amt_status_indicator = 95 [(ent.field) = {optional: true}]; // Indicates dynamicity of the amt_status. Set by DM and OM RM only.
228234
uint64 amt_status_timestamp = 96 [(ent.field) = {optional: true}]; // UTC timestamp when amt_status was last changed. Set by DM and OM RM only.
229235
uint32 user_lvm_size = 97 [(ent.field) = {optional: true}]; // LVM size in GB.
236+
AmtControlMode amt_control_mode = 98 [(ent.field) = {optional: true}]; // coming from user selection
237+
string amt_dns_suffix = 99 [
238+
(ent.field) = {optional: true},
239+
(buf.validate.field).string = {max_bytes: 1024},
240+
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
241+
]; // textual message that describes dns_suffix for ACM mode.
230242

231243
string tenant_id = 100 [
232244
(ent.field) = {

inventory/docs/api/inventory.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
- [WorkloadMember](#compute-v1-WorkloadMember)
4343
- [WorkloadResource](#compute-v1-WorkloadResource)
4444

45+
- [AmtControlMode](#compute-v1-AmtControlMode)
4546
- [AmtSku](#compute-v1-AmtSku)
4647
- [AmtState](#compute-v1-AmtState)
4748
- [BaremetalControllerKind](#compute-v1-BaremetalControllerKind)
@@ -585,6 +586,8 @@ textual message that describes the AMT status of Host. Set by DM RM only. |
585586
| amt_status_indicator | [status.v1.StatusIndication](#status-v1-StatusIndication) | | Indicates dynamicity of the amt_status. Set by DM and OM RM only. |
586587
| amt_status_timestamp | [uint64](#uint64) | | UTC timestamp when amt_status was last changed. Set by DM and OM RM only. |
587588
| user_lvm_size | [uint32](#uint32) | | LVM size in GB. |
589+
| amt_control_mode | [AmtControlMode](#compute-v1-AmtControlMode) | | coming from user selection |
590+
| amt_dns_suffix | [string](#string) | | textual message that describes dns_suffix for ACM mode. |
588591
| tenant_id | [string](#string) | | Tenant Identifier |
589592
| created_at | [string](#string) | | Creation timestamp |
590593
| updated_at | [string](#string) | | Update timestamp |
@@ -880,6 +883,19 @@ Represents a generic way to group compute resources (e.g., cluster, DHCP...).
880883

881884

882885

886+
<a name="compute-v1-AmtControlMode"></a>
887+
888+
### AmtControlMode
889+
890+
891+
| Name | Number | Description |
892+
| ---- | ------ | ----------- |
893+
| AMT_CONTROL_MODE_UNSPECIFIED | 0 | |
894+
| AMT_CONTROL_MODE_ACM | 1 | |
895+
| AMT_CONTROL_MODE_CCM | 2 | |
896+
897+
898+
883899
<a name="compute-v1-AmtSku"></a>
884900

885901
### AmtSku

inventory/docs/inventory-er-diagram.svg

Lines changed: 833 additions & 825 deletions
Loading

inventory/internal/ent/hostresource.go

Lines changed: 23 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inventory/internal/ent/hostresource/hostresource.go

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

inventory/internal/ent/hostresource/where.go

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

inventory/internal/ent/hostresource_create.go

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

0 commit comments

Comments
 (0)