Skip to content

feat: add gpu kinds to configmap

Calvin Yu请求将github/fork/zhu733756/gpu-configmap合并到master

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

合并请求报告