-
Notifications
You must be signed in to change notification settings - Fork 259
MTPNC CRD changes for NUMA-Aware Infiniband pods #3878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cd6d9b0 to
ecfd8e8
Compare
ecfd8e8 to
1ccb444
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for NUMA-aware InfiniBand pods by extending the MultitenantPodNetworkConfig CRD with InfiniBand-specific fields. The changes enable passing InfiniBand MAC addresses and tracking programming status for InfiniBand devices.
- Added IBMACs field to store InfiniBand MAC addresses for pods
- Added IBStatus field to track InfiniBand device programming status
- Created new infiniband package with Status enum for device states
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml | Updated CRD manifest to include IBMACs array and ibStatus integer field |
| zz_generated.deepcopy.go | Added deep copy logic for new IBMACs slice field |
| multitenantpodnetworkconfig.go | Added IBMACs and IBStatus fields to spec and interface structs |
| cns/types/infiniband/status.go | New package defining InfiniBand programming status constants |
Comments suppressed due to low confidence (1)
crd/multitenancy/api/v1alpha1/zz_generated.deepcopy.go:9
- [nitpick] The import alias 'netx' is unconventional. Consider using a more standard alias like 'net' or removing the alias entirely since there's no naming conflict.
netx "net"
crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml
Outdated
Show resolved
Hide resolved
|
I would actually like to get #3825 ironed out before merging this |
|
Actually, this is ready for review |
|
Hey @thatmattlong , are there any problems with associated outside package types in a CRD? IBMACAddresses []net.HardwareAddr `json:"IBMACAddresses,omitempty"`
...
IBStatus infiniband.Status `json:"ibStatus,omitempty"` |
Yeah not best so I'll remove it |
|
/azp list |
|
/azp run Azure Container Networking PR |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Hold on, may want to add a |
|
Doesn't seem we'll need to add pod |
|
/azp run Azure Container Networking PR |
|
Azure Pipelines successfully started running 1 pipeline(s). |
* MTPNC CRD changes for NUMA-Aware pods with infiniband NICs * More descriptive description haha * IBMACAddresses * Make mac string type to not break OpenAPI schema * Status to MTPNC definition * reference * Rename statuses to unambiguate ambiguity * make crd
* MTPNC CRD changes for NUMA-Aware pods with infiniband NICs * More descriptive description haha * IBMACAddresses * Make mac string type to not break OpenAPI schema * Status to MTPNC definition * reference * Rename statuses to unambiguate ambiguity * make crd
Reason for Change:
MTPNC CRD changes for NUMA-Aware pod IB device programming
The partner team will call into CNS (still discussing how in #3825) but regardless, CNS will need to pass which IB devices to use for a pod, and DNC-RC will need to pass back to CNS the programming status of said devices