Skip to content

Commit

Permalink
Add MacAddress to NodeInfo CRD (#2843)
Browse files Browse the repository at this point in the history
* add macAddressList to NI CRD

* address pr comments
  • Loading branch information
aggarwal0009 authored Jul 18, 2024
1 parent 6c50d0d commit f7b6e8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crd/multitenancy/api/v1alpha1/nodeinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ type NodeInfoStatus struct {
}

type DeviceInfo struct {
DeviceType DeviceType `json:"deviceType,omitempty"`
DeviceCount int `json:"deviceCount"`
DeviceType DeviceType `json:"deviceType,omitempty"`
MacAddress string `json:"macAddress"`
}

func init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ spec:
deviceInfos:
items:
properties:
deviceCount:
type: integer
deviceType:
enum:
- acn.azure.com/vnet-nic
- acn.azure.com/infiniband-nic
type: string
macAddress:
type: string
required:
- deviceCount
- macAddress
type: object
type: array
type: object
Expand Down

0 comments on commit f7b6e8b

Please sign in to comment.