NVIDIA / k8s-dra-driver

Dynamic Resource Allocation (DRA) for NVIDIA GPUs in Kubernetes
Apache License 2.0
212 stars 38 forks source link

chore: use map replace switch case #64

Closed yyzxw closed 5 months ago

yyzxw commented 6 months ago

some code refactor, use map to replace switch case.

elezar commented 5 months ago

Closing this PR for the time being. Feel free to create a new PR (or reopen this one) with the one minor fix. The replacement of case statements with maps is not something that we're looking to accept at present.