feat: add gpu kinds to configmap
Created by: zhu733756
Signed-off-by: zhu733756 talonzhu@yunify.com
Features:
- add gpu kinds to configmap
Have a definition in cc like follows:
common:
gpu:
kinds: # Install GPUKinds. The default GPU kind is nvidia.com/gpu. Other GPU kinds can be added here according to your needs.
- resourceName: "nvidia.com/gpu"
resourceType: "GPU"
default: true
- resourceName: "virtaitech.com/gpu"
resourceType: "GPU"
- resourceName: "tencent.com/vcuda-core"
resourceType: "GPU"
Will get the configmap kubesphere-config like follows after finishing installation:
gpu:
kinds:
- resourceName: "nvidia.com/gpu"
resourceType: "GPU"
default: true
- resourceName: "virtaitech.com/gpu"
resourceType: "GPU"
- resourceName: "tencent.com/vcuda-core"
resourceType: "GPU"
/cc @benjaminhuo @pixiake